Data Sheet 71M6531D/F-71M6532D/F
FDS 6531/6532 005
Table 12: Port Registers
SFR
Address
Register
R/W
Description
P0
0x80
R/W Register for port 0 read and write operations.
DIR0
0xA2
R/W Data direction register for port 0. Setting a bit to 1 indicates that the
corresponding pin is an output.
P1
0x90
0x91
0xA0
0xA1
R/W Register for port 1 read and write operations.
R/W Data direction register for port 1.
DIR1
P2
R/W Register for port 2 read and write operations.
R/W Data direction register for port 2.
DIR2
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.
Table 13: Stretch Memory Cycle Width
Read signal width
Write signal width
Stretch
Value
CKCON[2:0]
memaddr
memrd
memaddr
memwr
000
001
010
011
100
101
110
111
0
1
2
3
4
5
6
7
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
9
1
1
2
3
4
5
6
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.
Table 14: 71M6531D/F and 71M6532D/F Specific SFRs
Register
(Alternate Name)
EEDATA
SFR
Address
0x9E
Bit Field
Name
R/W
Description
R/W I2C EEPROM interface data register.
I2C EEPROM interface control register. See
Section 1.5.14 EEPROM Interface for a
description of the command and status bits
EECTRL
0x9F
R/W
available for EECTRL.
24
© 2005-2010 TERIDIAN Semiconductor Corporation
v1.3