Hey guys, I've successfully designed a converter from 0-18dec to 0-11111bin using only diodes and resistors (cheap!) but I was wondering if there is a more efficient way of doing this?

In the attached schematic, it requires 38 diodes and 5 resistors!

Imagine the L's (logic input) to the left of the schematic to be low impedance voltage sources at 5v and the L's at the right (logic output) to be very high impedance (input of non-inverting schmitt trigger), worst case scenario will be 2 diode drops into 1Meg, in 100% efficient diode conditions, maximum current will be 5uA, therefore, using standard 1n4148 diodes, gonna expect a maximum voltage drop over 2 diodes to be around 1.2v (minimum stated value on the datasheet is 5mA). This is within specification of high being >(+V/2) and low being <(+V/2)

But to the point, is there any more efficient ways, chips that can do this for me?

Thanks, Harris

In the attached schematic, it requires 38 diodes and 5 resistors!

Imagine the L's (logic input) to the left of the schematic to be low impedance voltage sources at 5v and the L's at the right (logic output) to be very high impedance (input of non-inverting schmitt trigger), worst case scenario will be 2 diode drops into 1Meg, in 100% efficient diode conditions, maximum current will be 5uA, therefore, using standard 1n4148 diodes, gonna expect a maximum voltage drop over 2 diodes to be around 1.2v (minimum stated value on the datasheet is 5mA). This is within specification of high being >(+V/2) and low being <(+V/2)

But to the point, is there any more efficient ways, chips that can do this for me?

Thanks, Harris