27.12.1 Control A Register

Table 27-11. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CTRLA
Offset: 0x00
Reset: 0x00
Property: PAC Write-Protection

Bit 76543210 
      IORET   
Access R/W/HC 
Reset 0 

Bit 2 – IORET I/O Retention

When entering or exiting HIBERNATE or BACKUP mode, the pin configuration can be retained based on the state of this bit. This is true on any reset event, other than a POR, that terminates BACKUP or HIBERNATE mode. This bit is only cleared on a POR reset or by the user writing a “0 to it.

ValueDescription
0x0When exiting HIBERNATE or BACKUP mode, the I/O lines configuration is released and driven by the reset value of the PORT.
0x1When exiting HIBERNATE or BACKUP mode, the configuration of the I/O lines is retained, (i.e., stretched), until the IORET bit is written to 0. It allows the I/O lines to be retained until the application has programmed the PORT.
Note:
  1. This bit is ignored in IDLE, STANDBY and OFF mode. This register/bit is retained in BACKUP and HIBERNATE mode.
  2. After setting PM.CTRL.IORET = 1, any subsequent attempt by the user to change or re-initialize a PORT value, even after a non-POR reset event, or exit from BACKUP or HIBERNATE by the user, will not present themselves on the PORT’s until user clears PM.CTRL.IORET bit. The PM.CTRL.IORET bit is only cleared by silicon hardware on a POR event which will also reset the PORT values to input, high impedance state.
  3. On exit from BACKUP or HIBERNATE mode due to any reset or RTC wake event, I/O are retained except in the case of a POR event.
  4. For applicable products with VBAT feature, IO retention (IORET=1) is not applicable in VBAT backup mode.