I am trying to build a circuit using only encoders and decoders. This circuit will output the 1’s complement of 3 bit number. (For example: If I give it 010 it will give output 101.)
I used a 741LS138 3 to 8 decoder and an 8 to 3 encoder (the 8 to 3 encoder is working fine.)
The problem is that it does not show the desired output.
When I try to provide input the output always stays 0.
I have made a truth table. I cannot figure it out what is wrong with it.
The circuit that I made:
Truth table:
Here is the schematic of the 8 to 3 encoder which I built: