Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 7 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
Program Counter................................................................................................................. 120
Ports 120
Timers 0 and 1 .................................................................................................................... 120
Timer/Counter Mode Control Register (T
MOD) .................................................................. 121
Timer/Counter Control Register (T
CON) ............................................................................. 121
6.3.2.1 Allowed Combinations of Operation Modes ........................................................ 122
6.3.3 Serial Interface 0 and 1 122
Serial Interface 0 Modes ..................................................................................................... 122
Serial Interface 1 Modes ..................................................................................................... 124
6.3.3.1 Baud Rate generator .......................................................................................... 125
6.3.4 Software Watchdog Timer 126
Software Watchdog Timer structure .................................................................................... 126
6.3.4.1 WD Timer Start Procedure ................................................................................. 126
Refreshing the WD Timer .................................................................................................... 127
Special Function Registers for the WD Timer ..................................................................... 127
Interrupt Enable 0 Register (IEN0): 127
Interrupt Enable 1 Register (IEN1): 127
Interrupt Priority 0 Register (IP0): 127
Watchdog Timer Reload Register (WDTREL): 128
6.3.5 The Interrupt Service Routine Unit 128
6.3.5.1 Interrupt Overview .............................................................................................. 128
6.3.5.2 Special Function Registers for Interrupts ............................................................ 128
Interrupt Enable 0 Register (IE0) 128
Interrupt Enable 1 Register (IEN1) 129
Interrupt Enable 2 Register (IEN2) 129
Timer/Counter Control Register (TCON) 130
Interrupt Request Register (IRCON) 130
6.3.5.3 Ex
ternal Interrupts .............................................................................................. 130
Interrupt Request register (T2CON) 131
6.3.5.4 Interrupt Priority Level Structure ......................................................................... 131
Interrupt Priority 0 Register (IP0) 132
Interrupt Priority 1 Register (IP1) 132
6.3.5.5 Interrupt Sources and Vectors ............................................................................ 133
External Interrupt Edge Detect 133
7.............A
ppendix 135
7.1 A
CRONYMS .......................................................................................................................................... 135
7.2 Rev
ision History ................................................................................................................................... 136