Low Voltage Detect


Functions

void lvd_set (unsigned char threshold)
unsigned char lvd_triggered (void)
unsigned char lvd_check (unsigned char threshold)

Function Documentation

unsigned char lvd_check ( unsigned char  threshold  ) 

Returns true if the LVD block has detected a low voltage condition.

This is a standalone function that configures the LVD block with the given threshold, immediately tests the voltage, and disables the LVD block.

This entails a 20-50 us delay for each call, but reduces power consumption, since the LVD block continuously consumes up to 65uA when configured.

Parameters:
threshold One of the manifest constants LVD_433 (4.33V) or LVD_464 (4.64V).

void lvd_set ( unsigned char  threshold  ) 

Set the LVD module for the given low voltage threshold.

Use lvd_set() in conjunction with lvd_triggered() for minimal CPU usage and optimal respone time.

After calling lvd_set(), the LVD block will continuously consume up to 65uA. If you want to minimize power consumption, Use lvd_check() instead of lvd_set() / lvd_triggered().

Parameters:
threshold One of the manifest constants LVD_433 (4.33V) or LVD_464 (4.64V).

unsigned char lvd_triggered ( void   ) 

Returns true if the low LVD block has detected a low voltage condition.

The threshold must first be set with lvd_set().


Generated on Sat May 23 08:43:58 2009 for LibVexBot by  doxygen 1.5.8