Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 4 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Table of Contents
1.............INTRODUCTION 13
1.1 Using this Document ............................................................................................................................. 13
1.2 Related Documentation ......................................................................................................................... 14
1.3 Compatibility Statement ........................................................................................................................ 14
2.............DESIGN GUIDE 15
2.1 Hardw
are Requirements ........................................................................................................................ 15
2.2 Software Requirements ......................................................................................................................... 15
2.3 Software Architecture ............................................................................................................................ 16
2.4 Utilities .................................................................................................................................................... 17
2.4.1 D_MERGE 17
2.4.2 CE_MERGE 17
3.............DESIGN REFERENCE 19
3.1 Program Memory
.................................................................................................................................... 19
3.2 Data Memory ........................................................................................................................................... 19
3.3 Programming of the 71M652X Chips .................................................................................................... 20
3.4 Debugging of the 71M652X Chips ........................................................................................................ 20
3.5 Test Tools ............................................................................................................................................... 20
3.5.1 Running the 652X_Demo.hex Program 21
3.5.2 CLI Commands 22
3.5.3 Command (Macro) F
iles 22
4.............TOOL INSTA
LLATION GUIDE 23
4.1 Installing the Programs for the ADM51 Emulator ................................................................................ 23
4.2 Installing the Wemu Program (Chameleon Debugger) ....................................................................... 23
4.3 Installing the ADM51 USB Driver .......................................................................................................... 24
4.4 Installing Updates to the Emulator Program and Hardware ............................................................... 25
4.5 Creating a Project .................................................................................................................................. 26
4.6 Installing the Keil Compiler ................................................................................................................... 29
4.7 Creating a Project for the Keil Compiler .............................................................................................. 30
4.7.1 Directory
Structure 30
4.7.2 Adjusting the Keil Compiler Settings 31
4.7.3 Manually Controlling the Keil Compiler Settings 32
4.8 Proje
ct Management Tools ................................................................................................................... 35
4.9 A
lternative Compilers ............................................................................................................................ 35
4.10 A
lternative Editors ................................................................................................................................. 35
4.11 A
lternative Linkers ................................................................................................................................. 36
5.............Demo
Code Description 37
5.1 80515 Data Types and Compiler-Specific Information ........................................................................ 37
5.1.1 Data T
ypes 37
5.1.2 Compiler-Specific Information 40
5.2 Demo Code Options and Program Size
............................................................................................... 41