Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 13 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
1 INTRODUCTION
TERIDIAN Semiconductor Corporation’s (TSC) 71M652X single chip Energy Meter Controllers are a family of Systems-
on-Chip that supports all functionalities required to build a low-cost power meter. Demo Boards are available for each
chip (71M6521DE/FE, 71M6521BE) to allow development of embedded application, in conjunction with an In-Circuit
Emulator. Development of a 71M652X application can be started in either 80515 assembly language, or more favorably
in C using the Demo Boards. TSC provides, along with the 71M652X Demo Boards, a development toolkit that includes
a demonstration program (“Demo Code”) written in ANSI C that controls all features present on the Demo Boards. This
Demo Code includes functions to manage the low level 80515 core such as memory, clock, power modes, interrupts;
and high level functions such as the LCD, Real Time Clock, Serial interfaces and I/Os. The use of Demo Code portions
will help reduce development time dramatically, since they allow the developer to focus on developing the application
without dealing with the low-level layer such as hardware control, timing, etc. This document describes the different
software layers and how to use them.
The Demo Code should allow customers to evaluate various resources of the 652X ICs but should not be
regarded as production code. The Demo Code and all its components, with the exception of the CE code, are
only example code and the use of it is as is and without guarantees implied. Customers may use the Demo
Code as starting point at any given released revision level but should keep themselves informed about
subsequent revisions of the Demo Code. Demo Code revisions may not be directly compatible with previously
released revisions and/or embedded software used by customers. Customers need to adapt the Demo Code or
other example code supplied by TERIDIAN Application Engineering to their own code base, and in this context
TERIDIAN Semiconductor can only provide indirect assistance and support.
This Software User’s Guide provides information on the following separate subjects:
General software architecture and minimum requirements (Design Guide)
Memory model, programming, test tools (Design Reference)
Demo code structure, flow-charts, data flow, functions (Demo Code Description)
Installing and using the EEP, compiler, ICE (Tool Installation Guide)
Understanding and using the 80515 micro controller (80515 Reference)
1.1 USING THIS DOCUMENT
The reader should have a basic familiarity with microprocessors, particularly the 80515 architecture, firmware, software
development and power meter applications. Prior experience with, or knowledge of, the applicable ANSI and/or IEC
standards will also be helpful.
This document presents the features included in the 71M652X Demo Boards in terms of software and some hardware.
To get the most out of this document, the reader should also have available other 71M652X publications such as the
71M652X Demo Board User’s Manual, respective data-sheets, errata list and application notes for additional details
and recent developments.
1