The power supply includes monitoring to ensure that the required voltage levels exist. More...
Functions | |
bool | Cy_SysPm_SupplySupervisionStatus (cy_en_syspm_supply_entity_select_t supplyEntitySelect) |
Return the status of the supply supervision. More... | |
void | Cy_SysPm_BodHVEnable (void) |
Enable Brown-out detection for HV supply. More... | |
void | Cy_SysPm_BodHVDisable (void) |
Disable Brown-out detection for HV supply. More... | |
void | Cy_SysPm_OvdEnable (cy_en_syspm_ovd_sel_t ovdSel) |
Enable OverVoltage detection for selected supply. More... | |
void | Cy_SysPm_OvdDisable (cy_en_syspm_ovd_sel_t ovdSel) |
Disable OverVoltage detection for selected supply. More... | |
The power supply includes monitoring to ensure that the required voltage levels exist.
The voltage monitoring system includes power-on reset (POR), brownout detection (BOD) and over-voltage detection (OVD).
BOD
The BOD circuit protects the operating or retaining logic from possibly unsafe supply conditions by applying reset to the device. The BOD circuit generates a reset if the core voltage dips below the minimum safe operating voltage. The system will not come out of RESET until the supply is detected to be valid again.
OVD
PSOC HV MS offers two OVD circuits that are VDDD detection (OVD VDDD) and VCCD detection (OVD VCCD). Similar to the BOD circuit, the OVD circuit detects supply conditions above a threshold and applies a reset. As the name suggests, the OVD circuit maintains a device reset, if VDDD or VCCD supply stays higher than thresholds. The OVD circuit can generate a reset in all device power modes except Deep Sleep mode (Power Modes).
The OVDs are disabled by default and firmware needs to enable them.
After OVD VDDD is enabled OVD VDDD ok status (Cy_SysPm_SupplySupervisionStatus) will always read 1, because a detected over-voltage condition will reset the chip. After OVD VCCD is enabledOVD VCCD ok status (Cy_SysPm_SupplySupervisionStatus) it will always read 1, because a detected over-over-voltage condition will reset the chip.
Hardware clears this statuses during POR.
Reset Detection
Use the Cy_SysLib_GetResetReason() function to detect whether the BOD/OVD has triggered a device reset.
bool Cy_SysPm_SupplySupervisionStatus | ( | cy_en_syspm_supply_entity_select_t | supplyEntitySelect | ) |
Return the status of the supply supervision.
supplyEntitySelect | cy_en_syspm_supply_entity_select_t which status have to be checked |
void Cy_SysPm_BodHVEnable | ( | void | ) |
Enable Brown-out detection for HV supply.
void Cy_SysPm_BodHVDisable | ( | void | ) |
Disable Brown-out detection for HV supply.
void Cy_SysPm_OvdEnable | ( | cy_en_syspm_ovd_sel_t | ovdSel | ) |
Enable OverVoltage detection for selected supply.
ovdSel | cy_en_syspm_ovd_sel_t on which supply OVD have to be enabled |
void Cy_SysPm_OvdDisable | ( | cy_en_syspm_ovd_sel_t | ovdSel | ) |
Disable OverVoltage detection for selected supply.
ovdSel | cy_en_syspm_ovd_sel_t on which supply OVD have to be disabled |