Electronic – How is the current limited through the LEDs in this LED matrix design

current-limitingled-matrixshift-register

I was studying some LED matrix designs on the Net and came across the one below:

Its design puzzled me because I couldn't tell how it limits the current through each LED and through the shift registers outputs without any current limiting resistors.

For clarity, here are the relevant parts of the schematics diagram linked above.

VCC is 5V.

Selected parts of the schematics

Here are the relevant datasheets:

As far as I can tell, to light a LED, say D512, one has to:

  • turn on the high-side PFET by setting HI1 to LOW, thus turning row HO1 on, and
  • set the '595 shift register output QH (pin 7) to LOW

In this case, the current path would be the following:

Current path

My question is: what is limiting the current through the LED and '595 QH output?

My best guess is that, somehow, the '595 is clamping the current to the desired value of 20mA, which incidentally may be the forward current intended to be pushed through a common LED indicator. Is that it? If so, why does that happen?

Another guess is that there is a specific combination of VCC, multiplexing scheme, LED forward voltage and current that magically limits the current.

In any case, is this the Right Way of Designing It(TM)? Or is this just a trick in which the '595 is being used outside its specs?

Best Answer

I checked a few datasheets:

And I nowhere saw a current limit specified. The only thing that is specified is that you must not exceed 35mA output current (absolute maximum rating). But it doesn't say the chip itself limits the current to this value.

Now, I found another spec from TI:

It gives (among other interesting things) the output characteristic of two 74HC chips (74HC00, and 74HC240 whose specs are closer to those of the 74HC595), and we can indeed see that you can easily get more current than the specified 35mA max. Likely, the current will be limited to about 80mA (but it certainly isn't very accurate and may depend a lot on temperature and chance):

enter image description here

Anyway, it will be much more than the 20mA you'd like to see in your circuit. There is nothing, apart from the 595 internal resistance, really limiting the current in this circuit.

So, the 595 and the LEDs are driven above their specs. For the LED, it is certainly less of a problem since there is multiplexing. So you can tolerate higher than 20mA if the duty cycle is low enough (but this often isn't clearly specified for basic LEDs).

But for the 595, if you're driving a fully lit panel, it can become a problem and may damage the chip in the long run.

This design is bad, m'kaaayy.