|
A circuit that one can manually select 5 LEDs dependent to voltage, where the top most input pin is the LSB and bottom most input pin (from the first three pins) is the MSB:
* If 000, select the 1rst LED (GND)
* If 100, select the 2nd LED (1V)
* If 010, select the 3rd LED (2V)
* If 110, select the 4rth LED (3V)
* If 001, select the 5th LED (4V)
Example: 110 in binary means LSB is 1, second bit is 1, and MSB is 0. This means it reads as 3 in decimal.
The enabling pin is the last pin in the bottom. A red LED turns ON if the enabling pin is OFF, and the red LED turns OFF otherwise.
The MOSFET is set to:
W = 10um
L = 1um
KP = 100mA/V^2
VTO = 4V
lambda = 0 1/V
|