2.12. Chip-Level Reset

2.12.1. Overview

The chip-level reset subsystem resets the whole chip, placing it in a default state. This happens at initial power-on, during a power supply brown-out event or when the chip's RUN pin is taken low. The chip can also be reset via the

Rescue Debug Port. See Section 2.3.4.2, “Rescue DP” for details.

The subsystem has two reset outputs. rst_n_psm, which resets the whole chip, except the debug port, and rst_n_dp, which only resets the Rescue DP. Both resets are held low at initial power-on, during a brown-out event or when RUN is low. rst_n_psm can additionally be held low by the Rescue DP via the subsystem’s psm_restart input. This allows the chip to be reset via the Rescue DP without resetting the Rescue DP itself. The subsystem releases chip level reset by taking rst_n_psm high, handing control to the Power-on State Machine, which continues to start up the chip. See Section 2.13, “Power-On State Machine” for details.

The chip level reset subsystem is shown in Figure 21 , and more information is available in the following sections.

Figure 21. The chip-level reset subsystem

Block diagram of the chip-level reset subsystem.

The diagram illustrates the chip-level reset subsystem. It shows the following components and connections:

Block diagram of the chip-level reset subsystem.

2.12.2. Power-on Reset

The power-on reset block makes sure the chip starts up cleanly when power is first applied by holding it in reset until the digital core supply (DVDD) can reliably power the chip’s core logic. The block holds its por_n output low until DVDD has been above the power-on reset threshold ( \( DVDD_{TH,POR} \) ) for a period greater than the power-on reset assertion delay ( \( t_{POR,ASSERT} \) ). Once high, por_n remains high even if DVDD subsequently falls below \( DVDD_{TH,POR} \) , unless brown-out detection is enabled. The behaviour of por_n when power is applied is shown in Figure 22 .

\( DVDD_{TH,POR} \) is fixed at a nominal 0.957V, which should result in a threshold between 0.924V and 0.99V. The threshold assumes a nominal DVDD of 1.1V at initial power-on, and por_n may never go high if a lower voltage is used. Once the chip is out of reset, DVDD can be reduced without por_n going low, as long as brown-out detection has been disabled or a suitable threshold voltage has been set.

Figure 22. A power-on reset cycle

Timing diagram of a power-on reset cycle.

The timing diagram shows the relationship between DVDD and por_n during a power-on reset cycle:

Timing diagram of a power-on reset cycle.

2.12.2.1. Detailed Specifications

Table 193. Power-on Reset Parameters

ParameterDescriptionMinTypMaxUnits
DVDD TH.PORpower-on reset threshold0.9240.9570.99V
t POR.ASSERTpower-on reset assertion delay310µs

2.12.3. Brown-out Detection

The brown-out detection block prevents unreliable operation by initiating a power-on reset cycle if the digital core supply (DVDD) drops below a safe operating level. The block's bod_n output is taken low if DVDD drops below the brown-out detection threshold (DVDD TH.BOD ) for a period longer than the brown-out detection assertion delay (t BOD.ASSERT ). This re-initialises the power-on reset block, which resets the chip, by taking its por_n output low, and holds it in reset until DVDD returns to a safe operating level. Figure 23 shows a brown-out event and the subsequent power-on reset cycle.

Figure 23. A brown-out detection cycle

Timing diagram for a brown-out detection cycle. It shows three signals: DVDD, por_n, and bod_n. DVDD starts at a high level, drops below the brown-out threshold (DVDD_TH.BOD), and then recovers. When DVDD drops below the threshold, bod_n goes low. When DVDD recovers above the threshold, bod_n goes high. The time from DVDD dropping below the threshold to bod_n going low is t_BOD.ASSERT. When DVDD recovers above the threshold, bod_n goes high after a delay t_POR.ASSERT. The por_n signal goes low when bod_n goes low and stays low until DVDD recovers above the threshold, then goes high. The time from DVDD dropping below the threshold to por_n going low is t_BOD.ASSERT. The time from DVDD recovering above the threshold to por_n going high is t_POR.ASSERT.
Timing diagram for a brown-out detection cycle. It shows three signals: DVDD, por_n, and bod_n. DVDD starts at a high level, drops below the brown-out threshold (DVDD_TH.BOD), and then recovers. When DVDD drops below the threshold, bod_n goes low. When DVDD recovers above the threshold, bod_n goes high. The time from DVDD dropping below the threshold to bod_n going low is t_BOD.ASSERT. When DVDD recovers above the threshold, bod_n goes high after a delay t_POR.ASSERT. The por_n signal goes low when bod_n goes low and stays low until DVDD recovers above the threshold, then goes high. The time from DVDD dropping below the threshold to por_n going low is t_BOD.ASSERT. The time from DVDD recovering above the threshold to por_n going high is t_POR.ASSERT.

