Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 89

Advertising
background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

89 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation


Function/Routine
Name

Description

Input

Output

File Name

normalize()

puts a register into normal
form, in which the major
count of Wh is greater than
or equal to zero, and less
than 1,000,000,000. The
minor count of ce counts
(e.g. from w0sum) is made
to be less than 1 Wh and
positive, by transfering
larger amounts into the
major count.

uint8x_t *register_ptr

none

math.c

operating_lcd ()

Displays the number of
hours of operation.

void void rtc.c

OperatingHours()

Calculates hours of
operation from the last valid
mark.

none int32_t

hours

rtc.c

OSCOPE_INIT

Defines DIO_7, the VAR
pulse output as a DIO.

n/a n/a oscope.h

OSCOPE_ONE

Set DIO_7, the same pin as
the VARh pulse output, to
high.

n/a n/a oscope.h

OSCOPE_TOGGLE

Inverts DIO_7, the same pin
as the VARh pulse output.

n/a n/a oscope.h

OSCOPE_ZERO

Set DIO_7, the same pin as
the VARh pulse output, to
low.

n/a n/a oscope.h

pcnt_accumulate()

Accumulates counts from
the previous second.

void void pcnt.c

pcnt_init ()

Initialize logic to count
output pulses.

void void pcnt.c

pcnt_lcd()

Display pulse count on LCD

uint8_t select

void

pcnt.c

pcnt_start()

Starts plse-counting for a
fixed number of seconds.

int16_t seconds

void

pcnt.c

pcnt_update()

Synchronizes pulse counts
with noninterrupting code.

void void pcnt.c

phase_angle_lcd ()

Displays a V/I phase angle.

uint8_t phase

void

phase_angle.c

psoft_init ()

Initializes software pulse
outputs.

void void psoft.c

psoft_out()

Generates two additional
pulse outputs. Call from
ce_busy_isr

void void psoft.c

Advertising