TLC5940 + high current

That as drawn would not work.

Actually I would use N channel FETs and something like a 74LS04 to invert the logic signal from the TLC to the gate of the FET. You need a pull up on the TLC output and make sure you use a logic level FET that switches on with 5V.

You can parallel up the outputs of the TLC do a search for application note
SLVA280 Using TLC5940 With Higher LED Supply Voltages and
Series LEDs
and
SLVA253 LED Driver – Paralleled Outputs
Provide High-Current Outputs

Yeah thanks mate, I was afraid somebody was going to tell me that,

Oh well - back to the drawing board.

Using 74LS04s or something similar and some n-channels then.

Is there a way to calculate value for pull ups though by the way?

Would 10k be the right amout? (only I seem to hear that value being given every now and then

Is there a way to calculate value for pull ups though by the way?

Yes, it depends on what you are trying to drive.

The TLC5940 has a constant current supply so any resistor will be pulled down with this amount of current if possible with 5V across it maximum. If you are going into TTL you need to pull this down to less than 0.8V. So the voltage across the resistor needs to be 5 - 0.8V, therefore:-
R = 4.2 / I where I is the current setting of the TLC5940.
If this is set at 5mA then the resistor is 840R, if set at 20mA it is 210R
As you are not doing anything with this current it is best if it is as low as possible.

You can parallel up the outputs of the TLC do a search for application note
SLVA280 Using TLC5940 With Higher LED Supply Voltages and
Series LEDs
and
SLVA253 LED Driver [ch8211] Paralleled Outputs
Provide High-Current Outputs

What's the possibility for combining these two techniques, i.e. driving several high-current LEDs?

Let's say I have LEDs with 3.5V forward voltage and ~500mA current (Luxeon Rebels, Cree XR-E, LEDs like that. . . ) If the TLC can do 120mA per pin, I understand from the second app note you posted that I could parallel 4 of the outputs to drive one of these LEDs, correct?

And, the second app note describes using a transistor on an output pin if you need higher voltages than the chip can handle (17v).

What if I wanted to drive a string of 6 of these LEDs, in series? Could I use an N-channel MOSFET on the 4 paralleled output pins?

If so, then one tlc plus 4 MOSFETs could drive 24 LEDs (6 leds per 4 pins). This would be a big deal, since within the next year I'm going to be trying to drive ~150 - 200 HB LEDs. Eight or ten TLC5940 chips, plus a handful of transistors, would be cheaper and simpler than what I had been planning.

Could I use an N-channel MOSFET on the 4 paralleled output pins?

Yes that would work to get the current up with a higher supply voltage, but ....

OK on the 120mA per pin but look at the power dissipation of the overall chip, you are bound to fry it if you don't watch out.

Mike, help me through this please! My knowledge is limited in this area.

From the datasheet, it looks like the 28-PDIP package has a max dissipation of about 2.4w at 25C.

Now, I if I want all 16 channels at 120mA, and the chip is running at 5V, then I can calculate the dissipation:

16 channels at 5v and 120mA is 165.12 = 9.6 watts

But that doesn't seem right, does it? The chip isn't dissipating 9.6w - the whole circuit is, correct? How do you calculate dissipation of the chip?

Page 13 of the data sheet has the full formula for the power calculations, but basically it is the voltage across something times the current through it. In this case the something is the driver outputs and when pulled down are a quite low voltage but not zero. Unfortunately I can't find this in the data sheet so you will have to just use the formula they give.

Have you seen my tutorial on power calculations:- Power & Heat
You can plug the package thermal properties into that.

Ok, thanks. It looks like my thought of basically having all 16 pins at 5v and 120mA is not possible.

I basically want to hook up 4 LEDs (20mA/LED) to each channel of 6 TLC5940s. I also want to be able to make the LEDs go completely dark.

I don't understand exactly what I need to do to keep from frying my TLC5940s (i.e. keeping the output voltage within spec. yada, yada, yada).

Would using Rocketgeek's P-channel MOSFET be the way to go for me (I'm hoping he answers)?

If so, I could use some help picking the right size components for this setup (and understand why... I actually would like to learn, not just mooch) and a simple diagram would be MOST awesome, as wel!!

Thanks in advance for any responses.... they are greatly appreciated!

lq_bert

lqbert: Got your message -- been distracted by life. I put the circuit described together in order to fade a bunch of common-cathode RGB LEDs. The first thing you should do is go read International Rectifier's excellent intro to power mosfets, AN-1084 Power MOSFET Basics (http://www.irf.com/technical-info/appnotes/an-1084.pdf). It covers entirely N-channel MOSFETs, but it's a good intro and P-channels are mostly the same with negative signs on most of the parameters. Then check out AN-940 (Semiconductor & System Solutions - Infineon Technologies) for more on how to handle P-channel MOSFETs. The rest of this message is going to assume you've read them.

You want to select a mosfet with the minimum gate charge (Qg) that can handle the supply voltage with a decent safety factor. 80 mA is so laughably little current for a modern power MOSFET that you probably don't need to worry about that when making your selection.

Now, the easy way to drive the gate of the mosfet off is to connect it, through a protection resistor, to the sink pin of the TLC5940. That will turn the MOSFET on when then pin starts sinking. You then need a pull-up resistor between the gate and the power supply to turn the MOSFET off, as well.

