Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 65

Advertising
background image

71M653X Software User’s Guide

tmr0.c

initiali zation, configuration, interrupt, read and write routines for TMR0

tmr1.c initialization,

configuration, interrupt, read and write routines for TMR1

uwrdio.c

3-wire interface using direct control of DIO4 and DIO5. It can be adapted to nonstandard

clock polarities and edges, 4-wire SPI EEPROMs, and TSC chips other than the 71M653x

(see comments in the source file)

uwreep.c

a 3-wire interface using the high-speed 3-wire interface hardware of the 71M653x

3. LCD_VIM828

Code for the Varitronix VIM-828 Display

Lcd_symbols.h Code to describe which segments are on and off for each character.

Lcd_vim828_ext.c

Displays modes correctly.

Lcd_vim828_31.c

Tables for the segments used on a 71M6531 demo PCB.

Lcd_vim828_34.c

Tables for the segments used on a 71M6534 demo PCB.

4. Main:

Main top-level tasks, 653x-specific

batmodes.c

battery mode logic

defaults.c

contains the table of start-up default values

main.c

main() with startup sequence and main task switch

main.c

initialization and main loop

5. Meter: Metering

Functions

calphased.c auto-calibration
ce.c initialization,

configuration, interrupt, read and write routines for the compute engine

ce653X.c

data exchange between CE data RAM and XRAM

error.c

error recording and logging

freq.c

routines to calculate and display frequency

io653X.c

control of analog front end, multiplexer, RTM, I/O pins

meter.c

contains overall meter logic to calculate and display meter data

misc.c

unused legacy code for managing interrupts and priorities

pcnt.c

code for counting output pulses

peak_alerts.c detects

out-of-range line values

phase_angle.c

calculates and displays voltage-to-current phase angles

psoft.c

generates two additional pulse outputs using DIO pins

pulse_src.c

directs line measurements to any pulse output

pwrfct.c

routines for calculating the power factor

rms.c

calculates and displays Vrms and Irms

vah.c calculates

VAh

varh.c calculates

VARh

vphase.c calculates

voltage-to-voltage phase angles for multiphase meters

wh.c calculates

Wh

6. Util: Utilities

dead.c

defines unused flash space for the boot loader

dio.h

defines high-level access to DIO pins

flash.c

flash memory read, write, erase, compare and checksum calculation

irq.c

securely disables and enables interrupts

library.c

routines for memory copy, compare, CRC calculation, string length

math.c contains

routines

for multiple-precision math

onek_c.asm

test code that must be included in ROMmable images

oscope.h

a utility to trigger oscilloscope loops using DIO7

priority.h

header file defining priorities for IP0 and IP1

sfrs.c

access to SFRs

startup.a51 startup assembly code
startup_boot.a51
startup_boot_secure.a51
startup_secure.a51
stm.c

software timer routines

timers.c

unused software timer legacy code

wd.c

routines that support the hardware watchdog

v1.1v1.1

TERIDIAN Proprietary

65 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

Advertising
This manual is related to the following products: