1.8.16 Reset Controller (RSTC)

The Reset Controller handles all resets of the system and is driven by power-on reset cells (POR), supply monitor cells (SM), software, the external reset pin, and peripheral events. The RSTC reports the type of reset.

The RSTC drives independently or simultaneously the external reset and the peripheral and dual processor resets.

The RSTC generates following reset signals:

  • Processor and peripherals reset line (also resets the Watchdog Timers)

  • Coprocessor (second processor) reset line

  • Embedded peripherals driven by the coprocessor

  • Power Management Controller (PMC) reset line

  • NRST pin

Using The Library

The reset controller (RSTC) peripheral library provides API to find the cause of last device reset, generate specific reset, assert/de-assert reset of co-processor and its peripherals.

Library Interface

Reset Controller peripheral library provides the following interfaces:

Functions

Name Description
RSTC_Initialize Initializes RSTC peripheral based on MCC configuration
RSTC_ResetCauseGet Reports the cause of the latest reset
RSTC_NRSTPinRead Reads the NRST pin level, sampled on each "Master Clock(MCK)" rising edge
RSTC_CoProcessorEnable Asserts/de-asserts reset on co-processor
RSTC_CoProcessorPeripheralEnable Asserts/de-asserts reset on co-processor peripherals
RSTC_CallbackRegister Allows application to register callback with PLIB

Data types and constants

Name Type Description
RSTC_RESET_CAUSE Typedef Identifies the cause of reset
RSTC_RESET_TYPE Enum Identifies the type of reset