2.13. Power-On State Machine

2.13.1. Overview

The power-on state machine removes the reset from various hardware blocks in a specific order. Each peripheral in the power-on state machine is controlled by an internal rst_n active-low reset signal and generates an internal rst_done active-high reset done signal. The power-on state machine deasserts the reset to each peripheral, waits for that peripheral to assert its rst_done and then deasserts the reset to the next peripheral. An important use of this is to wait for a clock source to be running cleanly in the chip before the reset to the clock generators is deasserted. This avoids potentially glitchy clocks being distributed to the chip.

The power-on state machine is itself taken out of reset when the Chip-Level Reset subsystem confirms that the digital core supply (DVDD) is powered and stable, and the RUN pin is high. The power-on state machine takes a number of other blocks out of reset at this point via its rst_n_run output. This is used to reset things that need to be reset at start-up but must not be reset if the power-on state machine is restarted. This list includes:

2.13.2. Power On Sequence

Figure 27. Power-On State Machine Sequence.

Flowchart of the Power-On State Machine Sequence. The sequence starts with 'Chip Level Reset Released', which triggers the 'Ring Oscillator'. The 'Ring Oscillator' connects to the 'Crystal Oscillator', which connects to 'Clock Generators', which connects to the 'Reset Controller'. The 'Reset Controller' connects to the 'Bus Fabric', which connects to 'ROM / SRAM', which connects to 'XIP (Execute-In-Place)', which connects to 'Chip Level Reset and Voltage Regulator Registers'. Finally, the 'Chip Level Reset and Voltage Regulator Registers' connects to the 'Processor Complex'.
graph TD
    A[Chip Level Reset Released] --> B[Ring Oscillator]
    B --> C[Crystal Oscillator]
    C --> D[Clock Generators]
    D --> E[Reset Controller]
    E --> F[Bus Fabric]
    F --> G[ROM / SRAM]
    G --> H[XIP (Execute-In-Place)]
    H --> I[Chip Level Reset and Voltage Regulator Registers]
    I --> J[Processor Complex]
  
Flowchart of the Power-On State Machine Sequence. The sequence starts with 'Chip Level Reset Released', which triggers the 'Ring Oscillator'. The 'Ring Oscillator' connects to the 'Crystal Oscillator', which connects to 'Clock Generators', which connects to the 'Reset Controller'. The 'Reset Controller' connects to the 'Bus Fabric', which connects to 'ROM / SRAM', which connects to 'XIP (Execute-In-Place)', which connects to 'Chip Level Reset and Voltage Regulator Registers'. Finally, the 'Chip Level Reset and Voltage Regulator Registers' connects to the 'Processor Complex'.

The power-on state machine sequence is as follows:

The rest of the sequence is fairly simple, with the following coming out of reset in order one by one:

The final thing to come out of reset is the processor complex. This includes both core0 and core1 . Both cores will start executing the bootcode from ROM. One of the first things the bootrom does is read the core id. At this point, core1 will go to sleep leaving core0 to continue with the bootrom execution. The processor complex has its own reset control and various low-power modes which is why both the core0 and core1 resets are deasserted, despite only core0 being needed for the bootrom.

2.13.3. Register Control

The power-on state machine is a fully automated piece of hardware. It requires no input from the user to work. There are register controls that can be used to override and see the status of the power-on state machine. This allows hardware blocks in the power-on state machine to be reset by software if necessary. There is also a WDSSEL register which is used to control what is reset by a Watchdog reset.

2.13.4. Interaction with Watchdog

The power-on state machine can be restarted from a software-programmable position if the Watchdog fires. For example, in the case the processor is stuck in an infinite loop, or the programmer has somehow misconfigured the chip. It is important to note that if a peripheral in the power-on state machine has the WDSSEL bit set, every peripheral after it in the power-on sequence will also be reset because the rst_done of the selected peripheral will be deasserted, asserting rst_n for the remaining peripherals.

2.13.5. List of Registers

The PSM registers start at a base address of 0x40010000 (defined as PSM_BASE in SDK).

Table 196. List of PSM registers

OffsetNameInfo
0x0FRCE_ONForce block out of reset (i.e. power it on)
0x4FRCE_OFFForce into reset (i.e. power it off)
0x8WDSELSet to 1 if this peripheral should be reset when the watchdog fires.
0xcDONEIndicates the peripheral's registers are ready to access.

PSM: FRCE_ON Register

Offset: 0x0

Description

Force block out of reset (i.e. power it on)

Table 197. FRCE_ON Register

BitsDescriptionTypeReset
31:17Reserved.--
16PROC1RW0x0
15PROC0RW0x0
14SIORW0x0
13VREG_AND_CHIP_RESETRW0x0
12XIPRW0x0
11SRAM5RW0x0
10SRAM4RW0x0
9SRAM3RW0x0
8SRAM2RW0x0
7SRAM1RW0x0
6SRAM0RW0x0
5ROMRW0x0
4BUSFABRICRW0x0
3RESETSRW0x0
2CLOCKSRW0x0
1XOSCRW0x0
0ROSCRW0x0

PSM: FRCE_OFF Register

Offset: 0x4

Description

Force into reset (i.e. power it off)

Table 198. FRCE_OFF Register

BitsDescriptionTypeReset
31:17Reserved.--
16PROC1RW0x0
BitsDescriptionTypeReset
15PROC0RW0x0
14SIORW0x0
13VREG_AND_CHIP_RESETRW0x0
12XIPRW0x0
11SRAM5RW0x0
10SRAM4RW0x0
9SRAM3RW0x0
8SRAM2RW0x0
7SRAM1RW0x0
6SRAM0RW0x0
5ROMRW0x0
4BUSFABRICRW0x0
3RESETSRW0x0
2CLOCKSRW0x0
1XOSCRW0x0
0ROSCRW0x0

PSM: WDSSEL Register

Offset: 0x8

Description

Set to 1 if this peripheral should be reset when the watchdog fires.

Table 199. WDSSEL Register

BitsDescriptionTypeReset
31:17Reserved.--
16PROC1RW0x0
15PROC0RW0x0
14SIORW0x0
13VREG_AND_CHIP_RESETRW0x0
12XIPRW0x0
11SRAM5RW0x0
10SRAM4RW0x0
9SRAM3RW0x0
8SRAM2RW0x0
7SRAM1RW0x0
6SRAM0RW0x0
5ROMRW0x0
4BUSFABRICRW0x0
BitsDescriptionTypeReset
3RESETSRW0x0
2CLOCKSRW0x0
1XOSCRW0x0
0ROSCRW0x0

PSM: DONE Register

Offset: 0xc

Description

Indicates the peripheral's registers are ready to access.

Table 200. DONE Register

BitsDescriptionTypeReset
31:17Reserved.--
16PROC1RO0x0
15PROC0RO0x0
14SIORO0x0
13VREG_AND_CHIP_RESETRO0x0
12XIPRO0x0
11SRAM5RO0x0
10SRAM4RO0x0
9SRAM3RO0x0
8SRAM2RO0x0
7SRAM1RO0x0
6SRAM0RO0x0
5ROMRO0x0
4BUSFABRICRO0x0
3RESETSRO0x0
2CLOCKSRO0x0
1XOSCRO0x0
0ROSCRO0x0