What is 'drive strength' for? (Spartan 3)
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
What is 'drive strength' for? (Spartan 3)

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> FPGA
Author Message
Paul Boven
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: What is 'drive strength' for? (Spartan 3) Reply with quote

Hi everyone,

I'm building a circuit that will be driving quite a few (>100) LEDs,
multiplexed into 3 or 4 groups, so up to 40 at the same time.
Can I use the Spartan 3 'Current drive' option to limit drive current to
these LEDs to e.g. 24 mA ? I'm hoping to limit the number of external
components that I'll need.
I've set the IO standard of the ports in question to LVCMOS33 and set
24mA, but the port drives at least 70mA trough a LED and amp-meter
connected to ground. Setting a lower value for drive current does
decrease the drive, but it stays significantly above the value I set -
and I'd rather not ruin my LEDs or, even worse, FPGA.

So I'm probably misunderstanding the way 'drive limit' is set or
supposed to be used. Could anyone enlighten me?

Regards, Paul Boven.
Back to top
Austin Lesea
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: Re: What is 'drive strength' for? (Spartan 3) Reply with quote

Paul,

Drive strength sets the worst case minimum current that will be available.

Worst case is measured at hottest temperature, worst (slowest) process,
and lowest IO voltage.

So, for example, if we are designing ICs that have to meet mil spec
(125C), over all process, and over +/- 10% IO voltage variation, the
actual current at 25C, nominal process, and nominal IO voltage will be
substantially larger.

If you use DCI, you can actually set the output resistance by setting
the drive impedance with the external resistors....but Spartan 3 does
not have DCI, so that won't help you there. Sorry. DCI (digitally
controlled impedance) is a useful feature offerred in the Virtex line,
but not in the Spartan line.

So, all you have to play with is drive strength (you could set it to 2
mA, or the lowest setting), and the Vcco voltage. By setting the drive
to the lowest possible setting for the highest possible Vcco (eg 2 mA at
3.3 V) by lowering the voltage to 2.5V, you will now be much lower
current than the operation at 3.3V (and the IOB will still work just
fine, as the difference between 3.3V and 2.5V IO standards is how many
transistors to turn on in parallel: it takes more to drive the same
current at lower voltages).

The brightness will vary with chip to chip (process variations) and also
will vary with chip temperature.

Austin

PS: did you know that the Christmas Lights video that went around
recently was done in Cincinnati, Ohio, and used Spartan 3 demo kits to
control banks of triacs? What some people have time to do is amazing!

http://www.snopes.com/photos/arts/xmaslights.asp




Paul Boven wrote:

Quote:
Hi everyone,

I'm building a circuit that will be driving quite a few (>100) LEDs,
multiplexed into 3 or 4 groups, so up to 40 at the same time.
Can I use the Spartan 3 'Current drive' option to limit drive current to
these LEDs to e.g. 24 mA ? I'm hoping to limit the number of external
components that I'll need.
I've set the IO standard of the ports in question to LVCMOS33 and set
24mA, but the port drives at least 70mA trough a LED and amp-meter
connected to ground. Setting a lower value for drive current does
decrease the drive, but it stays significantly above the value I set -
and I'd rather not ruin my LEDs or, even worse, FPGA.

So I'm probably misunderstanding the way 'drive limit' is set or
supposed to be used. Could anyone enlighten me?

Regards, Paul Boven.
Back to top
Kolja Sulimma
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: Re: What is 'drive strength' for? (Spartan 3) Reply with quote

Paul Boven schrieb:
Quote:
Hi everyone,

I'm building a circuit that will be driving quite a few (>100) LEDs,
multiplexed into 3 or 4 groups, so up to 40 at the same time.
Can I use the Spartan 3 'Current drive' option to limit drive current to
these LEDs to e.g. 24 mA ? I'm hoping to limit the number of external
components that I'll need.

In a spartan-3 you have a hell lot of logic. So if it is just the number
of external components that you want to minimize, you can do the following:
- connect the vcc side of all leds together and connect them to vcc via
a common resistor. Add a large capacitor to the common node.
- use differential input pair, a resistor and a capacitor to build a
sigma delta ADC to measure the voltage at the common node. The voltage
drop on the resistor is proportional to the current.
- use a delta sigma or PWM modulator on the LED-pins to set the current
to the desired value for a single LED times the number of LEDs that is
currently turned on.

This approach uses only 4 external discrete components in addition to
the LEDs.


Kolja Sulimma
Back to top
Austin Lesea
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: Re: What is 'drive strength' for? (Spartan 3) Reply with quote

Oops...I couldn't find it on the data sheet,

Austin

Sylvain Munaut wrote:

Quote:
Austin Lesea wrote:


If you use DCI, you can actually set the output resistance by setting
the drive impedance with the external resistors....but Spartan 3 does
not have DCI, so that won't help you there. Sorry. DCI (digitally
controlled impedance) is a useful feature offerred in the Virtex line,
but not in the Spartan line.



Spartan 3 does have DCI ...


Sylvain
Back to top
Sylvain Munaut
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: Re: What is 'drive strength' for? (Spartan 3) Reply with quote

Austin Lesea wrote:

Quote:
If you use DCI, you can actually set the output resistance by setting
the drive impedance with the external resistors....but Spartan 3 does
not have DCI, so that won't help you there. Sorry. DCI (digitally
controlled impedance) is a useful feature offerred in the Virtex line,
but not in the Spartan line.


Spartan 3 does have DCI ...


Sylvain
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> FPGA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB