![NEC V850/SC1 Скачать руководство пользователя страница 385](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178385.webp)
CHAPTER 11 SERIAL INTERFACE FUNCTION
User’s Manual U15109EJ3V0UD
383
(3) IIC flag registers 0, 1 (IICF0, IICF1)
These registers set the I
2
Cn operation mode and indicate the I
2
C bus status (n = 0, 1).
IICFn can be set by an 8-bit or 1-bit memory manipulation instruction.
IICRSVn enables/disables the communication reservation function (see
11.5.12 Communication
reservation
).
The initial value of the IICBSYn bit is set by using the STCENn bit (see
11.5.13 Cautions
).
The IICRSVn and STCENn bits can be written only when operation of I
2
Cn is disabled (IICEn of IIC control
register n (IICCn) = 0). After operation is enabled (IICEn = 1), IICFn can be read.
(1/2)
After reset: 00H
R/W
Note
Address: FFFFF368H, FFFFF36AH
<7>
<6>
5
4
3
2
<1>
<0>
IICFn
STCFn
IICBSYn
0
0
0
0
STCENn
IICRSVn
(n = 0, 1)
STCFn
STTn clear flag
0
Start condition issued
1
STTn flag cleared
Condition for clearing (STCFn = 0)
Condition for setting (STCFn = 1)
•
Cleared by STTn = 1
•
When RESET is input
•
Clearance of STTn when communication reservation
disabled (IICRSVn = 1)
IICBSYn
I
2
Cn bus status flag
0
Bus released status
1
Bus communication status
Condition for clearing (IICBSYn = 0)
Condition for setting (IICBSYn = 1)
•
When stop condition is detected
•
When RESET is input
•
When start condition is detected
•
By setting IICEn when STCENn = 0
Note
Bits 6 and 7 are read-only bits.
Remark
STTn:
Bit 1 of IIC control register n (IICCn)
IICEn:
Bit 7 of IIC control register n (IICCn)