32.3.1 SFRBU Power Switch BU Control Register

The backup power switch selects the primary power source for the backup regulator (either VBAT or VDDIN33).

Name: SFRBU_PSWBU
Offset: 0x00
Reset: 0x00000001
Property: Read/Write

Bit 3130292827262524 
 PSWKEY[23:16] 
Access WWWWWWWW 
Reset 00000000 
Bit 2322212019181716 
 PSWKEY[15:8] 
Access WWWWWWWW 
Reset 00000000 
Bit 15141312111098 
 PSWKEY[7:0] 
Access WWWWWWWW 
Reset 00000000 
Bit 76543210 
      STATESOFTSWITCHCTRL 
Access RR/WR/W 
Reset 001 

Bits 31:8 – PSWKEY[23:0] Specific Value Mandatory to Allow Writing of Other Register Bits (Write-only)

PSWKEY is a security key preventing power switch changes due to software error or malicious code.

ValueNameDescription
0x4BD20C PASSWD

Writing any other value in this field aborts the write operation in the SFRBU_PSWBU register.

Always reads as 0.

Bit 2 – STATE Power Switch BU State (Read-only)

Reflects the power switch BU supply source selection in real time. After a switching request, the user must wait for the analog cell switching time to have an updated status (see the section Electrical Characteristics).

ValueNameDescription
0 VBAT

LDO Supply source is VBAT.

1 VDDIN33 LDO Supply source is VDDIN33.

Bit 1 – SOFTSWITCH Power Switch BU Source Selection

Has an action only if CTRL is set to ‘1’.

ValueNameDescription
0 VBAT

LDO Supply source is VBAT.

1 VDDIN33 LDO Supply source is VDDIN33.

Bit 0 – CTRL Power Switch BU Control

Used to control the Power Switch BU state by software.

ValueNameDescription
0 HARD

Power Switch BU is controlled by hardware (SOFTSWITCH bit has no action).

1 SOFT Power Switch BU is controlled by software (SOFTSWITCH bit has an action).