CAT2 Peripheral Driver Library

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...
 

Detailed Description

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.

Function Documentation

◆ Cy_SysPm_SupplySupervisionStatus()

bool Cy_SysPm_SupplySupervisionStatus ( cy_en_syspm_supply_entity_select_t  supplyEntitySelect)

Return the status of the supply supervision.

Parameters
supplyEntitySelectcy_en_syspm_supply_entity_select_t which status have to be checked
Returns
  • True if the supply entity is OK
  • False if if the supply entity is not OK
Note
Applicable to PSOC4 HVMS/PA only.

◆ Cy_SysPm_BodHVEnable()

void Cy_SysPm_BodHVEnable ( void  )

Enable Brown-out detection for HV supply.

Note
Applicable to PSOC4 HVMS/PA only.
You can check status by the Cy_SysPm_SupplySupervisionStatus function
Function Usage
/* Handle reset reason */
{
/* Handle OVD VDDD reset reason */
}
/* Enable HVSS Brown-out control */

◆ Cy_SysPm_BodHVDisable()

void Cy_SysPm_BodHVDisable ( void  )

Disable Brown-out detection for HV supply.

Note
Applicable to PSOC4 HVMS/PA only.
You can check status by the Cy_SysPm_SupplySupervisionStatus function
Function Usage
/* Disable HVSS Brown-out control */

◆ Cy_SysPm_OvdEnable()

void Cy_SysPm_OvdEnable ( cy_en_syspm_ovd_sel_t  ovdSel)

Enable OverVoltage detection for selected supply.

Parameters
ovdSelcy_en_syspm_ovd_sel_t on which supply OVD have to be enabled
Note
You can check OVD status by the Cy_SysPm_SupplySupervisionStatus function
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Handle reset reason */
{
/* Handle OVD VDDD reset reason */
}
/* Enable for OVD on vddd */
/* Enable for OVD on vccd */

◆ Cy_SysPm_OvdDisable()

void Cy_SysPm_OvdDisable ( cy_en_syspm_ovd_sel_t  ovdSel)

Disable OverVoltage detection for selected supply.

Parameters
ovdSelcy_en_syspm_ovd_sel_t on which supply OVD have to be disabled
Note
You can check OVD status by the Cy_SysPm_SupplySupervisionStatus function
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Disable for OVD on vddd */
/* Disable for OVD on vccd */