Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
281
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
14.4.6 Reset Controller Status Register
The Reset Controller status register (RSTC_SR) provides several status fields:
RSTTYP field: This field gives the type of the last reset, as explained in previous sections. 
SRCMP bit: This field indicates that a Software Reset Command is in progress and that no further software 
reset should be performed until the end of the current one. This bit is automatically cleared at the end of the 
current software reset. 
NRSTL bit: The NRSTL bit of the Status Register gives the level of the NRST pin sampled on each MCK 
rising edge. 
URSTS bit: A high-to-low transition of the NRST pin sets the URSTS bit of the RSTC_SR. This transition is 
also detected on the Master Clock (MCK) rising edge (see 
). If the User Reset is disabled 
(URSTEN = 0) and if the interruption is enabled by the URSTIEN bit in the RSTC_MR, the URSTS bit 
triggers an interrupt. Reading the RSTC_SR resets the URSTS bit and clears the interrupt.
Figure 14-7.
 Reset Controller Status and Interrupt
MCK
NRST
NRSTL
2 cycle 
resynchronization
2 cycle
resynchronization
URSTS
read 
RSTC_SR
Peripheral Access
rstc_irq
if (URSTEN = 0) and
(URSTIEN = 1)