Driving a 0603 LED by LPC5516

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Driving a 0603 LED by LPC5516

ソリューションへジャンプ
847件の閲覧回数
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 解決策
820件の閲覧回数
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 返答(返信)
809件の閲覧回数
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 件の賞賛
返信
821件の閲覧回数
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 件の賞賛
返信