[Menu]>[CPLD]


8-3 Encoder


On this page, I will introduce the encoder which changes the 8bits code into 3 binary bits.
As the input code, the code that only 1 bit is 1 out of the 8 bits is needed.
ERROR becomes 'H level ' when the code which doesn't suit this condition is input.

It outputs "000" when "00000001" is input.
It outputs "001" when "00000010" is input.
It outputs "010" when "00000100" is input.
It outputs "011" when "00001000" is input.
:
:

Pin lock isn't specified.
As the device, it deals with CPLD(XC9536-PC44).

Source code and Explanation

Fitting report


Operating state table
InputOutput
HGFEDCBAQ2 - Q0ERROR
000000010000
000000100010
000001000100
000010000110
000100001000
001000001010
010000001100
100000001110
Otherxxx1