19.7.1 DS Control

Name: DSCON
Offset: 0x00
Reset: 0x00000000

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 DSEN XSEMAENRTCPWREQ   RTCCWDIS 
Access R/W/HCR/WR/WR/W 
Reset 0000 
Bit 76543210 
       ZPBORDSSR 
Access R/W/C/HSR/C/HS/HC 
Reset 00 

Bit 15 – DSEN Deep Sleep Enable bit

ValueDescription
0Enters the Standby Sleep mode on a WFI command
1Enters the Deep Sleep mode on a WFI command

Bit 13 – XSEMAEN XSEMA General Purpose Registers Enable bit

ValueDescription
0No general purpose register retention in the Deep Sleep mode
1Enables 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.

ValueDescription
0Enables the RTCC module
1Disables the RTCC module

Bit 8 – RTCCWDIS RTCC Wake-up Disable bit

ValueDescription
0Enables the wake-up from RTCC
1Disables the wake-up from RTCC

Bit 1 – ZPBOR Deep Sleep BOR Event Status bit

ValueDescription
0CFGCON4.DSZPBOREN is disabled or VDD did not drop below the DSBOR threshold during the Deep Sleep mode
1CFGCON4.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

ValueDescription
0Release I/O pins and allow their respective TRIS and LAT bits to control their states
1Upon 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.