(Power Save) What are the return conditions for key-on wakeup, edge or level? [2008/03/26]
Ports P00-P03, P10-P13, P20-P23, P30-33, and D0-D7 are returned by edge. The return condition of the INT pin can be selected as level or edge. Refer to the datasheet for more details concerning the return conditions.
- When the return conditions are level
Using low level input as an example, if the key-on wakeup enable pins are low input when the MCU switches to RAM back-up mode, the MCU will return immediately.
- When the return conditions are edge
Using falling edge as an example, if the key-on wakeup enable pins are low input when the MCU switches to RAM back-up mode, the MCU will return when the pins switch back to low input after once switching to high input. Set all key-on wakeup enable pins other than the pins to which the active edge is input to the state opposite to the selected return condition. That is, when the falling edge is selected, set to high, and when the rising edge is selected, set to low.