MTB CAT1 Peripheral driver library
LVD-HT (Low-Voltage-Detect for HT Products)

General Description

The LVD HT driver provides an API to manage the Low Voltage Detection HT block.

The functions and other declarations used in this driver are in cy_lvd_ht.h. You can include cy_pdl.h to get access to all functions and declarations in the PDL.

The LVD block provides a status of currently observed VDDD voltage and triggers an interrupt or fault when the observed voltage crosses an adjusted threshold.

Configuration Considerations

To set up an LVD, configure the voltage threshold by the Cy_LVD_HT_SetThreshold function, ensure that the LVD block itself and LVD interrupt are disabled (by the Cy_LVD_HT_Disable and Cy_LVD_HT_ClearInterruptMask functions correspondingly) before changing the threshold to prevent propagating a false interrupt. Then configure interrupts by the Cy_LVD_HT_SetInterruptConfig function, do not forget to initialize an interrupt handler (the interrupt source number is srss_interrupt_IRQn). Then enable LVD by the Cy_LVD_HT_Enable function, then wait for at least 25us to get the circuit stabilized and clear the possible false interrupts by the Cy_LVD_HT_ClearInterrupt, and finally the LVD interrupt can be enabled by the Cy_LVD_HT_SetInterruptMask function.

Note : If an LVD is required in Deep Sleep mode, then Cy_LVD_HT_DeepSleepEnable should be used to enable LVD during Deep Sleep.

More Information

See the LVD chapter of the device technical reference manual (TRM).

Changelog

VersionChangesReason of Change
1.10 Added support for TRAVEO™ II Body Entry devices.
Changed pre-processor logic so SRSS version 2 is grouped with version 3 instead of version 1.
Code enhancement and support for new devices.
1.0 Initial Version

API Reference

 Macros
 
 Functions
 
 Enumerated Types