3 programming of the 71m652x chips, 4 debugging of the 71m652x chips, 5 test tools – Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual
Page 20: Programming of the 71m652x chips, Debugging of the 71m652x chips, Test tools

71M652X Software User’s Guide
Revision 1.7
TERIDIAN Proprietary
20 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
3.3 PROGRAMMING OF THE 71M652X CHIPS
There are two ways to download a hex file to the 71M652X Flash Memory:
•
Using a Signum Systems ADM-51 ICE.
•
Using the TERIDIAN Semiconductor Flash Programmer Module (FDBM) or the TERIDIAN Semiconductor
Flash Download FDBM-TFP1 Stand-Alone Module
Note: For both programming and debugging code it is important that the hardware watchdog timer is
disabled. See the Demo Board User’s Manual for details.
Before downloading code to a 71M6521:
•
Stop the MPU
•
Disable the CE by writing a 0 to XDATA at address 0x2000.
•
Erase the flash memory.
3.4 DEBUGGING OF THE 71M652X CHIPS
When debugging with the ADM51 in-circuit emulator, the CE continues to run, and this disables flash memory access
because the code of the CE is located in flash memory.
When setting breakpoints, only two breakpoints can be used, because the first two breakpoints are
“hardware” breakpoints, while the rest attempt to write to flash memory.
3.5 TEST TOOLS
A command line interface operated via the serial interface of the 71M652X MPU provides a test tool that can be used
to exercise the functions provided by the low-level libraries. The command-line interface requires the following
environment:
1) Demo Code (652X_demo.hex) must be resident in flash memory
2) The Demo Board is connected via a Debug Board to a PC running Hyperterminal or another type of terminal
program.
3) The communication parameters are set at 300 bps, 7N2, XON/XOFF flow control, as described in section