2021-09-06 04:37 AM
Hi.
I want to use interrupts to wake up from STOP2 and minimize the power consumption.
The internal pull-up of 30k - 50K leaks about 100 uA when pulled to 3V3, so I was wondering how big can be a pull up in order to minimize this consumption. Ideally, placing a 1M resistor would decrease consumption to nanoamps.
I know that it is related to leakage current on the pin (I_lkg), but I don't get it.
Thanks in advance
2021-09-08 12:09 AM
I thought about that, and It works. But I need also a disconnection event.
Thanks.
2021-09-08 12:23 AM
Thanks, JHOUD,
I get you, but I don't get the sequence of configuration to detect a connection and a disconnection event without consumption.
Imagin the next sequence using two GPIOs. 1 will be receiving interrupts and 2 just as an output.
State 0 - Jumper disconnected
Pin 1: Pulled up
Pin 2: "0"
State 1 - Connecting the jumper
Pin 1: Pulled up. Falling edge interrupt.
Pin 2: "0"
State 2 - Connected
Pin 1: "0". Pulled up so there is consumption. Rpu can be disabled by software to avoid it.
Pin 2: "0"
State 3 - Jumper disconnected
Pin 1: No pull up so, How to detect a Rising edge as a disconnection event?
Pin 2: "0"