In Event mode (CONFIG.MODE=Event), the register LATENCY makes it possible to reduce power consumption.
To enable the power saving behavior, set register LATENCY to LowPower.
LowPower can be used with both PORT event (EVENTS_PORT) and IN event (EVENTS_IN). The GPIO pins must have their PIN_CNF[n].SENSE configured.
When using LowPower with IN event, the GPIO PIN_CNF[] register's SENSE field needs to be
configured according to CONFIG.POLARITY for the selected
pin.
- When CONFIG.POLARITY=LoToHi, SENSE must be set to High.
- When CONFIG.POLARITY=HiToLo, SENSE must be set to Low.
When using LowPower with PORT event, the GPIO PIN_CNF[] register's SENSE field can have any value.
CONFIG.POLARITY=Toggle is not supported for LATENCY=LowPower.