Stroombegrenzing in PIC-uitgangen?
Stroombegrenzing in PIC-uitgangen?
Ik heb ergens gelezen dat de uitgangen van bepaalde PICs begrenst zijn op 25 mA. Zodat je een LED direct (zonder weerstand) kan aansluiten. Klopt dit?
Challenge everything..
ik zou het niet doen
Kijk in het datasheet van de pic (hoofdstuk electrical specifications).
Maximum output current sunk by any I/O pin..........................................................................................................25 mA
Maximum output current sourced by any I/O pin ....................................................................................................25 mA
Er kan max 25mA getrokken worden uit een poort.
En onderaan staat:
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
Kijk in het datasheet van de pic (hoofdstuk electrical specifications).
Maximum output current sunk by any I/O pin..........................................................................................................25 mA
Maximum output current sourced by any I/O pin ....................................................................................................25 mA
Er kan max 25mA getrokken worden uit een poort.
En onderaan staat:
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
De meeste leds moeten maar 20mA hebben en geen 25mA. Hou daar al rekening mee voor de levensduur van de led.
En ook nog; de led zal geen 5V moeten hebben wat de PIC geeft op zijnn uitgang maar eerder iets in de stijl van 2 ~ 3,8V.
Als er 5V overkomt te staan verbruikt je led dus 5*0.025 = 0.125W
en als je het normaal doet met een weerstand verbruik je bv 3.8*0.02= 0.095W!
Groeten
Robin
En ook nog; de led zal geen 5V moeten hebben wat de PIC geeft op zijnn uitgang maar eerder iets in de stijl van 2 ~ 3,8V.
Als er 5V overkomt te staan verbruikt je led dus 5*0.025 = 0.125W
en als je het normaal doet met een weerstand verbruik je bv 3.8*0.02= 0.095W!
Groeten
Robin