English
Language : 

71M6531D_10 Datasheet, PDF (24/120 Pages) Teridian Semiconductor Corporation – Energy Meter IC
Data Sheet 71M6531D/F-71M6532D/F
FDS 6531/6532 005
Table 12: Port Registers
Register
P0
DIR0
P1
DIR1
P2
DIR2
SFR
Address
0x80
0xA2
0x90
0x91
0xA0
0xA1
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
Register for port 0 read and write operations.
Data direction register for port 0. Setting a bit to 1 indicates that the
corresponding pin is an output.
Register for port 1 read and write operations.
Data direction register for port 1.
Register for port 2 read and write operations.
Data direction register for port 2.
All DIO ports on the chip are bi-directional. Each of them consists of a Latch (SFR P0 to P2), an output
driver and an input buffer, therefore the MPU can output or read data through any of these ports. Even if
a DIO pin is configured as an output, the state of the pin can still be read by the MPU, for example when
counting pulses issued via DIO pins that are under CE control.
The technique of reading the status of or generating interrupts based on DIO pins configured as
outputs can be used to implement pulse counting.
Clock Stretching (CKCON[2:0], SFR 0x8E)
The CKCON[2:0] field defines the stretch memory cycles that could be used for MOVX instructions when
accessing slow external peripherals. The practical value of this register for the 71M653x is to guarantee
access to XRAM between CE, MPU, and SPI. The default setting of CKCON[2:0] (001) should not be
changed.Table 13 shows how the signals of the External Memory Interface change when stretch values
are set from 0 to 7. The widths of the signals are counted in MPU clock cycles. The post-reset state of
the CKCON[2:0] field (001), which is shown in bold in the table, performs the MOVX instructions with a
stretch value equal to 1.
CKCON[2:0]
000
001
010
011
100
101
110
111
Table 13: Stretch Memory Cycle Width
Stretch
Value
0
1
2
3
4
5
6
7
Read signal width
memaddr memrd
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
Write signal width
memaddr memwr
2
1
3
1
4
2
5
3
6
4
7
5
8
6
9
7
1.4.4 Special Function Registers (SFRs) Specific to the 71M6531D/F and 71M6532D/F
Table 14 shows the location and description of the SFRs specific to the 71M6531D/F and 71M6532D/F.
Register
(Alternate Name)
EEDATA
EECTRL
Table 14: 71M6531D/F and 71M6532D/F Specific SFRs
SFR
Address
0x9E
0x9F
Bit Field
Name
R/W
Description
R/W I2C EEPROM interface data register.
I2C EEPROM interface control register. See
R/W
Section 1.5.14 EEPROM Interface for a
description of the command and status bits
available for EECTRL.
24
© 2005-2010 TERIDIAN Semiconductor Corporation
v1.3