ElEctric_EyE wrote:
There are all sorts of forward voltages for LEDs nowadays...
Let's say you have a LED that has a current rating of 20mA and forward voltage of 3.3V.
barrym95838 wrote:
... or if there's a resistor hiding somewhere
You're right, LED rated forward voltages do vary, sometimes according to color (eg red vs green). But 3.3V seems like an extreme deviation from the norm. The LED in question may well be
two LEDs wired in series inside one package. This helps raise overall efficiency when the supply far exceeds the forward voltage od a single LED.
ElEctric_EyE wrote:
If one were driving the LED directly from an FPGA pin, where the voltage is 3.3V and the current is set to 20mA or lower, is a resistor still needed?
You could probably go that route and get away with it. But I suspect the so-called "20 mA" setting for the FPGA output pin pertains to a limit on rise and fall times -- IOW, the spec is tailored to have meaning under transient conditions. But the LED is a steady-state load, and in that regard I'd hesitate to read too much into the spec.
_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html