30.5.1 Control A

Name: CTRLA
Offset: 0x00
Reset: 0x00
Property: Configuration Change Protection (when enabled by CCP bit in CTRLA)

Bit 76543210 
     CCPLOCKMODEENABLE 
Access R/WR/WR/WR/W 
Reset 0000 

Bit 3 – CCP SWDT CCP Mode

This bit enables CCP protection of most SWDT registers. It can be written only when the LOCK bit is ‘0’.

ValueNameDescription
0x0 DISABLE SWDT registers are not CCP-Protected
0x1 ENABLE SWDT registers are CCP-Protected

Bit 2 – LOCK SWDT Register Lock

This bit write-protects many of the registers in the SWDT and enables CCP protection of several other SWDT registers. After it is written to ‘1’, it cannot be changed back to ‘0’.

ValueNameDescription
0x0 UNLOCKED SWDT registers are not Lock Protected
0x1 LOCKED SWDT registers are Lock Protected

Bit 1 – MODE SWDT Mode

This bit selects the operation mode of the SWDT. It can be written only when the LOCK bit is ‘0’.

ValueNameDescription
0x0 CLOCK SWDT counts clock cycles
0x1 INSTRUCTION SWDT counts executed instructions

Bit 0 – ENABLE Enable SWDT

Writing this bit to ‘1’ enables the SWDT. This bit can be written to ‘1’ even when the LOCK bit is ‘1’. Once written to ‘1’ , only a reset can clear this bit.