21.3.1 SFRBU Power Switch BU Control Register

Name: SFRBU_PSWBUCTRL
Offset: 0x00
Reset: 0x00000009
Property: Read/Write

Bit 3130292827262524 
 KEY_PSW_MODE[23:16] 
Access WWWWWWWW 
Reset 00000000 
Bit 2322212019181716 
 KEY_PSW_MODE[15:8] 
Access WWWWWWWW 
Reset 00000000 
Bit 15141312111098 
 KEY_PSW_MODE[7:0] 
Access WWWWWWWW 
Reset 00000000 
Bit 76543210 
     STATESMCTRLSSWCTRLSCTRL 
Access RR/WR/WR/W 
Reset 1001 

Bits 31:8 – KEY_PSW_MODE[23:0] Specific value mandatory to allow writing of other register bits (Write-only)

This field is a security key to prevent power switch changes due to software error or malicious code.

ValueDescription
0x4BD20C

SFRBU_PSWBUCTRL register write possible.

Other values

SFRBU_PSWBUCTRL register write impossible.

Bit 3 – 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").

ValueDescription
0

LDO BU Supply source is VDDBU.

1

LDO BU Supply source is VDDANA.

Bit 2 – SMCTRL Allow Power Switch BU Control by Security Module Autobackup (Hardware)

Enables automatic selection of the VDDBU source when the security module enters Backup mode.

This automatic supply source switching is independent from the SCTRL and SSWCTRL bits.

ValueDescription
0 Reset value. No automatic supply source switching from security module.
1

Automatic supply source switching from security module activated.

Bit 1 – SSWCTRL Power Switch BU Source Selection

Has an action only if SCTRL bit value is “1”.

ValueDescription
0 Reset value. LDO Supply source is VDDBU.
1

LDO Supply source is VDDANA.

Bit 0 – SCTRL Power Switch BU Software Control

Used to control the Power Switch BU state by software in addition to the SSWCTRL bit.

ValueDescription
0

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

1 Reset value. Power Switch BU is controlled by software (SSWCTRL bit has an action).