I 2 C0 Control Register 1 (S3D0 Register); Bit 0 : Interrupt Enable Bit By Stop Condition (Sim ); Bit 1: Interrupt Enable Bit At The Completion Of Data Receive (Wit) - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
2
16.6 I
C0 Control Register 1 (S3D0 register)
The S3D0 register controls the I

16.6.1 Bit 0 : Interrupt Enable Bit by STOP Condition (SIM )

The SIM bit enables the I
2
is set to "1", the I
change in the PIN flag).

16.6.2 Bit 1: Interrupt Enable Bit at the Completion of Data Receive (WIT)

When the WIT bit is set to "1" (enable the I2C bus interface interrupt upon completion of receiving data)
while the ACK-CLK bit in the S20 register is set to "1" (ACK clock), the I
is generated, synchronizing with the falling edge of the last data bit clock, and the PIN bit is set to "0"
(request interrupt) . Then an "L" signal is applied to the SCL
trolled. Table 16.4 and Figure 16.12 show the interrupt generation timing and the procedure of commu-
nication restart. After the communication is restarted, the PIN bit is set to "0" again, synchronized with the
falling edge of the ACK clock, and the I
Table16.4 Timing of Interrupt Generation in Data Receive Mode
2
I
C bus Interface Interrupt Generation Timing
1) Synchronized with the falling edge of the
last data bit clock
2) Synchronized with the falling edge of the
ACK clock
The internal WAIT flag can be read by reading the WIT bit. The internal WAIT flag is set to "1" after writing
data to the S00 register and it is set to "0" after writing to the S20 register.
Consequently, the I
(See Figure 16.12)
When the data is transmitted and the address data is received immediately after the START condition,
the WAIT flag remains "0" regardless of the WIT bit setting, and the I
only generated at the falling edge of the ACK clock. Set the WIT bit to "0" when the ACK-CLK bit in the
S20 register is set to "0" (no ACK clock).
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
2
C bus interface circuit.
2
C bus interface interrupt request by detecting a STOP condition. If the SIM bit
C bus interface interrupt request is generated by the STOP condition detect (no need to
2
C bus interface interrupt request is generated.
2
C bus interface interrupt request generated by the timing 1) or 2) can be determined.
page 267
f o
3
8
5
16. MULTI-MASTER I
and the ACK clock generation is con-
MM
Procedure of Communication Restart
Set the ACK bit in the S20 register.
Set the PIN bit to "1".
(Do not write to the S00 register. The ACK clock
operation may be unstable.)
Set the S00 register
2
C bus INTERFACE
2
C bus interface interrupt request
2
C bus interface interrupt request is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents