Energy Meter IC Family Software Instruction Manual

71M652X Software User’s Guide
Revision 1.7 TERIDIAN Proprietary 109 of 138
© Copyright 2005-2007 TERIDIAN Semiconductor Corporation
WDI 0xE8
R/W
R/W
W
Only byte operations on the whole WDI register should be used when
writing. This multi-purpose register contains the following bits:
Bit 0 (IE_XFER): XFER Interrupt Flag:
This flag monitors the XFER_BUSY interrupt. It is set by hardware
and must be cleared by the interrupt handler
Bit 1 (IE_RTC): RTC Interrupt Flag:
This flag monitors the RTC_1SEC interrupt. It is set by hardware and
must be cleared by the interrupt handler
Bit 7 (WD_RST): WD Timer Reset:
The WDT is reset when a 1 is written to this bit.
INTBITS INT0…INT6 0xF8 R Interrupt inputs. The MPU may read these bits to see the input to
external interrupts INT0, INT1, up to INT6. These bits do not have
any memory and are primarily intended for debug use
Table 6-6: SFRs Specific to the 652X
6.2.2 The 80515 Instruction Set
All 80515 instructions are binary code compatible and perform the same functions as they do with the industry standard
8051. The following tables give a summary of the instruction set cycles of the 80515 MPU core.
Table 6-7 and Table 6-8 contain notes for mnemonics used in instruction set tables.
Table 6-9 through Table 6-17 show the instruction hexadecimal codes, the number of by
tes, and the number of
machine cycles required for each instruction to execute.
Rn Working register R0-R7
direct 256 internal RAM locations, any Special Function Registers
@Ri Indirect internal or external RAM location addressed by register R0 or R1
#data 8-bit constant included in instruction
#data 16 16-bit constant included as bytes 2 and 3 of instruction
bit 256 software flags, any bit-addressable l/O pin, control or status bit
A Accumulator
Table 6-7: Notes on Data Addressing Modes
addr16 Destination address for LCALL and LJMP may be anywhere within the 64-kB of program memory
address space.
addr11 Destination address for ACALL and AJMP will be within the same 2-kB page of program memory
as the first byte of the following instruction.
rel SJMP and all conditional jumps include an 8-bit offset byte. Range is +127/-128 bytes relative to
the first byte of the following instruction
Table 6-8: Notes on Program Addressing Modes