23.9.1 Configuration Control Register 0
The CFGLOCK[1:0] register bits are writable only when CFGLOCK[0] = 0.
The IOLOCK, PMDLOCK and PGLOCK register bits can only be cleared on a system Reset. Thereafter, these bits are writable using CFGLOCK.
This register is loaded with trusted data from FBCFG1/DEVCFG0 during the pre-boot period. Trusted
data from Flash is the configuration word reading from Flash memory which does not receive
BCFG fail status and BINFOVALID = 0
. If accompanied by the fail status
BCFGFAIL (RCON[26]) or blank/erase indication, Reset values (described in the following
register description) are retained and new values from FBCFG1 are not loaded.
- IOLOCK
- CFGLOCK[1:0]
- PMDLOC
- PGLOCK
- PMULOCK
- JTAGEN
- HPLUGDIS
Hence, writing these bits in Boot Flash does not have an effect on the configuration register.
Name: | CFGCON0(L) |
Offset: | 0x00 |
Reset: | 0x7960000b |
Property: | - |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
FRECCDIS | ECCCTL[1:0] | CMEN | INT0P | INT0E | PCM | ||||
Access | R/L | R/W/L | R/W/L | R/W/L | R/W/L | R/W/L | R/W/L | ||
Reset | 1 | 1 | 1 | 1 | 0 | 0 | 1 |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
SMBUS3EN2 | VBUSONIO | USBIDIO | HPLUGDIS | UPLLHWMD | EPLLHWMD | USBSSEN | |||
Access | R/W/L | R/W/L | R/W/L | R/W | R/W/L | R/W/L | R/W/L | ||
Reset | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
CFGLOCK[1:0] | IOLOCK | PMDLOCK | PGLOCK | PMULOCK | RTCOUT_ALTEN | RTCIN0_ALTEN | |||
Access | R/W/L | R/W/L | R/S/L | R/S/L | R/S/L | R/S/L | R/W/L | R/W/L | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CPENFILT | ADCPOVR | JTAGEN | TROEN | SWOEN | |||||
Access | R/W/L | R/W/L | R/W/L | R/W/L | R/W/L | ||||
Reset | 0 | 0 | 1 | 0 | 1 |
Bit 30 – FRECCDIS Flex RAM (SRAM) ECC Control
Value | Description |
---|---|
1 | ECC is disabled |
0 | ECC is enabled |
Bits 29:28 – ECCCTL[1:0] Flash ECC Control
00
’.Value | Description |
---|---|
11 | ECC and dynamically ECC are disabled |
10 | ECC and dynamically ECC are disabled |
01 | Dynamically ECC is enabled |
00 | ECC is enabled (NVMCON.NVMOP[3:0] != 1 (Word programming)) |
Bit 27 – CMEN SPA/DPA Counter measures Enable
Value | Description |
---|---|
1 | SPA/DPA Counter measure is enabled |
0 | SPA/DPA Counter measure is disabled |
Bit 26 – INT0P INT0 Polarity
00
’.Value | Description |
---|---|
1 | INT0 Polarity (High) |
0 | INT0 Polarity (Low) |
Bit 25 – INT0E INT0 Enable
00
’.Value | Description |
---|---|
1 | INT0 is enabled |
0 | INT0 is disabled |
Bit 24 – PCM PCHE I/D Cacheable Mode
00
’.Value | Description |
---|---|
1 | Always enabled from outside. Can be further enabled/disabled by PCHE SFR registers. |
0 | The cache-ability is controlled by the CPU via HPROT[3] of ARM protection control bus. |
Bit 23 – SMBUS3EN2 SMBus3 Enable for SERCOM2
I2C (TWI) Enabled? | SMBUS3EN | SMBUSEN | PAD0/PAD1 Interface |
---|---|---|---|
No | 0/1 | 0/1 | ST |
Yes | 0 | 0 | I2C |
Yes | 0 | 1 | SMBus |
Yes | 1 | 0/1 | SMBus3 |
- This bit does not enable functional SMBus3 features, only SMBus3 tolerant pad functionality. It is intended to provide a mechanism for implementing a 1.8V I2C or SMBus interface using external 1.8V pull-ups.
- This bit is only writable when CFGLOCK[1:0] is ‘
00
’.
Value | Description |
---|---|
1 | SMBus3 tolerant pads are enabled |
0 | SMBus3 tolerant pads are disabled |
Bit 22 – VBUSONIO USB VBUS_ON Selection bit
00
’.Value | Description |
---|---|
1 | The USB module controls the VBUS_ON pin |
0 | The Port function controls the VBUS_ON pin |
Bit 21 – USBIDIO USB USBID Selection bit
00
’.Value | Description |
---|---|
1 | The USB module controls the USBID pin |
0 | The Port function controls the USBID pin |
Bit 20 – HPLUGDIS Hot Plugging Disable (outside fuse loading)
00
’.Value | Description |
---|---|
1 | Hot plugging is disabled |
0 | Hot plugging is enabled |
Bit 19 – UPLLHWMD UWPLL HW Control Mode for PWDN and RESET
00
’.Value | Description |
---|---|
1 | PWDN and RESET are generated by hardware |
0 | PWDN and RESET are generated by software using corresponding PLLCON register bits |
Bit 18 – EPLLHWMD EWPLL HW Control Mode for PWDN and RESET
00
’.Value | Description |
---|---|
1 | PWDN and RESET are generated by hardware |
0 | PWDN and RESET are generated by software using corresponding PLLCON register bits |
Bit 17 – USBSSEN USB Suspend Sleep Enable
00
’.Value | Description |
---|---|
1 | USB FREF clock is shut down when the Suspend mode is active |
0 | USB FREF clock continues to run when the Suspend mode is active |
Bits 15:14 – CFGLOCK[1:0] Configuration Register Lock
00
’ or ‘10
’.Value | Description |
---|---|
11 | All NVR memory self-writes, Boot Configuration (BCFG0) and System Configuration registers (CFG* and USER_ID) are locked and cannot be written. CFGLOCK value cannot be changed. |
10 | All NVR memory self-writes, Boot Configuration (BCFG0) and System Configuration registers (CFG* and USER_ID) are locked and cannot be written. CFGLOCK value can be changed. |
01 | Reserved for future use |
00 | All NVR memory self-writes, Boot Configuration (BCFG0) and System Configuration registers (CFG* and USER_ID) are not locked and can be written. CFGLOCK value can be changed. |
Bit 13 – IOLOCK I/O Lock
00
’.Value | Description |
---|---|
1 | I/O Remap SFR bits are locked and cannot be modified |
0 | I/O Remap SFR bits are not locked and can be modified |
Bit 12 – PMDLOCK Peripheral Module Disable (PMD) Lock
00
’.Value | Description |
---|---|
1 | PMDx SFR bits are locked and cannot be modified |
0 | PMDx SFR bits are not locked and can be modified |
Bit 11 – PGLOCK Permission Group Lock
00
’.Value | Description |
---|---|
1 | CFGPG SFR bits are locked and cannot be modified |
0 | CFGPG SFR bits are not locked and can be modified |
Bit 10 – PMULOCK PMU Controller Register Lock
00
’.Value | Description |
---|---|
1 | PMU* SFR bits are locked and cannot be modified |
0 | PMU* SFR bits are not locked and can be modified |
Bit 9 – RTCOUT_ALTEN RTCOUT Alternate Enable
00
’.Value | Description |
---|---|
1 | RTC/OUT is available on PA10 |
0 | RTC/OUT is available on PA4 |
Bit 8 – RTCIN0_ALTEN RTCIN0 Alternate Enable
00
’.Value | Description |
---|---|
1 | RTC_IN0 is available on PA9 |
0 | RTC_IN0 is available on PA3 |
Bit 7 – CPENFILT ADC CP Filter Enable
00
’.Value | Description |
---|---|
1 | ADC CP filter is enabled |
0 | ADC CP filter is disabled |
Bit 4 – ADCPOVR ADC Charge Pump Override
00
’.Value | Description |
---|---|
1 | Overridden (Software controlled) |
0 | Hardware controlled |
Bit 3 – JTAGEN JTAG Enable
1
’. It is recommended to write ‘0
’ to this bit during Application initialization to use JTAG pins for regular GPIO functionality. For pin details, see I/O Ports and Peripheral Pin Select (PPS) from Related Links.Bit 2 – TROEN Trace Output Enable
- When CFGCON1.TRCEN =
0
, the value of this bit is ignored but has the effect of being ‘0
’. - This bit is only writable when CFGLOCK[1:0] is ‘
00
’.
Value | Description |
---|---|
1 | Start Trace Clock and enable Trace Outputs (Trace probe must be present) |
0 | Stop Trace Clock and disable Trace Outputs |
Bit 1 – SWOEN SWO Enable on two-wire Debug interface
00
’.Value | Description |
---|---|
1 | SWO is enabled |
0 | SWO is disabled |