Driving a 0603 LED by LPC5516

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Driving a 0603 LED by LPC5516

跳至解决方案
842 次查看
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 项奖励
回复
1 解答
815 次查看
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 项奖励
回复
2 回复数
804 次查看
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 项奖励
回复
816 次查看
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 项奖励
回复