Hi:
When I use DK PCA1004 to debug the system off function, I add a shake sensor to the hardware. At rest, the sensor has two states, on or off. When shake occurs, the resistance of the sensor itself will be changed, 0 - > infinite ohm. With this feature, I can easily wake up Bluetooth.
But there is one problem. I set up a pull-up input for the sensor, and the sensor connects to GND. my VDD is 3V, Electrical specification said VIH = 0.7*VDD = 2.1V, I used nrf_drv_gpiote_in_is_set to detect that 1.9-2V still returns true. This is not serious, more serious is when the MCU enters the system off when the sensor is off. Because of the pull-up input, the power consumption of the whole system is 100 - 200 ua. I use the keys on the DK52 development board, and often press the keys to simulate the situation of the sensor off. The result is still 200ua.It has been confirmed that all GPIO ports are set to default, except the wake-up port.
On the other hand, if the series pull-down resistance is increased, the leakage current can be reduced, but this will not produce detectable logic level.
Can the wake-up system off only use nrf_gpio_cfg_sense_set?