Driving a 0603 LED by LPC5516

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Driving a 0603 LED by LPC5516

Jump to solution
841 Views
uzslm
Contributor II

As a general practice on STM32 or PIC18,Is that possible to drive a green or red  LED by GPIO from LPC5516, plus a resistor on the IO pin?

0 Kudos
Reply
1 Solution
814 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

It is dependent on the current the LED has to consume to light up the LED.

The GPIO pin of LPC5516 can provide 4mA current, if 4mA current can light up the LED, it is okay, you can connect a serial resistor (3.3V-0.7V)/4mA=650 ohm to limit the current.

If the 4mA is not enough to light up the LED, pls connect a transistor.

xiangjun_rong_0-1734313869744.png

copied from data sheet of LPC551x.

AS the above table, both the source/sink current of each GPIO is 4mA.

Hope it can help you

BR

XiangJun Rong

View solution in original post

0 Kudos
Reply
2 Replies
803 Views
uzslm
Contributor II

XiangJun,

Thank you for all the information!

I had similar LEDs as indicators working on my previous boards,i would like to check their current to decide how muck ohms for the resistors,hope that 1k can be okay.

Kind Regards,

uzslm  

0 Kudos
Reply
815 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

It is dependent on the current the LED has to consume to light up the LED.

The GPIO pin of LPC5516 can provide 4mA current, if 4mA current can light up the LED, it is okay, you can connect a serial resistor (3.3V-0.7V)/4mA=650 ohm to limit the current.

If the 4mA is not enough to light up the LED, pls connect a transistor.

xiangjun_rong_0-1734313869744.png

copied from data sheet of LPC551x.

AS the above table, both the source/sink current of each GPIO is 4mA.

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply