p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 454

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 16 I
16.4.6
If the slave address matches to the address in the first frame (address reception frame) following
the start condition detection when the 8th bit data (R/W) is 1 (read), the TRS bit in ICCR is
automatically set to 1 and the mode changes to slave transmit mode.
Figure 16.23 shows the sample flowchart for the operations in slave transmit mode.
Rev. 1.00 Sep. 21, 2006 Page 416 of 658
REJ09B0310-0100
No
Write transmit data in ICDR
Slave Transmit Operation
No
No
Clear ACKE to 0 in ICCR
2
C Bus Interface (IIC)
Set TRS = 0 in ICCR
Read ACKB in ICSR
Slave transmit mode
Clear IRIC in ICCR
Clear IRIC in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
Clear IRIC in ICCR
Read IRIC in ICCR
(ACKB=0 clear)
of transmission
(ACKB = 1)?
Read ICDR
IRIC = 1?
IRIC = 1?
Figure 16.23 Sample Flowchart for Slave Transmit Mode
End
End
Yes
Yes
Yes
[3], [4] Wait for 1 byte to be transmitted.
[6] Clear IRIC in ICCR
[7] Clear acknowledge bit data
[1], [2] If the slave address matches to the address in the first frame
[8] Set slave receive mode.
[4] Determine end of transfer.
[9] Dummy read (to release the SCL line).
[10] Wait for stop condition
[3], [5] Set transmit data for the second and subsequent bytes.
following the start condition detection and the R/W bit is 1
in slave recieve mode, the mode changes to slave transmit mode.

Related parts for p2125vps20