2.12.3.1. Detection Enable

Brown-out detection is automatically enabled at initial power-on or after a brown-out initiated reset. There is, however, a short delay, the brown-out detection activation delay (t BOD.ACTIVE ), between por_n going high and detection becoming active. This is shown in Figure 24.

Figure 24. Activation of brown-out detection at initial power-on and following a brown-out event.

Timing diagram showing the activation of brown-out detection. It shows three signals: DVDD, por_n, and bod_n. DVDD starts at a low level, rises above the brown-out threshold (DVDD_TH.BOD), and then drops below it. When DVDD rises above the threshold, bod_n goes high. When DVDD drops below the threshold, bod_n goes low. The time from DVDD rising above the threshold to bod_n going high is t_BOD.ACTIVE. The time from DVDD dropping below the threshold to bod_n going low is t_BOD.ASSERT. The por_n signal goes low when bod_n goes low and stays low until DVDD recovers above the threshold, then goes high. The time from DVDD dropping below the threshold to por_n going low is t_BOD.ASSERT. The time from DVDD recovering above the threshold to por_n going high is t_POR.ASSERT. A fourth signal, 'detection', is shown at the bottom, indicating the state of the brown-out detection block: 'detection inactive' when DVDD is above the threshold and 'detection active' when DVDD is below the threshold. The transition from inactive to active occurs after a delay t_BOD.ACTIVE from por_n going high. The transition from active to inactive occurs when DVDD recovers above the threshold.
Timing diagram showing the activation of brown-out detection. It shows three signals: DVDD, por_n, and bod_n. DVDD starts at a low level, rises above the brown-out threshold (DVDD_TH.BOD), and then drops below it. When DVDD rises above the threshold, bod_n goes high. When DVDD drops below the threshold, bod_n goes low. The time from DVDD rising above the threshold to bod_n going high is t_BOD.ACTIVE. The time from DVDD dropping below the threshold to bod_n going low is t_BOD.ASSERT. The por_n signal goes low when bod_n goes low and stays low until DVDD recovers above the threshold, then goes high. The time from DVDD dropping below the threshold to por_n going low is t_BOD.ASSERT. The time from DVDD recovering above the threshold to por_n going high is t_POR.ASSERT. A fourth signal, 'detection', is shown at the bottom, indicating the state of the brown-out detection block: 'detection inactive' when DVDD is above the threshold and 'detection active' when DVDD is below the threshold. The transition from inactive to active occurs after a delay t_BOD.ACTIVE from por_n going high. The transition from active to inactive occurs when DVDD recovers above the threshold.

Once the chip is out of reset, detection can be disabled under software control. This also saves a small amount of power. If detection is subsequently re-enabled, there will be another short delay, the brown-out detection enable delay (t BOD.ENABLE ), before it becomes active again. This is shown in Figure 25.

Detection is disabled by writing a zero to the EN field in the BOD register and is re-enabled by writing a one to the same field. The block's bod_n output is high when detection is disabled.

Figure 25. Disabling and enabling brown-out detection

Timing diagram for Figure 25 showing the EN field in the BOD register and the resulting detection state. The EN signal transitions from 1 to 0 and then back to 1. When EN is 0, detection is inactive. When EN transitions back to 1, there is a delay t_BOD.ENABLE before detection becomes active.

The diagram shows a signal trace for the EN field of the BOD register. The signal starts at 1, transitions to 0, and then transitions back to 1. Below the signal trace, the detection state is indicated: 'detection inactive' when EN is 0, and 'detection active' when EN is 1. A horizontal arrow labeled \( t_{BOD.ENABLE} \) indicates the delay between the EN signal transitioning from 0 to 1 and the detection becoming active.

Timing diagram for Figure 25 showing the EN field in the BOD register and the resulting detection state. The EN signal transitions from 1 to 0 and then back to 1. When EN is 0, detection is inactive. When EN transitions back to 1, there is a delay t_BOD.ENABLE before detection becomes active.

Detection is re-enabled if the BOD register is reset, as this sets the register's EN field to one. Again, detection will become active after a delay equal to the brown-out detection enable delay ( \( t_{BOD.ENABLE} \) ).

NOTE

If the BOD register is reset by a power-on or brown-out initiated reset, the delay between the register being reset and brown-out detection becoming active will be equal to the brown-out detection activation delay ( \( t_{BOD.ACTIVE} \) ). The delay will be equal to the brown-out detection enable delay ( \( t_{BOD.ENABLE} \) ) for all other reset sources.

2.12.3.2. Adjusting the Detection Threshold

The brown-out detection threshold ( \( DVDD_{TH.BOD} \) ) has a nominal value of 0.86V at initial power-on or after a reset event. This should result in a detection threshold between 0.83V and 0.89V. Once out of reset, the threshold can be adjusted under software control. The new detection threshold will take effect after the brown-out detection programming delay ( \( t_{BOD.PROG} \) ). An example of this is shown in Figure 26 .

