Current on a GPIO digital input pin
Posted: Sun Mar 29, 2020 3:21 pm
I've got a GPIO pulled down to a 'common' ground and I'm triggering an interrupt (Rising) from a 10v signal.
I have a 10kohm and 4.7kohm voltage divider so when there is a signal I am getting just over 3 volts on my pin, & this works fine, however, I am curious to know what I should be thinking about regarding the current?
So if I've got my k's and m's right
10v/14.7kohm = .6mA
In the datasheet (OK I'm out of my comfort zone even suggesting I understand that stuff) the I/O section says Imax is 12mA so I'm fine for this one pin, if I have 3 pins all pulled high I'd be at 1.8mA(is this how it works?) still fine, but is this how I should be thinking about it? is the Imax per pin or for the board? I've already killed a 'D1 mini' due to messing up on voltage, want to make sure I don't replicate that later down the line with current ... I think I've answered my question to myself by rewriting the question a number of times ... but I am not quite sure ... lol
Thanks for any clarification on Imax and how cumulative pins work?
Pete
I have a 10kohm and 4.7kohm voltage divider so when there is a signal I am getting just over 3 volts on my pin, & this works fine, however, I am curious to know what I should be thinking about regarding the current?
So if I've got my k's and m's right
10v/14.7kohm = .6mA
In the datasheet (OK I'm out of my comfort zone even suggesting I understand that stuff) the I/O section says Imax is 12mA so I'm fine for this one pin, if I have 3 pins all pulled high I'd be at 1.8mA(is this how it works?) still fine, but is this how I should be thinking about it? is the Imax per pin or for the board? I've already killed a 'D1 mini' due to messing up on voltage, want to make sure I don't replicate that later down the line with current ... I think I've answered my question to myself by rewriting the question a number of times ... but I am not quite sure ... lol
Thanks for any clarification on Imax and how cumulative pins work?
Pete