beautypg.com

Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 6

background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

6 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation

5.17.1 

Memory Use

96 

5.17.2 

CE Code Location

96 

5.17.3 

Battery Modes

96 

5.17.4 

Three-Wire EEPROM Hardware

98 

5.17.5 

Temperature Compensation

99 

5.18

 

TEST Modules ........................................................................................................................................ 99

 

5.18.1 

6513 CE Example

99 

5.18.2 

Serial Port Tests

99 

5.18.3 

Timer Tests

99 

5.18.4 

EEPROM Tests

99 

5.18.5 

Generating DIO Pulses on Reset

99 

5.18.6 

Testing the Security Bit

99 

5.18.7 

Software Timer Test

100 

5.18.8 

Interrupt Test

100 

6

 ............. 80515 MPU REFERENCE

101

 

6.1

 

80515 Overview .................................................................................................................................... 101

 

6.1.1 

80515 Performance

101 

6.1.2 

80515 Features

102 

6.2

 

80515 Architectural Overview ............................................................................................................. 103

 

6.2.1 

Memory organization

103 

Program Memory ................................................................................................................ 103 

External Data Memory ........................................................................................................ 103 

Dual Data Pointer ................................................................................................................ 104 

Internal Data Memory .......................................................................................................... 104 

Special Function Registers Location ................................................................................... 105 

Generic Special Function Register Overview ...................................................................... 106 

Generic Special Function Registers Location and Reset Values ........................................ 107 

Special Function Registers Specific to the 652X ................................................................. 108 

6.2.2 

The 80515 Instruction Set

109 

Instructions Ordered by Function ........................................................................................ 110 

Instructions Ordered by Opcode (Hexadecimal) ................................................................. 114 

Instructions that Affect Flags ............................................................................................... 117 

6.3

 

80515 Hardware description ............................................................................................................... 117

 

6.3.1 

Block Diagram

118 

6.3.2 

80515 MPU

119 

Accumulator ........................................................................................................................ 119 

The B Register .................................................................................................................... 119 

Program Status Word (PSW) .............................................................................................. 119 

Stack Pointer ....................................................................................................................... 120 

Data Pointer ........................................................................................................................ 120