Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual
Page 97

71M653X Software User’s Guide
Function/Routine
Name
Description
Input
Output
File Name
*y
temperature_lcd()
Displays the current delta from
the calibration temperature in
degrees C on the LCD.
Void void
Meter\meter.c
time_lcd ()
Displays the current time.
Void
void
io\rtc_30.c
tmr_disable ()
Halt a timer.
None
none
io\tmr0.h, tmr1.h
tmr_enable ()
Lets a timer run (timer start
does this by default)
none none
io\tmr0.h,
tmr1.h
tmr_running ()
Returns true if the timer is
running.
none bool
io\tmr0.h,
tmr1.h
tmr_start ()
Starts a hardware timer.
Uint16_t time (in
timer units), uint8_t
restart_flag (zero
means interrupt
once), void (code
*pfn) (void) (code to
execute)
none
io\tmr0.h, tmr1.h, tmr0.c,
tmr1.c
tmr_stop ()
Stops a hardware timer.
None
none
io\tmr0.h, tmr1.h
tmr0_isr ()
Timer interrupt for TMR0
none
none
io\tmr0.c
tmr1_isr ()
Timer interrupt for TMR1
none
none
io\tmr1.c
update_register ()
Move data from AMR’s copy of
power registers into power
registers.
Void void
Meter\meter.c
uwr_busy_wait ()
Wait for programming complete
indication.
None none
io\uwrdio.c,
uwreep.c2
uwr_init ()
Initialize a 3-wire (similar to
uWire™) interface
none none
io\uwrdio.c,
uwreep.c2
uwr_read ()
Get a counted string of bytes.
Uint8x_t *pbOut,
uint16_t cnt
none io\uwrdio.c,
uwreep.c2
uwr_select ()
Select a chip by passing its
address; 0 = none; This must be
ported to new PCBs.
Uint8_t address
none
io\uwrdio.c, uwreep.c2
uwr_write ()
Transmit a counted string of
bytes.
Uint8x_t *pbOut,
uint16_t cnt
bool true =
success.
Io\uwrdio.c, uwreep.c2
Ah_Accumulate()
Calculates VAh
void
void
meter\vah.c
VARh_Accumulate()
Calculates VARh
void
void
meter\varh.c
voltage_phase_lcd()
Display voltage phases on LCD.
Uint8_t select
void
meter\vphase.c
wd_create()
Creates a software watchdog.
Uint8_t wd
void
util\wd.c
wd_destroy()
Destroys a software watchdog.
Uint8_t wd
void
util\wd.c
wd_reset()
Resets a software watchdog. If
all software watchdogs have
been reset, the hardware
watchdog is reset.
Uint8_t wd
void
util\wd.c
wh_accumulate()
Calculate watt hours.
Void
void
meter\wh.c
wh_brownout_to_lcd()
Displays a precalculated 6-digit
number.
Uint32_t number
void
meter\wh.c
wh_cnt_set()
Sets wh_cnt to the number of
CE Wh units per display unit.
void void
util\math/c
wh_lcd()
Displays a watt-hour value on
the LCD in milliwatt-hours.
uint8_t *val
void
meter\wh.c
v1.1v1.1
TERIDIAN Proprietary
97 of 116
© Copyright 2005-2008 TERIDIAN Semiconductor Corporation