FDS 6531/6532 005
2
Data Sheet 71M6531D/F-71M6532D/F
Functional Description.....................................................................................................................53
2.1 Theory of Operation...................................................................................................................53
2.2 System Timing Summary...........................................................................................................54
2.3 Battery Modes............................................................................................................................54
2.3.1 BROWNOUT Mode .......................................................................................................56
2.3.2 LCD Mode......................................................................................................................57
2.3.3 SLEEP Mode .................................................................................................................57
2.4 Fault and Reset Behavior ..........................................................................................................59
2.4.1 Reset Mode....................................................................................................................59
2.4.2 Power Fault Circuit ........................................................................................................59
2.5 Wake-Up Behavior.....................................................................................................................60
2.5.1 Wake on PB...................................................................................................................60
2.5.2 Wake on Timer...............................................................................................................60
2.6 Data Flow...................................................................................................................................60
2.7 CE/MPU Communication...........................................................................................................61
Application Information....................................................................................................................62
3.1 Connection of Sensors...............................................................................................................62
3.2 Connecting 5-V Devices ............................................................................................................62
3.3 Temperature Measurement .......................................................................................................63
3.4 Temperature Compensation......................................................................................................63
3.4.1 Temperature Coefficients: .............................................................................................63
3.4.2 Temperature Compensation for VREF..........................................................................63
3.4.3 System Temperature Compensation.............................................................................63
3.4.4 Temperature Compensation for the RTC ......................................................................63
3.5 Connecting LCDs.......................................................................................................................64
3.6 Connecting I2C EEPROMs ........................................................................................................64
3.7 Connecting Three-Wire EEPROMs ...........................................................................................65
3.8 UART0 (TX/RX) .........................................................................................................................65
3.9 Optical Interface (UART1)..........................................................................................................66
3.10 Connecting V1 and Reset Pins..................................................................................................67
3.11 Connecting the Emulator Port Pins............................................................................................67
3.12 Connecting a Battery .................................................................................................................68
3.13 Flash Programming....................................................................................................................68
3.14 MPU Firmware Library...............................................................................................................69
3.15 Crystal Oscillator........................................................................................................................69
3.16 Meter Calibration........................................................................................................................69
Firmware Interface............................................................................................................................70
4.1 I/O RAM and SFR Map – Functional Order...............................................................................70
4.2 I/O RAM Description – Alphabetical Order ................................................................................75
4.3 CE Interface Description............................................................................................................86
4.3.1 CE Program ...................................................................................................................86
4.3.2 CE Data Format.............................................................................................................86
4.3.3 Constants.......................................................................................................................86
4.3.4 Environment...................................................................................................................86
4.3.5 CE Calculations .............................................................................................................87
4.3.6 CE Status and Control...................................................................................................87
4.3.7 CE Transfer Variables ...................................................................................................89
4.3.8 Pulse Generation...........................................................................................................91
4.3.9 CE Calibration Parameters............................................................................................92
4.3.10 Other CE Parameters ....................................................................................................93
3
4
v1.2
© 2005-2009 TERIDIAN Semiconductor Corporation
3