Pic microcontrolers IO max current?

Thread Starter

Tjaart1

Joined May 7, 2018
11
Hi
I am using the pic 16f18313 and have an LED with 220 Ohm resistor on a GPIO pin. So drawing about 15mA.
I am looking to add a buzzer(active) to same pin as an audible resource if your not looking at LED. The buzzer with 82-100 Ohm resistor draws 15-18mA (measured) witch brings the current draw on GPIO pin to about 35mA.

I am more familiar with arduino GPIO pins, so 35mA is pretty close to the 40mA for a arduino pin.
All I can find in the 16f18313 data sheet is:
Maximum current
on VSS pin(1)
-40°C  TA  +85°C .............................................................................................................. 250 mA
+85°C  TA  +125°C ............................................................................................................. 85 mA
on VDD pin(1)
-40°C  TA  +85°C .............................................................................................................. 250 mA
+85°C  TA  +125°C ............................................................................................................. 85 mA
on any I/O pin ..................................................................................................................................... 50 mA
Clamp current, IK (VPIN < 0 or VPIN > VDD) ................................................................................................... 20 mA

Total power dissipation(2) .............................................................................................................................. 800 mW
Now the 250mA are spread equally over the output pins, in my case 2. SURELY this does not mean 100mA plus over my 2 GPIO pins.
But there are no other reverence I could find in data sheet or Doctor google.

How much current can I draw from a Pic micro-controller GPIO pin?
 

ronsimpson

Joined Oct 7, 2019
4,691
I think the 250mA is not " spread equally over the output pins" but the sum of all pins and internal workings.
I think an IO pin can do 50mA.
 
Top