Digital Circuits and LEDs

Thread Starter

Ryuk

Joined Oct 9, 2012
18
Let's say you have a digital circuit with a certain function that outputs the signals in a series of LEDs.

So say I want a 1100 output. In that case, the first two LEDs would light up and the last two would be off. However, due to the laws of electricity this will not happen. This is because an LED is connected to a power source and a 1 output going into the other side of the LED would produce no potential difference and hence the LED would not light up. So for a 1 output, the light would stay off and for a 0 output, the light would turn on. This is negative logic! Up until now I have been avoiding this issue by simply placing an inverter chip between my output and LEDs. Is there another way to solve this issue?
 

BillB3857

Joined Feb 28, 2009
2,573
Depending upon the internal output circuit of your IC, you may need a pull-up resistor, ie open collector output of a gate driving the LED.
 

Thread Starter

Ryuk

Joined Oct 9, 2012
18
Depending upon the internal output circuit of your IC, you may need a pull-up resistor, ie open collector output of a gate driving the LED.
Yes, previously, I had the power, pull up resistor, and anode side on the left and the cathode side and output signals on the right.

I switched the sides of the LEDs and connected GND to the resistor instead of power and it now works. Thanks guys.
 
Top