27.11 Debug Operation
When the CPU is halted in debug mode, the PM continues normal operation. If Standby sleep mode is requested by the system while in debug mode, the power domains are not turned off. Consequently, power measurements while in debug mode are not relevant.
If Hibernate or Backup sleep mode is requested by the system while in debug mode, the core domains are kept on, and the debug modules are kept running to allow the debugger to access internal registers. When exiting the hibernate or backup mode upon a reset condition, the core domains are reset except the debug logic, allowing users to keep using their current debug session.
SLEEPCFG (SLEEPMODE) | STDBYCFG | HIBCFG | CTRLA | POWER DOMAINS | DESCRIPTION | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PD_CORE_BU | PD_CORE_SW | PD_CORE_RAM | PD_CORE_USB | PD_CORE_PLL | |||||||
RAMCFG | LPRAM | RAMCFG | LPRAM | IORET | |||||||
IDLE | X | X | X | X | X | On | On | On | On(1) | On |
|
STANDBY | 0 | 0 | X | X | X | On | On | On | (2) | (2) |
|
0 | 1 | On | On | On | (2) | (2) |
| ||||
1 | 0 | On | On | On | (2) | (2) |
| ||||
1 | 1 | On | On | On | (2) | (2) |
| ||||
HIBERNATE | X | X | 0 | 0 | 0 | On | Off | Off | Off | Off |
|
1 | On | Off | Off | Off | Off |
| |||||
0 | 1 | 0 | On | Off | Off | Off | Off |
| |||
1 | On | Off | Off | Off | Off |
| |||||
1 | 0 | 0 | On | Off | Off | Off | Off |
| |||
1 | On | Off | Off | Off | Off |
| |||||
1 | 1 | 0 | On | Off | Off | Off | Off |
| |||
1 | On | Off | Off | Off | Off |
| |||||
BACKUP | X | X | X | X | 0 | On | Off | Off | Off | Off |
|
1 | On | Off | Off | Off | Off |
| |||||
OFF | X | X | X | X | X | Off | Off | Off | Off | Off |
|
- On if USB.CTRLA.ENABLE=1 enabled.
- Dependent on the state of SUPC.VREGCTRL.AVREGSTDBY[x] and
SUPC.VREGCTRL.AVREGEN[x]. Powered ON =‘1’, OFF =‘0’, (i.e., default), and system
in STANDBY mode. Note: If either peripheral CTRLA.ENABLE=1, respective regulator is forced ON regardless of SUPC.VREGCTRL register settings in RUN ACTIVE, IDLE or STANDBY mode.
-
Peripherals RUNSTANDBY ON DEMAND Active 0 0 Run If Requested 0 1 Active 1 0 Run If Requested 1 1
Power Domain Module Asset Summary
- PD_CORE_BU
Backup Power Domain: VREGRAM and LPVREG)
- XOSC32K - 32k oscillator
- OSCULP32K – Low Pwr RC
- SUPC - Supply Controller
- RSTC - Reset Controller
- RTC - Real Time Clock
- PM - Power Manager
- TRAM – Trust RAM
- PD_CORE_SW (Core Power Domain: VREGSW)
- CPU
- Peripherals
- PD_CORE_RAM (SRAM Power Domain)
- SRAM
- PD_CORE_USB (USB Power Domain)
- USB Digital Logic, not USB PHY
- PD_CORE_PLL (PLL Power Domain)
- PLL Power
CONTROL | PM.SLEEPCFG.SLEEPMODE=0x2 IDLE MODE | PM.SLEEPCFG.SLEEPMODE=0x4 STANDBY MODE | PM.SLEEPCFG.SLEEPMODE=0x5 HIBERNATE MODE | PM.SLEEPCFG.SLEEPMODE=0x6 BACKUP MODE | PM.SLEEPCFG.SLEEPMODE=0x7 OFF MODE | COMMENTS |
---|---|---|---|---|---|---|
STANDBY | ||||||
PM.STDBYCFG.RAMCFG | X | 1 | X | X | X | SRAM powered off in STANDBY |
PM.STDBYCFG.LPRAM | X | 1 | X | X | X | SRAM interface powered off in STANDBY |
SUPC.VREGCTRL.AVREGSTDBY[x,y] | X | 0x0 | X | X | X | PLLn and/or USBn regulator STANDBY mode enable |
SUPC.VREGCTRL.AVREGEN[x,y] | 0x0 | 0x0 | X | X | X | PLLn and/or USBn regulator(s)
disabled. Note: Requires USB.CTRLA.ENABLE=0 and
PLL.CTRLA.ENABLE=0. |
AUXILIARY Features | ||||||
TRAM.CTRLA.ENABLE (1) | 0 | 0 | 0 | 0 | X | 0 = Trust RAM Contents lost |
RTC.CTRLA.ENABLE (1) | 0 | 0 | 0 | 0 | X | 0 = RTC and Tamper features disabled. Also, no RTC BACKUP mode wake. |
OSC32KCTRL.XOSC32K.ENABLE (1) | 0 | 0 | 0 | 0 | X | 0 = XOSC32K disabled, no RTC, RTC BACKUP
/ HIBERNATE mode wake or tamper features unless using OSCULP32K as clock source. |
OSCCTRL.PLLxCTRL.ENABLE | 0 | 0 | X | X | X | PLLx disabled |
USB.CTRLA.ENABLE | 0 | 0 | X | X | X | USBx disabled |
HIBERNATE | ||||||
PM.HIBCFG.RAMCFG | X | X | 1 | X | X | SRAM powered off in HIBERNATE |
PM.HIBCFG.LPRAM | X | X | 1 | X | X | SRAM interface powered off HIBERNATE |
- User optional. Note RTC and tamper detect requires XOSC32K or alternately OSCULP32K.