Rev.1.00
2003.11.25
page 34 of 128
M37161M8/MA/MF-XXXSP/FP,M37161EFSP/FP
Fig. 8.6.6 I2C Control Register
b7 b6 b5 b4 b3 b2 b1 b0
0
to
2
Bit counter
(Number of transmit/recieve
bits)
(BC0 to BC2)
b2 b1 b0
0
0 : 8
0
1 : 7
0
1
0 : 6
0
1
1 : 5
1
0
0 : 4
1
0
1 : 3
1
0 : 2
1
1 : 1
3I2C-BUS interface use
enable bit (ESO)
0 : Disabled
1: Enabled
4
Data format selection
bit(ALS)
0 : Addressing mode
1 : Free data format
5
Addressing format selection
bit (10BIT SAD)
0 : 7-bit addressing format
1 : 10-bit addressing format
6, 7 Connection control bits
between I2C-BUS interface
and ports
(BSEL0, BSEL1)
b7 b6 Connection port (See note)
0
0: None
0
1: SCL1, SDA1
1
0: SCL2, SDA2
1
1: SCL1, SDA1
0
I2C control register (S1D) [Address 00F916]
I2C Control Register
B
Name
Functions
After reset
R W
Note: Set the corresponding direction register to "1" to use the port as multi-master I2C-BUS interface.
To use SCL1, SDA1, SCL2 and SDA2, set the port P3 Register (address 00C616) bit 2 to 0.
R W
SCL2, SDA2
Fig. 8.6.7 Port P3 Register
Port P3 register (P3)
[Address 00C616]
Port P3 register
0
1
2
Port P3 register
Indeterminate
W
R
4
b7 b6 b5 b4 b3 b2 b1 b0
Nothing is assigned. This bit is write disable bit.
When this bit is read out, the value is "0."
W
R
0
W
R
0
–
R
3
(BSEL20)
(See note)
0
W
R
SCL3/P31-SCL1/P11
SDA3/P30-SDA1/P13
Course connection control bit
(BSEL21)
Notes For the ports used as the Multi-master I
2C-BUS interface, set their direction registers to 1.
To use SCL3 and SDA3, set the I
2C Control Register (address 00F916) bits 6–7 to 0.
B
Name
Functions
After reset
R W
Port P30 data
Port P31 data
Switch bit of I
2C-BUS
interface and port P3
0:
Port P30, Port P31
1: I
2CBUS (SDA3,SCL3)
0: Connection
1: Cutting
5
6
Port P3 register
Indeterminate
–
R
–
R
Port P35 data
Port P36 data
7
Indeterminate
–
R
Port P37data