19.7.1 DS Control
Name: | DSCON |
Offset: | 0x00 |
Reset: | 0x00000000 |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
Access | |||||||||
Reset |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
Access | |||||||||
Reset |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
DSEN | XSEMAEN | RTCPWREQ | RTCCWDIS | ||||||
Access | R/W/HC | R/W | R/W | R/W | |||||
Reset | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ZPBOR | DSSR | ||||||||
Access | R/W/C/HS | R/C/HS/HC | |||||||
Reset | 0 | 0 |
Bit 15 – DSEN Deep Sleep Enable bit
Value | Description |
---|---|
0 | Enters the Standby Sleep mode on a WFI command |
1 | Enters the Deep Sleep mode on a WFI command |
Bit 13 – XSEMAEN XSEMA General Purpose Registers Enable bit
Value | Description |
---|---|
0 | No general purpose register retention in the Deep Sleep mode |
1 | Enables the general purpose register retention in the Deep Sleep mode |
Bit 12 – RTCPWREQ RTCC Module Disable bit
To enable RTCC function, RTCC module level registers must be programmed in addition to the DSCON.RTCPWREQ bit.
Value | Description |
---|---|
0 | Enables the RTCC module |
1 | Disables the RTCC module |
Bit 8 – RTCCWDIS RTCC Wake-up Disable bit
Value | Description |
---|---|
0 | Enables the wake-up from RTCC |
1 | Disables the wake-up from RTCC |
Bit 1 – ZPBOR Deep Sleep BOR Event Status bit
Value | Description |
---|---|
0 | CFGCON4.DSZPBOREN is disabled or VDD did not drop below the DSBOR threshold during the Deep Sleep mode |
1 | CFGCON4.DSZPBOREN is enabled and VDD dropped below the DSBOR threshold during the Deep Sleep mode Note: Unlike all other events, a DSBOR event does not cause a wake-up from the Deep Sleep mode. This bit is present only as a status bit. |
Bit 0 – DSSR I/O pin State Release bit
Value | Description |
---|---|
0 | Release I/O pins and allow their respective TRIS and LAT bits to control their states |
1 | Upon waking from Deep
Sleep, the I/O pins maintain their previous states (Not user settable).
Note: The DSSR register bit is readable and can be
cleared (but not set) by the software. This bit is automatically set when entering the Deep Sleep mode. While exiting the Deep Sleep mode, due to any wake-up source other than MCLR, when all state-related configuration is complete, the software must clear the DSSR bit. When the DSSR bit is cleared, the I/Os will be controlled by their I/O registers. |