The 13 registers of SUPC (Supply Controller), from 0x400531D0, with their reset value and every field. The PIC32CX2051MTG128 has 2875 registers in 60 peripherals, one page each.
SUPC Supply Controller
SUPC_CRControl Register
Address
0x400531D0
Reset
0x00000000
Access
write only
Size
32-bit
5 fields
Field
Bits
What it does
TDXTALSEL
3
Timing Domain Slow Clock Selector
0 Slow clock of the timing domain is driven by the embedded 32 kHz (typical) RC oscillator.
1 Slow clock of the timing domain is driven by the 32.768 kHz crystal oscillator.
VROFF
2
Voltage Regulator Off
0 No effect.
1 If KEY=0xA5, VROFF asserts the VDDCORE domain reset and stops the voltage regulator.
SHDWEOF
1
Shutdown End Of Frame
SHDW
0
Shutdown
KEY
31:24
Password
165 Writing any other value in this field aborts the write operation.
SUPC_SMMRSupply Monitor Mode Register
Address
0x400531D4
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
VDD3V3SMPWRM
13
VDD3V3 Supply Monitor Power Supply Mode
0 The VDDBU power source selection is controlled by configuring the bit RSTC_MR.PWRSW.
1 The VDDBU power source is VBAT when a VDD3V3 undervoltage is detected by the VDD3V3 supply monitor.
VDD3V3SMRSTEN
12
VDD3V3 Supply Monitor Reset Enable
VDD3V3SMSMPL
10:8
VDD3V3 Supply Monitor Sampling Period
0 VDD3V3 supply monitor is disabled
1 Continuous VDD3V3 supply monitoring
2 VDD3V3 supply monitor is enabled for 1 period every 32 MD_SLCK periods Energy optimization in Backup mode with VDD3V3 supplied.
3 VDD3V3 supply monitor is enabled for 1 period every 256 MD_SLCK periods Energy optimization in Backup mode with VDD3V3 supplied.
4 VDD3V3 supply monitor is enabled for 1 period every 2048 MD_SLCK periods Energy optimization in Backup mode with VDD3V3 supplied.
VDD3V3SMTH
3:0
VDD3V3 Supply Monitor Threshold
SUPC_MRMode Register
Address
0x400531D8
Reset
0x00000000
Access
read/write
Size
32-bit
9 fields
Field
Bits
What it does
OSCBYPASS
20
Slow Crystal Oscillator Bypass
0 No effect. Clock selection depends on the value of the bit SUPC_CR.TDXTALSEL.
1 The slow crystal oscillator is bypassed if SUPC_CR.TDXTALSEL=1. The bit OSCBYPASS must be set prior to setting the bit TDXTALSEL.
IO_BACKUP_ISO
14
Backup Domain IO Isolation Control
CORSMDIS
13
VDDCORE Supply Monitor Disable
CORSMRSTEN
12
VDDCORE Supply Monitor Reset Enable
VREGDIS
7
Internal VDDCORE Voltage Regulator Disable
0 Internal VDDCORE voltage regulator is enabled.
1 Internal VDDCORE voltage regulator is disabled (external power supply is used).
CORSMM
6
VDDCORE Supply Monitor Output Mode
0 VDDCORE supply monitor output value has no effect. Power-on is performed whatever the value of the supply monitor output.
1 VDDCORE supply monitor output value is checked to validate the VDDCORE domain power-on.
LCDMODE
5:4
LCD Controller Mode of Operation
0 The internal supply source and the external supply source are both deselected (OFF Mode).
2 The external supply source for LCD (VDDLCD) is selected (the embedded LCD voltage regulator is in High-impedance mode).
3 The internal voltage regulator for VDDLCD is selected (Active mode).
LCDOUT
3:0
LCD Voltage Regulator Output
KEY
31:24
Password Key
89 Modifies the VREGDIS bit. Other bits are not affected.
165 Writing any other value in this field aborts the write operation.
SUPC_WUMRWakeup Mode Register
Address
0x400531DC
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
Field
Bits
What it does
LPDBC4
30:28
Low-power Debouncer Period of WKUPx
0 Disables the low-power debouncers.
1 WKUPx in active state for at least 2 RTCOUTx clock periods
2 WKUPx in active state for at least 3 RTCOUTx clock periods
3 WKUPx in active state for at least 4 RTCOUTx clock periods
4 WKUPx in active state for at least 5 RTCOUTx clock periods
5 WKUPx in active state for at least 6 RTCOUTx clock periods
6 WKUPx in active state for at least 7 RTCOUTx clock periods
7 WKUPx in active state for at least 8 RTCOUTx clock periods
LPDBC3
27:25
Low-power Debouncer Period of WKUPx
0 Disables the low-power debouncers.
1 WKUPx in active state for at least 2 RTCOUTx clock periods
2 WKUPx in active state for at least 3 RTCOUTx clock periods
3 WKUPx in active state for at least 4 RTCOUTx clock periods
4 WKUPx in active state for at least 5 RTCOUTx clock periods
5 WKUPx in active state for at least 6 RTCOUTx clock periods
6 WKUPx in active state for at least 7 RTCOUTx clock periods
7 WKUPx in active state for at least 8 RTCOUTx clock periods
LPDBC2
24:22
Low-power Debouncer Period of WKUPx
0 Disables the low-power debouncers.
1 WKUPx in active state for at least 2 RTCOUTx clock periods
2 WKUPx in active state for at least 3 RTCOUTx clock periods
3 WKUPx in active state for at least 4 RTCOUTx clock periods
4 WKUPx in active state for at least 5 RTCOUTx clock periods
5 WKUPx in active state for at least 6 RTCOUTx clock periods
6 WKUPx in active state for at least 7 RTCOUTx clock periods
7 WKUPx in active state for at least 8 RTCOUTx clock periods
LPDBC1
21:19
Low-power Debouncer Period of WKUPx
0 Disables the low-power debouncers.
1 WKUPx in active state for at least 2 RTCOUTx clock periods
2 WKUPx in active state for at least 3 RTCOUTx clock periods
3 WKUPx in active state for at least 4 RTCOUTx clock periods
4 WKUPx in active state for at least 5 RTCOUTx clock periods
5 WKUPx in active state for at least 6 RTCOUTx clock periods
6 WKUPx in active state for at least 7 RTCOUTx clock periods
7 WKUPx in active state for at least 8 RTCOUTx clock periods
LPDBC0
18:16
Low-power Debouncer Period of WKUPx
0 Disables the low-power debouncers.
1 WKUPx in active state for at least 2 RTCOUTx clock periods
2 WKUPx in active state for at least 3 RTCOUTx clock periods
3 WKUPx in active state for at least 4 RTCOUTx clock periods
4 WKUPx in active state for at least 5 RTCOUTx clock periods
5 WKUPx in active state for at least 6 RTCOUTx clock periods
6 WKUPx in active state for at least 7 RTCOUTx clock periods
7 WKUPx in active state for at least 8 RTCOUTx clock periods
WKUPDBC
14:12
Wake-up Inputs Debouncer Period
0 Immediate, no debouncing, detected active at least on one Slow Clock edge.
1 WKUPx shall be in its active state for at least 3 MD_SLCK periods
2 WKUPx shall be in its active state for at least 32 MD_SLCK periods
3 WKUPx shall be in its active state for at least 512 MD_SLCK periods
4 WKUPx shall be in its active state for at least 4,096 MD_SLCK periods
5 WKUPx shall be in its active state for at least 32,768 MD_SLCK periods
FWUPDBC
10:8
Force Wake-up Inputs Debouncer Period
0 Immediate, no debouncing, detected active at least on one Slow Clock edge.
1 WKUPx shall be in its active state for at least 3 MD_SLCK periods
2 WKUPx shall be in its active state for at least 32 MD_SLCK periods
3 WKUPx shall be in its active state for at least 512 MD_SLCK periods
4 WKUPx shall be in its active state for at least 4,096 MD_SLCK periods
5 WKUPx shall be in its active state for at least 32,768 MD_SLCK periods
LPDBCEN4
4
Tamper Enable for WKUPx Pin
LPDBCEN3
3
Tamper Enable for WKUPx Pin
LPDBCEN2
2
Tamper Enable for WKUPx Pin
LPDBCEN1
1
Tamper Enable for WKUPx Pin
LPDBCEN0
0
Tamper Enable for WKUPx Pin
SUPC_WUIRWakeup Inputs Register
Address
0x400531E0
Reset
0x00000000
Access
read/write
Size
32-bit
30 fields
Field
Bits
What it does
WKUPT14
30
Wake-up Input Type 14
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT13
29
Wake-up Input Type 13
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT12
28
Wake-up Input Type 12
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT11
27
Wake-up Input Type 11
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT10
26
Wake-up Input Type 10
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT9
25
Wake-up Input Type 9
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT8
24
Wake-up Input Type 8
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT7
23
Wake-up Input Type 7
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT6
22
Wake-up Input Type 6
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT5
21
Wake-up Input Type 5
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT4
20
Wake-up Input Type 4
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT3
19
Wake-up Input Type 3
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT2
18
Wake-up Input Type 2
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT1
17
Wake-up Input Type 1
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPT0
16
Wake-up Input Type 0
0 A falling edge followed by a low level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
1 A rising edge followed by a high level for a period defined by WKUPDBC on the corresponding wake-up input forces the wake-up of the core power supply.
WKUPEN14
14
Wake-up Input Enable 14
WKUPEN13
13
Wake-up Input Enable 13
WKUPEN12
12
Wake-up Input Enable 12
WKUPEN11
11
Wake-up Input Enable 11
WKUPEN10
10
Wake-up Input Enable 10
WKUPEN9
9
Wake-up Input Enable 9
WKUPEN8
8
Wake-up Input Enable 8
WKUPEN7
7
Wake-up Input Enable 7
WKUPEN6
6
Wake-up Input Enable 6
WKUPEN5
5
Wake-up Input Enable 5
WKUPEN4
4
Wake-up Input Enable 4
WKUPEN3
3
Wake-up Input Enable 3
WKUPEN2
2
Wake-up Input Enable 2
WKUPEN1
1
Wake-up Input Enable 1
WKUPEN0
0
Wake-up Input Enable 0
SUPC_SRStatus Register
Address
0x400531E4
Reset
0x00000000
Access
read only
Size
32-bit
20 fields
Field
Bits
What it does
RTTS
30
RTT Wake-up Status (cleared by reading SUPC_WUSR)
FWKUPS
29
FWUP Wake-up Status (cleared by reading SUPC_WUSR)
BADXTS
28
Slow Crystal Oscillator Wake-up Status (cleared by reading SUPC_WUSR)
WKUPS
27
WKUP Wake-up Status (cleared by reading SUPC_WUSR)
SXFME
26
Slow Crystal Oscillator Frequency Monitor Error (cleared on read)
SXFMS
25:24
Slow Crystal Oscillator Frequency Monitor Status (cleared on read)
0 No frequency error detected.
1 The frequency has not been correct over 4 consecutive monitoring periods but there are still edges detected on the slow crystal oscillator output.
2 No edge detected in the slow crystal oscillator output for at least 2 consecutive monitoring periods.
LPDBCS4
20
Tamper Detection Wake-up Status (cleared by reading SUPC_ISR)
LPDBCS3
19
Tamper Detection Wake-up Status (cleared by reading SUPC_ISR)
LPDBCS2
18
Tamper Detection Wake-up Status (cleared by reading SUPC_ISR)
LPDBCS1
17
Tamper Detection Wake-up Status (cleared by reading SUPC_ISR)
LPDBCS0
16
Tamper Detection Wake-up Status (cleared by reading SUPC_ISR)
FWUPS
12
Force Wake-up Pin Status
LCDS
8
LCD Power Domain Status
VDD3V3SMS
6
VDD3V3 Supply Monitor Output Status
VDD3V3SMIS
5
VDD3V3 Supply Monitor Interrupt Status (cleared by reading SUPC_ISR)
VDD3V3SMRSTS
4
VDD3V3 Supply Monitor Reset Status (cleared by reading SUPC_WUSR)
CORSMRSTS
3
VDDCORE Supply Monitor Reset Status (cleared by reading SUPC_WUSR)
VDD3V3SMWS
2
VDD3V3 Supply Monitor Wake-up Status (cleared by reading SUPC_WUSR)
TDOSCSEL
0
Timing Domain 32 kHz Oscillator Selection Status
0 The timing domain slow clock (TD_SLCK) source is the slow RC oscillator output.
1 The timing domain slow clock source is the 32.768 kHz crystal oscillator output.
RTCS
31
RTC Wake-up Status (cleared by reading SUPC_WUSR)
SUPC_EMRExtended Mode Register
Address
0x400531EC
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
COREBGEN
18
VDDCORE Voltage Regulator Bandgap Enable
FULLGPBRC
17
Full GPBR Clean
FLRSGPBR
16
Flash Erase GPBR
SUPC_BMRBackup Mode Register
Address
0x400531F0
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
Field
Bits
What it does
BADXTWKEN
10
Slow Crystal Oscillator Frequency Error Wake-up Enable
MRTCOUT
9
RTCOUT0 Outputs Drive Mode
0 RTCOUT0 output is driven according to the configuration of the field RTC_MR.OUT0.
VBATREN
8
Battery Voltage Event Report Enable
0 Disables the report of event on VBAT voltage.
1 Enables the report of event on VBAT voltage.
VDD3V3SMWKEN
6
VDD3V3 Supply Monitor Wake-up Enable
0 Wake-up on VDD3V3 supply monitor under voltage detection is disabled.
1 Wake-up on VDD3V3 supply monitor under voltage detection is enabled.
CORPORWKEN
5
VDDCORE POR Wake-up Enable
0 Wake-up on VDDCORE Power-On Reset Event is disabled.
1 Wake-up on VDDCORE Power-On Reset Event is enabled.
FWUPEN
4
Force Wake-up Pin Wake-up Enable
0 The fwup signal has no wake-up effect.
1 The fwup signal forces the wake-up of the core power supply.
VBATWKEN
2
VBAT Supply Monitor Wake-up Enable
0 Wake-up on VBAT supply monitor under voltage detection is disabled.
1 Wake-up on VBAT supply monitor under voltage detection is enabled.
RTCWKEN
1
Real-time Clock Wake-up Enable
0 The RTC alarm signal has no wake-up effect.
1 The RTC alarm signal forces the wake-up of the core power supply.
RTTWKEN
0
Real-time Timer Wake-up Enable
0 The RTT alarm signal has no wake-up effect.
1 The RTT alarm signal forces the wake-up of the core power supply.
KEY
31:24
Password Key
165 Writing any other value in this field aborts the write operation.
SUPC_WUSRWakeup Status Register
Address
0x400531F4
Reset
0x00000000
Access
read only
Size
32-bit
23 fields
Field
Bits
What it does
WKUPIS14
30
WKUPx Input Wake-up Status (cleared on read)
WKUPIS13
29
WKUPx Input Wake-up Status (cleared on read)
WKUPIS12
28
WKUPx Input Wake-up Status (cleared on read)
WKUPIS11
27
WKUPx Input Wake-up Status (cleared on read)
WKUPIS10
26
WKUPx Input Wake-up Status (cleared on read)
WKUPIS9
25
WKUPx Input Wake-up Status (cleared on read)
WKUPIS8
24
WKUPx Input Wake-up Status (cleared on read)
WKUPIS7
23
WKUPx Input Wake-up Status (cleared on read)
WKUPIS6
22
WKUPx Input Wake-up Status (cleared on read)
WKUPIS5
21
WKUPx Input Wake-up Status (cleared on read)
WKUPIS4
20
WKUPx Input Wake-up Status (cleared on read)
WKUPIS3
19
WKUPx Input Wake-up Status (cleared on read)
WKUPIS2
18
WKUPx Input Wake-up Status (cleared on read)
WKUPIS1
17
WKUPx Input Wake-up Status (cleared on read)
WKUPIS0
16
WKUPx Input Wake-up Status (cleared on read)
VDD3V3SMRSTS
8
VDD3V3 Supply Monitor Reset Status (cleared on read)
RTCS
5
RTC Wake-up Status (cleared on read)
RTTS
4
RTT Wake-up Status (cleared on read)
VDD3V3SMWS
3
VDD3V3 Supply Monitor Wake-up Status (cleared on read)
FWUPS
2
FWUP Wake-up Status (cleared on read)
BADXTWKS
1
Slow Crystal Oscillator Frequency Error Wake-up Status (cleared on read)
WKUPS
0
WKUP Wake-up Status (cleared on read)
WKUPIS15
31
WKUPx Input Wake-up Status (cleared on read)
SUPC_IEREnable Interrupt Register
Address
0x400531F8
Reset
0x00000000
Access
write only
Size
32-bit
7 fields
Field
Bits
What it does
VBATSMEV
17
VBAT Supply Monitor Event Interrupt Enable
VDD3V3SMEV
16
VDD3V3 Supply Monitor Event Interrupt Enable
LPDBC4
4
WKUPx Pin Tamper Detection Interrupt Enable
LPDBC3
3
WKUPx Pin Tamper Detection Interrupt Enable
LPDBC2
2
WKUPx Pin Tamper Detection Interrupt Enable
LPDBC1
1
WKUPx Pin Tamper Detection Interrupt Enable
LPDBC0
0
WKUPx Pin Tamper Detection Interrupt Enable
SUPC_IDRDisable Interrupt Register
Address
0x400531FC
Reset
0x00000000
Access
write only
Size
32-bit
7 fields
Field
Bits
What it does
VBATSMEV
17
VBAT Supply Monitor Event Interrupt Disable
VDD3V3SMEV
16
VDD3V3 Supply Monitor Event Interrupt Disable
LPDBC4
4
WKUPx Pin Tamper Detection Interrupt Disable
LPDBC3
3
WKUPx Pin Tamper Detection Interrupt Disable
LPDBC2
2
WKUPx Pin Tamper Detection Interrupt Disable
LPDBC1
1
WKUPx Pin Tamper Detection Interrupt Disable
LPDBC0
0
WKUPx Pin Tamper Detection Interrupt Disable
SUPC_IMRMask Interrupt Register
Address
0x40053200
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
Field
Bits
What it does
VBATSMEV
17
VBAT Supply Monitor Event Interrupt Mask
VDD3V3SMEV
16
VDD3V3 Supply Monitor Event Interrupt Mask
LPDBC4
4
WKUPx Pin Tamper Detection Interrupt Mask
LPDBC3
3
WKUPx Pin Tamper Detection Interrupt Mask
LPDBC2
2
WKUPx Pin Tamper Detection Interrupt Mask
LPDBC1
1
WKUPx Pin Tamper Detection Interrupt Mask
LPDBC0
0
WKUPx Pin Tamper Detection Interrupt Mask
SUPC_ISRStatus Interrupt Register
Address
0x40053204
Reset
0x00000000
Access
read only
Size
32-bit
7 fields
Field
Bits
What it does
VBATSMEV
17
VBAT Supply Monitor Event Interrupt Status (cleared on read)
VDD3V3SMEV
16
VDD3V3 Supply Monitor Event Interrupt Status (cleared on read)
LPDBC4
4
WKUPx Pin Tamper Detection Interrupt Status (cleared on read)
LPDBC3
3
WKUPx Pin Tamper Detection Interrupt Status (cleared on read)
LPDBC2
2
WKUPx Pin Tamper Detection Interrupt Status (cleared on read)
LPDBC1
1
WKUPx Pin Tamper Detection Interrupt Status (cleared on read)
LPDBC0
0
WKUPx Pin Tamper Detection Interrupt Status (cleared on read)