Is there a component that is the reverse of a line decoder?

Thread Starter

richard3194

Joined Oct 18, 2011
162
Hi. A line decoder accepts binary input (like say from an address bus) and one of the available output pins will be set to high.

Alright, but is there an IC that works in the reverse? One where if you place a logical high on a particular pin of the several available, will produce a binary number output? Thanks.
 

danadak

Joined Mar 10, 2018
4,057
Or a demux, this example 4 control inputs decode into 1/16 outputs.
An analog mux operated inverse also can do this.

upload_2018-9-17_5-37-32.png

Regards, Dana.
 

danadak

Joined Mar 10, 2018
4,057
I stand corrected. Mux inappropriate.

ROM or LUT the way to go. LUT has advantage could be synchronous, so
glitch free outputs. ROM with clocking also could be synch.

Regards, Dana.
 

crutschow

Joined Mar 14, 2008
27,891
Also a priority encoder as Les suggested.
For example the CD4532 generates a 3-bit output as determined by which of its 8 inputs is high, and can be expanded to handle any number of inputs.
 
Last edited:
Top