23.7.4 Sleep Mode Operation
During Sleep modes, the ONDEMAND and RUNSTDBY bits in the Control A register (CTRLA) control the behavior of the FREQM clock requests, in cases where the FREQM is enabled (CTRLA.ENABLE = 1) during a sleep mode.
CTRLA.RUNSTDBY | CTRLA.ONDEMAND | CTRLA.ENABLE | Description |
---|---|---|---|
X | x | 0 | Disabled |
0 | 0 | 1 | Always request the clocks in all sleep modes, except in STANDBY. |
0 | 1 | 1 | On-demand clocks request in all sleep modes, except STANDBY. |
1 | 0 | 1 | Always request the clocks in all sleep modes. |
1 | 1 | 1 | On-demand clocks request in all sleep modes. |
Note: By default, if RUNSTDBY = 0, an ongoing measurement is stopped when the device is going
to standby sleep mode. A new measurement will be restarted when the device exits the
standby sleep mode.