Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 90 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Function/Routine
Name
Description Input Output File Name
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 out-
puts, 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 psoft.c
put_char()
puts character into CLI
buffer
uint8_t idata *c none io.c
Read_Trim()
reads the trim value for
selected trim word
enum eTRIM select S08 ce.c
rms_i_lcd()
Displays current. uint8_t phase void rms.c
rms_v_lcd()
Displays voltage. uint8_t phase void rms.c
RTC_Adjust_Trim()
Safely sets the
compensation variables.
bool clr_cnt, int32_t
value
none rtc.c
RTC_Compensation()
Calculates and adjusts the
temperature compensation
for the RTC.
none none rtc.c
rtc_isr ()
Interrupt code to adjust
clock each second.
void void rtc.c
RTClk_Read()
reads current values of RTC none none rtc.c
RTClk_Reset()
resets the RTC none none rtc.c
RTC_Trim()
Calculates the temperature
compensation using Y_Cals
none int32_t ppb rtc.c
RTClk_Write()
writes/sets to RTC none none rtc.c
seconds()
Converts seconds to clock
ticks, usually for a software
timer.
any number uint16_t stm.h
SelectPulses()
Selects pulse sources for 2
CE pulse outputs, and
optionally, for two additional
software pulse outputs.
The controls are in MPU
variables initialized from the
default table.
void void pulse_src.c
send_a_result()
sends passed result code to
UART
uint8_t c none cli.c
send_byte()
sends a [0, 255] byte to
DTE.
S08 n none io.c
send_char()
sends single character uint8_t c none io.c
send_crlf()
sends <CR><LF> out to
UART.
none none io.c
send_digit()
sends single ASCII hex or
decimal digit out to
SERIAL0
uint8_t c none io.c