English
Language : 

M37160M8 Datasheet, PDF (35/131 Pages) Renesas Technology Corp – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37160M8/MA/MF-XXXSP/FP,M37160EFSP/FP
I2C Control Register
b7 b6 b5 b4 b3 b2 b1 b0
I2C control register (S1D) [Address 00F916]
B
Name
0 Bit counter
to (Number of transmit/recieve
2 bits)
(BC0 to BC2)
3 I2C-BUS interface use
enable bit (ESO)
4 Data format selection
bit(ALS)
5 Addressing format selection
bit (10BIT SAD)
6, 7 Connection control bits
between I2C-BUS interface
and ports
(BSEL0, BSEL1)
Functions
b2 b1 b0
0 0 0:8
0 0 1:7
0 1 0:6
0 1 1:5
1 0 0:4
1 0 1:3
1 1 0:2
1 1 1:1
0 : Disabled
1 : Enabled
0 : Addressing mode
1 : Free data format
0 : 7-bit addressing format
1 : 10-bit addressing format
b7 b6 Connection port (See note)
0 0: None
0 1: SCL1, SDA1
1 0: SCL2, SDA2
1 1: SCL1, SDA1
SCL2, SDA2
After reset R W
0 RW
0 RW
0 RW
0 RW
0 RW
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.
Fig. 8.6.6 I2C Control Register
Port P3 register
b7 b6 b5 b4 b3 b2 b1 b0
Port P3 register (P3) [Address 00C616]
B
Name
Functions
After reset R W
0 Port P3 register
Port P30 data
Indeterminate R W
1
Port P31 data
2 Switch bit of I2C-BUS
interface and port P3
(BSEL20) (See note)
0 : Port P30, Port P31
1 : I2CBUS (SDA3,SCL3)
3 SCL3/P31-SCL1/P11
SDA3/P30-SDA1/P13
0 : Connection
Course connection control bit 1: Cutting
(BSEL21)
Indeterminate R W
0
RW
0
RW
4 Nothing is assigned. This bit is write disable bit.
When this bit is read out, the value is "0."
0
R–
5 Port P3 register
Port P35 data
Indeterminate R –
6
Port P36 data
Indeterminate R –
7
Port P37data
Indeterminate R –
Notes • For the ports used as the Multi-master I2C-BUS interface, set their direction registers to 1.
• To use SCL3 and SDA3, set the I2C Control Register (address 00F916) bits 6–7 to 0.
Fig. 8.6.7 Port P3 Register
Rev.1.01 2003.11.13 page 35 of 130