beautypg.com

Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 84

background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

84 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation


Function/Routine
Name

Description

Input

Output

File Name

LRC_Calc_NVR()

calculates longitudinal parity
on NVRAM

uint8_tx *ptr, uint16_t
len, U01 set

bool library.c

ctoh()

converts ascii hex character
to hexadecimal digit

uint8_t c

uint8_t

load.c

date_lcd ()

Displays the current date.

void

void

rtc.c

Delta_Time ()

Figure the elapsed time
between two times.

struct RTC_t start, struct
RTC_t end

int32_t seconds

rtc.c

Determine_Frequenc
y()

Sets the frequency. Uses
sag status and voltage
thresholds to return 0 if the
voltages are off.

void void freq.c

Determine_Peaks()

Sets status bits if voltages,
currents or temperature are
outside limits. Sag tests are
in xfer_busy_int()

void void peak_alerts.c

done()

exits control

uint8_td *c

*c

cli.c

EEProm_Config()

connects/disconnects
DIO4/5 for I2C interface to
serial EEPROM

bool access, uint16_t
page_size, uint8_t tWr

none

eeprom.c,
eepromp3.c

es0_isr ()

serial port 0 service routine

none

none

ser0.c

es1_isr()

serial port 1 service routine

none

none

se1.c

flag0_in()

Input interrupt for FLAG
AMR module on SER0

none none flag0.c3

flag0_initialize()

Initialize the FLAG AMR
module on SER0

none none flag0.c3

flag0_out()

Output interrupt for FLAG
AMR module on SER0

none none flag0.c3

flag0_run()

Run main loop logic for
FLAG AMR module on
SER0

none none flag0.c3

flag1_in()

Input interrupt for FLAG
AMR module on SER1

none none flag1.c3

flag1_initialize()

Initialize the FLAG AMR
module on SER1

none none flag1.c3