driving led in high side configuration.

Status
Not open for further replies.

rainman1

New Member
I have a MCU (CC2430) and a bi-color common cathode led.
I want connect the cathode to a resistor that will go to ground, and to connect each anode to a different GPIO leg (which can push more than what it will need in order to activate led when HIGH).

Is it ok?
 
You should connect the common cathode to ground and then connect each anode via a separate resistor to a different GPIO leg.
 
Last edited:
I want to use only one resistor, even though the diodes have 1.9V and 2.1V VFs.
Is it a problem to connect the common cathode to groud via a resistor, and then each anode to each GPIO?
 
You can do this because the outputs of the micro are current-limited and they don't represent an exact voltage.
But you may have some trouble with getting exact brightness from one LED when the other is turned on (and off).
Do it and see what happens. It won't cause any damage.
 
If you want to use a bicolor LED and just one resistor, one solution would be to use a bicolor LED which only has 2 leads. I don't see what the big deal is about the extra resistor anyway?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…