In my project I need all available pins on my Digispark.
Pin PB4 is connected to a 68 Ω resistor and a 3.6 Zener diode.
This pin is used for USB protocol. This means that at some point in time the ATtiny is "writing" to this pin (meaning it is pulling it high). As a consequence the current drawn will be (5 - 3.6) / 68 = 20.5 mA
. This is very close to the maximum allowed although it seems it is supported by the chip.
I want to drive this pin (with digitalWrite
) high for an unspecified period of time(could be 5 minutes or 1 h). Would this damage my board?
Best Answer
The IO pin has absolute maximum rating of 40mA. The digital output voltage rating is listed at 10mA current, which basically tells the drive strength. But pins are not guaranteed to source current greater than the listed condition. However, the characterisric curve shows output voltage vs output current up to 20mA.
So basically, the pin should typically be able to source 20mA at about 4.5V, but they don't guarantee that it can source over 10mA.