3.2.19 Reset Controller (RCON)
This family of devices implements a Reset module to safely control device start up, faults and external conditions. There are two types of Resets: cold Reset and warm Reset.
A cold Reset is the result of a Power-on Reset (POR) or Brown-out Reset (BOR). A warm Reset is the result of all other Reset sources, including the RESET instruction.
The device is kept in a Reset state until the system power supplies have stabilized at appropriate levels and the oscillator clock is ready. When the oscillator clock is ready, the processor begins execution from the Reset location. The user application programs a GOTO instruction at the Reset address, which redirects program execution to the appropriate start-up routine.
When the device exits the Reset condition (begins normal operation), the device operating parameters (voltage, frequency, temperature, etc.) must be within their operating ranges, otherwise the device may not function correctly.
Using The Library
The Resets module combines all Reset sources and controls the system level Reset signal SYSRST. The following is a list of device Reset sources:
• Power-on Reset (POR)
• Brown-out Reset (BOR)
• Master Clear Reset (MCLR)
• Watchdog Time-out Reset (WDT)
• Software Reset (SWR)
• Configuration Mismatch Reset (CM)
• Idle reset (IDLE)
• Sleep reset (SLEEP)
Library Interface
This peripheral library provides the following interfaces:
Functions
Name | Description |
---|---|
RCON_ResetCauseGet | Reports the cause of the last reset |
RCON_ResetCauseClear | Clears the particular reset cause status bit |
RCON_CauseClearAll | Clears the Reset Cause register |
Data types and constants
Name | Type | Description |
---|---|---|
RCON_RESET_CAUSE | Enum | Identifies the possible reason of device reset |