Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual
Page 94

71M652X Software User’s Guide
Revision 1.7
TERIDIAN Proprietary
94 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Function/Routine
Name
Description
Input
Output
File Name
stm_wait()
Waits for the passed
number of clock ticks.
uint16_t void
stm.c
strlen_r ()
returns length of string in
flash code
uint8_tr *src
uint16_t
library.c
strlen_x()
returns length of string in
xdata
uint8_tx *src
uint16_t
library.c
sub8_4()
(uint64_t) x -= (uint32_t) y
uint8_tx *x, uint8_tx *y
none
math.c
sub8_8()
(uint64_t) x -= (uint64_t) y
uint8_tx *x, uint8_tx *y
none
math.c
temperature_lcd()
Displays the current delta
from the calibration
temperature in degrees C
on the LCD.
void void
meter.c
time_lcd ()
Displays the current time.
void
void
rtc.c
tmr_disable ()
Halt a timer.
none
none
tmr0.h, tmr1.h
tmr_enable ()
Lets a timer run (timer start
does this by default)
none none
tmr0.h,
tmr1.h
tmr_running ()
Returns true if the timer is
running.
none bool
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
tmr0.h, tmr1.h, tmr0.c,
tmr1.c
tmr_stop ()
Stops a hardware timer.
none
none
tmr0.h, tmr1.h
tmr0_isr ()
Timer interrupt for TMR0
none
none
tmr0.c
tmr1_isr ()
Timer interrupt for TMR1
none
none
tmr1.c
update_register ()
Move data from AMR's copy
of power registers into
power registers.
void void
meter.c
uwr_busy_wait ()
Wait for programming com-
plete indication.
none none
uwrdio.c,
uwreep.c2
uwr_init ()
Initialize a 3-wire (similar to
uWire™) interface
none none
uwrdio.c,
uwreep.c2
uwr_read ()
Get a counted string of
bytes.
uint8x_t *pbOut,
uint16_t cnt
none 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
uwrdio.c, uwreep.c2
uwr_write ()
Transmit a counted string of
bytes.
uint8x_t *pbOut,
uint16_t cnt
bool true =
success.
uwrdio.c, uwreep.c2