Sizing the gate resistor is important because all of the pins of the TLC5940 turn on at the same time. Therefore, the turn-on current spike of all of the MOSFETs gets soaked up by the TLC5940 at once. Luckily, it's very short.

You want to size the pull-up such that it turns off the MOSFET quickly. However, making it smaller (in order to speed turnoff) has two significant negative consequences. One, it reduces the amount by which you can pull down the gate voltage, since it forms a voltage divider with the gate resistor. The farther you can pull that voltage down, the better the MOSFET conducts while on. Second, you're drawing current through the gate and pull-up resistors in series while that pin is on. As long as you can pull down at least five volts, you should be fine to turn it on.

Keep the on current in mind tho; you want to time-average that with the turn-on current in order to determine the average current through each channel. That will give you the input to the power dissipation equation.

Clear as mud?

Rocketgeek:

Thanks for the reply... I'm a little bit fuzzy on para 6 of your reply. I've included a diagram (thanks original poster) of an P-Channel MOSFET which has what I think was the config you described. What I don't fully understand is what values to use for resistors 'A' and 'B' in the drawing.

If there was a formula included in the documentation you provided to come up with 'A' & 'B', I'm sorry I must not have understood what I was looking at.

Also, what value should be used for the TLC's constant current resistor? How does this affect the circuit.

And just to clarify, with your configuration suggestion, will I be able to make the connected LEDs go completely dark?

Drawing below:

                          5v           18v
                          |             |
                          |            0.9k
                          |             |
                         'B'k        LEDs (20mA)
                          |            /
                          |           S
OUTx -----'A'k----------------------G||
                                      D
                                       \
                                        |
                                        |
                                       GND

Thanks!!!!

lqbert: with a P-channel MOSFET, the load goes between the MOSFET and the ground rather than how you have it shown. Otherwise, good.

First, determine the gate voltage you need. This will give you the ratio between A & B, since they form a voltage divider. Since your supply voltage is 18V and -9V below supply is well into saturation for any reasonable MOSFET, you can just set them equal to each other. That's easy, and it means you'll switch at similar speeds on and off.

Second, you need to determine the size of the resistors required to keep from toasting the TL5940. Since it's a constant current output, I don't think you have to worry too much about toasting it during turn-on -- just don't force it to limit the current too much during the on period, since that dissipates heat. If you set your peak current to 20 mA, then V=IR gives you a total resistance of 900 Ohms... or a pair of 470 Ohm resistors (since that's a size that exists).

with a P-channel MOSFET, the load goes between the MOSFET and the ground rather than how you have it shown. Otherwise, good.

Did you mean that I need to just swap where the 18V and GND are, or should I swap everything that's connected to the drain with everything that's connected to the source?

First, determine the gate voltage you need. This will give you the ratio between A & B, since they form a voltage divider. Since your supply voltage is 18V and -9V below supply is well into saturation for any reasonable MOSFET, you can just set them equal to each other.

So, basically what I want is enough voltage to put the MOSFET into saturation, and to do this, I have to supply some % of the supply voltage (18V in my case)? Makes sense enough.

Second, you need to determine the size of the resistors required to keep from toasting the TL5940. Since it's a constant current output, I don't think you have to worry too much about toasting it during turn-on -- just don't force it to limit the current too much during the on period, since that dissipates heat. If you set your peak current to 20 mA, then V=IR gives you a total resistance of 900 Ohms...

I'm assuming you were referring to setting resistor A and B to be equal to 470 Ohms each, and set the current limiting resistor of the TLC to 2*470 Ohms?

... and finally this configuration will also be able to make the LEDs go completely dark?

Thanks so much, and sorry for the late reply... I'm in the process of purchasing a new truck... I hate car shopping. :cry:

It should be 18v --> Source --> Drain --> LEDs --> resistor --> GND

Hope that made sense...

And yes, I am confused about how to get the values for resistor "A" and "B" as well :-/...

I am confused about how to get the values for resistor "A" and "B" as well

Resistor A is not needed at all, current through the TLC will be limited by resistor B.
Resistor B is acting as a pull down resistor for the FET and acting as a load for the TLC, virtually any value will do from 1K to 100K.
The current resistor of the TLC will not matter much and can be set to something like 3K3.
You do not use the constant current output of the TLC in this configuration you are only using the PWM bit of it.

First, determine the gate voltage you need. This will give you the ratio between A & B, since they form a voltage divider. Since your supply voltage is 18V and -9V below supply is well into saturation for any reasonable MOSFET, you can just set them equal to each other. That's easy, and it means you'll switch at similar speeds on and off.

In my diagram, I have 5VDC going through Resistor 'B' to the gate... it seems from this that you thought 18VDC would be going through resistor 'B'...

Given that I will be applying 18VDC to the Source and 5VDC where indicated, if I want to run 20mA through 4 LEDs which drop 3.2V per LED, what value of current limiting load resistor should I use? I don't know how to determine what Vds will be either.

From my understanding:

18V = 3.2V + 3.2V + 3.2V + 3.2V + V(load res) + Vds

If this is true, how do I know what Vds... after which I could determine the load resistor value (1 equation and 1 variable).

Also, how can I determine what values to use for Resistors 'A' and 'B' for a particular mosfet?

A run-down on how to calculate these things using values found in a mosfet datasheet would be awesome!