CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U13850EJ6V0UD
339
10.4.2 I
2
C control register
I
2
C0 and I
2
C1 are controlled by the following registers.
• IIC control registers 0, 1 (IICC0, IICC1)
• IIC status registers 0, 1 (IICS0, IICS1)
• IIC flag registers 0, 1 (IICF0, IICF1)
• IIC clock selection registers 0, 1 (IICCL0, IICCL1)
• IIC clock expansion registers 0, 1 (IICCE0, IICCE1)
• IIC function expansion registers 0, 1 (IICX0, IICX1)
The following registers are also used.
• IIC shift registers 0, 1 (IIC0, IIC1)
• Slave address registers 0, 1 (SVA0, SVA1)
(1) IIC control registers 0, 1 (IICC0, IICC1)
IICCn is used to enable/disable I
2
C operations, set wait timing, and set other I
2
C operations.
IICCn can be set by an 8-bit or 1-bit memory manipulation instruction (n = 0, 1).
RESET input clears IICCn to 00H.
Caution
In I
2
C0, I
2
C1 bus mode, set the port 1 mode register (PM1), port 2 mode register (PM2), port 1
function register (PF1), and port 2 function register (PF2) as follows. In addition, set each
output latch to 0.
Pin
Port Mode Register
Port Function Register
P10/SI0/SDA0
PM10 of PM1 register = 0
PF10 of PF1 register = 1
P12/SCK0/SCL0
PM12 of PM1 register = 0
PF12 of PF1 register = 1
P20/SI2/SDA1
PM20 of PM2 register = 0
PF20 of PF2 register = 1
P22/SCK2/SCL1
PM22 of PM2 register = 0
PF22 of PF2 register = 1
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...