Download Print this page

Renesas H8S Family Hardware Manual page 684

Advertisement

2
Section 18 I
C Bus Interface (IIC)
Continuous Receive Operation:
Figure 18.20 shows the sample flowchart for the operations in slave receive mode (HNDS = 0).
No
Read AASX, AAS and ADZ in ICSR
No
Figure 18.20 Sample Flowchart for Operations in Slave Receive Mode (HNDS = 0)
Rev. 1.00 Mar. 12, 2008 Page 636 of 1178
REJ09B0403-0100
Slave receive mode
Set MST = 0
and TRS = 0 in ICCR
[1] Select slave receive mode.
Set ACKB = 0 in ICSR
Set HNDS = 0 in ICXR
Clear IRIC in ICCR
No
[2] Read the receive data remaining unread.
ICDRF = 1?
Yes
Read ICDR
Clear IRIC in ICCR
[3] to [7] Wait for one byte to be received (slave address + R/W)
Read IRIC in ICCR
IRIC = 1?
Yes
Clear IRIC in ICCR
[8] Clear IRIC
Yes
AAS = 1
General call address processing
and ADZ = 1?
No
Read TRS in ICCR
Yes
Slave transmit mode
TRS = 1?
No
* n: Address + total number of bytes received
No
(n-2)th-byte
reception?
Wait for one frame
[9] Wait for ACKB setting and set acknowledge data
Set ACKB = 1 in ICSR
(after the rise of the 9th clock of (n-1)th byte data)
No
ICDRF = 1?
[10] Read the receive data. The first read is a dummy read.
Yes
Read ICDR
Read IRIC in ICCR
[11] Wait for one byte to be received
IRIC = 1?
[12] Detect stop condition
Yes
ESTP = 1 or
STOP = 1?
No
Clear IRIC in ICCR
[13] Clear IRIC
No
ICDRF = 1?
[14] Read the last receive data
Yes
Read ICDR
[15] Clear IRIC
Clear IRIC in ICCR
End
(Set IRIC at the rise of the 9th clock)
* Description omitted
for the last reception
(Set IRIC at the rise of the 9th clock)

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472