BAT32G1x9 user manual | Chapter 20 Serial interface IICA
743 / 1149
Rev.1.02
Figure 20-7
Format of IICA status register n (IICSn) (2/3).
EXCn
Receive detection of extension codes
0
The extension code was not received.
1
Extended code received.
Clear condition (EXCn=0,1).
Position condition (EXCn=1).
•When a start condition is detected
•When a stop condition is detected
• Cleared because the LRELn bit is "1" (Exit Communication).
• When the IICEn bit changes from "1" to "0" (stops running).
• When resetting
• When the high 4 bits of the received
address data are "0000" or "1111"
(asserted on the rising edge of the 8th
clock).
COIn
Detection of address matches
0
The address is different.
1
The address is the same.
Clear condition (COIn=0,1).
Set condition (COIn=1).
•When a start condition is detected
•When a stop condition is detected
• Cleared because the LRELn bit is "1" (Exit Communication).
• When the IICEn bit changes from "1" to "0" (stops running).
• When resetting
• When receiving address and local station
address (slave address register n
(SVAn)) are the same (asserted on the
rising edge of the 8th clock).
TRCn
Status detection of sends/receives
0
In the receiving state (except for the sending state). Place the
SDAAn
line as high impedance.
1
in the sending state. Set to output the value of the SOn latch to the SDAAn line (valid after
the falling edge of the 9th clock byte of the 1st byte).
Clear condition (TRCn=0,1).
Position condition (TRCn=1).
< master and slave >
< the master device >
•When a stop condition is detected
•When the build starts condition
• Cleared because the LRELn bit is "1" (Exit
Communication).
• LSB (transmit direction indication bit) when byte 1
(address is transmitted).
• When the IICEn bit changes from "1" to "0" (stops
running).
When output "0" (master sends).
• Clear note due to WRELn bit "1" (unsheath wait).
< slave >
• When the ALDn bit changes from "0" to "1" (arbitration
failed).
• LSB (Transmit) when the master device is byte 1
(Address Transfer
• When resetting
Direction indicator bit) when entering "1" (Slave
send).
• Cases of non-participation in communication (MSTSn,
EXCn, COIn=0,1).
< the master device >
•When the LSB (Transmit Direction Indicator bit) of byte 1
outputs "1"
< slave >
•When a start condition is detected
•When the LSB (Transmit Direction Indicator bit) of byte 1
enters "0"
Note: When the
bit3
(TRCn) of
IICA
status register
n
(IICSn) is
"1"
(transmit state), if it is in line
9 clocks place
bit5
(
WRELn
) of
the IICA control register n0 (IICCTLn0
).
"1"
to relieve the wait, just clear
the
TRCn
bit (receive state) and
set the
SDAAn
line to high impedance.
Waiting for the
TRCn
bit of
"1"
(send state) must be
released
by writing
the IICA
shift register
n.