The threshold is adjusted by writing to the VSEL field in the BOD register. See the BOD register description for details.

Figure 26. Adjusting the brown-out detection threshold

Timing diagram for Figure 26 showing the VSEL field in the BOD register and the resulting detection threshold. The VSEL signal transitions from 1001 to 0111. When VSEL is 1001, the threshold is 0.86V. When VSEL transitions to 0111, there is a delay t_BOD.PROG before the threshold becomes 0.774V.

The diagram shows a signal trace for the VSEL field of the BOD register. The signal starts at 1001, transitions to 0111, and then transitions back to 1001. Below the signal trace, the detection threshold is indicated: 'threshold 0.86V' when VSEL is 1001, and 'threshold 0.774V' when VSEL is 0111. A horizontal arrow labeled \( t_{BOD.PROG} \) indicates the delay between the VSEL signal transitioning from 1001 to 0111 and the threshold becoming 0.774V.

Timing diagram for Figure 26 showing the VSEL field in the BOD register and the resulting detection threshold. The VSEL signal transitions from 1001 to 0111. When VSEL is 1001, the threshold is 0.86V. When VSEL transitions to 0111, there is a delay t_BOD.PROG before the threshold becomes 0.774V.

2.12.3.3. Detailed Specifications

Table 194. Brown-out Detection Parameters

ParameterDescriptionMinTypMaxUnits
\( DVDD_{TH.BOD} \)brown-out detection threshold96.5100103.5% of selected threshold voltage
\( t_{BOD.ACTIVE} \)brown-out detection activation delay5580\( \mu s \)
ParameterDescriptionMinTypMaxUnits
\( t_{\text{BOD,ASSERT}} \)brown-out detection assertion delay310\( \mu\text{s} \)
\( t_{\text{BOD,ENABLE}} \)brown-out detection enable delay3555\( \mu\text{s} \)
\( t_{\text{BOD,PROG}} \)brown-out detection programming delay2030\( \mu\text{s} \)

2.12.4. Supply Monitor

The power-on and brown-out reset blocks are powered by the on-chip voltage regulator's input supply (VREG_VIN). The blocks are initialised when power is first applied, but may not be reliably re-initialised if power is removed and then reapplied before VREG_VIN has dropped to a sufficiently low level. To prevent this happening, VREG_VIN is monitored and the power-on reset block is re-initialised if it drops below the VREG_VIN activation threshold (VREG_VIN TH,ACTIVE ). VREG_VIN TH,ACTIVE is fixed at a nominal 1.1V, which should result in a threshold between 0.87V and 1.26V. This threshold does not represent a safe operating voltage. It is the voltage that VREG_VIN must drop below to reliably re-initialise the power-on reset block. For safe operation, VREG_VIN must be at a nominal voltage between 1.8V and 3.3V.

2.12.4.1. Detailed Specifications

Table 195. Voltage Regulator Input Supply Monitor Parameters

ParameterDescriptionMinTypMaxUnits
VREG_VIN TH,ACTIVEVREG_VIN activation threshold0.871.11.26V

2.12.5. External Reset

The chip can also be reset by taking its RUN pin low. Taking RUN low will hold the chip in reset irrespective of the state of the core power supply (DVDD) and the power-on reset / brown-out detection blocks. The chip will come out of reset as soon as RUN is taken high, if all other reset sources have been released. RUN can be used to extend the initial power-on reset, or can be driven from an external source to start and stop the chip as required. If RUN is not used, it should be tied high.

2.12.6. Rescue Debug Port Reset

The chip can also be reset via the Rescue Debug Port. This allows the chip to be recovered from a locked up state. In addition to resetting the chip, a Rescue Debug Port reset also sets the PSM_RESTART_FLAG in the CHIP_RESET register. This is checked by the bootcode at startup, causing it to enter a safe state if the bit is set. See Section 2.3.4.2, "Rescue DP" for more information.

2.12.7. Source of Last Reset

The source of the most recent chip-level reset can be determined by reading the state of the HAD_POR, HAD_RUN and HAD_PSM_RESTART fields in the CHIP_RESET register. A one in the HAD_POR field indicates a power supply related reset, i.e. either a power-on or brown-out initiated reset, a one in the HAD_RUN field indicates the chip was last reset by the RUN pin, and a one in the HAD_PSM_RESTART field indicates the chip has been reset via Rescue Debug Port. There should never be more than one field set to one.

2.12.8. List of Registers

The chip-level reset subsystem shares a register address space with the on-chip voltage regulator. The registers for both subsystems are listed in Section 2.10.6 . The shared address space is referred to as vreg_and_chip_reset elsewhere in this document.