Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 95 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Function/Routine
Name
Description Input Output File Name
VAh_Accumulate()
Calculates VAh void void vah.c
VARh_Accumulate()
Calculates VARh void void varh.c
voltage_phase_lcd(
)
Display voltage phases on
LCD.
uint8_t select void vphase.c
wd_create()
Creates a software
watchdog.
uint8_t wd void wd.c
wd_destroy()
Destroys a software
watchdog.
uint8_t wd void wd.c
wd_reset()
Resets a software watch-
dog. If all software watch-
dogs have been reset, the
hardware watchdog is reset.
uint8_t wd void wd.c
wh_accumulate()
Calculate watt hours. void void wh.c
wh_brownout_to_lcd
()
Displays a precalculated 6-
digit number.
uint32_t number void wh.c
wh_lcd()
Displays a watt-hour value
on the LCD in milliwatt-
hours.
uint8_t *val void wh.c
wh_sum_export ()
Adds (0 - w1) to s, only if
w1 is negative, yielding a
total of exported power in w.
uint8x_t *s, int32i_t *wl void wh.c
wh_sum_import ()
Adds w1 to s, only if w1 is
positive, yielding a total of
imported power in w.
uint8x_t *s, int32i_t *wl void wh.c
wh_sum_net()
Adds w1 to s, yielding a net
sum of watthours in s.
uint8x_t *s, int32i_t *wl void wh.c
wh_to_long ()
Convert a 64-bit internal
watts count to a 6-digit
value (i.e. this is the routine
that precalculates values for
wh_brownout_to_lcd()).
uint8_t *val uint32_t wh.c
5.16 ERRATA
The up-to-date list of known issues with the current revision of the Demo Code can be found in the readme.txt file
contained in the 6521_demo ZIP file shipped with the Demo Kits. The readme.txt file also contains a list of corrected
issues, that might assist customers who utilized older versions of Teridian demo code.
The factory should be contacted for updates to the Demo Code.