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

71M653X Software User’s Guide
Function/Routine
Name
Description
Input
Output
File Name
OSCOPE_INIT
Defines DIO_7, the VAR pulse
output as a DIO.
N/a n/a
Util\oscope.h
OSCOPE_ONE
Set DIO_7, the same pin as the
VARh pulse output, to high.
N/a n/a
Util\oscope.h
OSCOPE_TOGGLE
Inverts DIO_7, the same pin as
the VARh pulse output.
N/a n/a
Util\oscope.h
OSCOPE_ZERO
Set DIO_7, the same pin as the
VARh pulse output, to low.
N/a n/a
Util\oscope.h
pcnt_accumulate()
Accumulates counts from the
previous second.
Void void
Meter\pcnt.c
pcnt_init ()
Initialize logic to count output
pulses.
Void void
Meter\pcnt.c
pcnt_lcd()
Display pulse count on LCD
uint8_t select
void
Meter\pcnt.c
pcnt_start()
Starts plse-counting for a fixed
number of seconds.
Int16_t seconds
void
Meter\pcnt.c
pcnt_update()
Synchronizes pulse counts with
noninterrupting code.
Void void
Meter\pcnt.c
phase_angle_lcd ()
Displays a V/I phase angle.
Uint8_t phase
void
meter\phase_angle.c
psoft_init ()
Initializes software pulse
outputs.
Void void
Meter\psoft.c
psoft_out()
Generates two additional pulse
outputs. Call from ce_busy_isr
void void
Meter\psoft.c
psoft_update ()
The inputs are watt hours, as
generated by the CE, and set
the extra pulse generators to
blink at the same rate as CE
pulse outputs, with the same
units. This should be called
each time a new accumulation
interval has data.
int32_t pulse3_in,
int32_t pulse4_in
void Meter\psoft.c
put_char()
puts character into CLI buffer
uint8_t idata *c
none
cli\io.c
Read_Trim()
reads the trim value for selected
trim word
enum eTRIM select
S08
Meter\io653x.c
rms_I_lcd()
Displays current.
Uint8_t phase
void
Meter\rms.c
rms_v_lcd()
Displays voltage.
Uint8_t phase
void
Meter\rms.c
RTC_Adjust_Trim()
Safely sets the compensation
variables.
Bool clr_cnt,
int32_t value
none IO\rtc_30.c
RTC_Compensation()
Calculates and adjusts the
temperature compensation for
the RTC.
None none
IO\rtc_30.c
rtc_isr ()
Interrupt code to adjust clock
each second.
Void void
IO\rtc_30.c
RTClk_Read()
reads current values of RTC
none
none
IO\rtc_30.c
RTClk_Reset()
resets the RTC
none
none
IO\rtc_30.c
RTC_Trim()
Calculates the temperature
compensation using Y_Cals
none int32_t
ppb
IO\rtc_30.c
RTClk_Write()
writes/sets to RTC
none
none
IO\rtc_30.c
s2f()
Returns the floating point CE
units value closest to the
register value. Can lose up to
uint8x_t *register
float
util\math.c
v1.1v1.1
TERIDIAN Proprietary
93 of 116
© Copyright 2005-2008 TERIDIAN Semiconductor Corporation