71M6521 Demo Board User’s Manual
Page: 36 of 111
© 2005-2009 TERIDIAN Semiconductor Corporation
Revision 2.18
1.9.6 THE PROGRAMMING INTERFACE OF THE 71M6521
Flash Programmer/ICE Interface Signals
The signals listed in Table 1-12 are necessary for communication between the TFP2 or ICE and the
71M6521.
Signal
Direction
Function
E_TCLK
Output from 71M6521
Data clock
E_RXTX
Bi-directional
Data input/output
E_RST
Bi-directional
Flash Downloader Reset (active low)
Table 1-12: Flash Programming Interface Signals
The same hardware and software precautions mentioned for emulator (ICE) operation in section 0
apply to TFP2 operation.
1.10 DEMO CODE
1.10.1 DEMO CODE DESCRIPTION
The Demo Board is shipped preloaded with Demo Code revision 4.7 or later in the 71M6521 chip. The code
revision can easily be verified by entering the command
>i
via the serial interface (see section 1.7.2). Check
with your local TERIDIAN representative or FAE for the latest revision.
Firmware for the Demo Boards can be updated to revision 4.7 or later using either an in-circuit emulator
(ICE) or the Flash Programmer (TFP2), as described in section 1.9.5.
The Demo Code is useful due to the following features:
•
It provides basic metering functions such as pulse generation, display of accumulated energy,
frequency, date/time, and enables the user to evaluate the parameters of the metering IC such as
accuracy, harmonic performance, etc.
•
It maintains and provides access to basic household functions such as the real-time clock (RTC).
•
It provides access to control and display functions via the serial interface, enabling the user to view
and modify a variety of meter parameters such as Kh, calibration coefficients, temperature
compensation etc.
•
It provides libraries for access of low-level IC functions to serve as building blocks for code
development.
The Demo Code source files provided with the TERIDIAN Demo Kits contain numerous routines
that are not implemented, due to restrictions in available flash memory space. However, by
recompiling the code using different compile-time options, many code variations with different
features can be generated. See the Software User’s Guide (SUG) for a complete description of
the Demo Code.