Download Print this page

Renesas H8S Family Hardware Manual page 672

Advertisement

2
Section 18 I
C Bus Interface (IIC)
Receive Operation Using the HNDS Function (HNDS = 1):
Figure 18.10 shows the sample flowchart for the operations in master receive mode (HNDS = 1).
Master receive mode
Set TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Set HNDS = 1 in ICXR
No
Set ACKB = 1 in ICSR
No
Set TRS = 1 in ICCR
Figure 18.10 Sample Flowchart for Operations in Master Receive Mode (HNDS = 1)
Rev. 1.00 Mar. 12, 2008 Page 624 of 1178
REJ09B0403-0100
Clear IRIC in ICCR
Yes
Last receive?
No
Read ICDR
Read IRIC in ICCR
IRIC = 1?
Yes
Clear IRIC in ICCR
Read ICDR
Read IRIC in ICCR
IRIC = 1?
Yes
Clear IRIC in ICCR
Read ICDR
Set BBSY = 0 and
SCP = 0 in ICCR
End
[1] Select receive mode.
[2] Start receiving. The first read is a dummy read.
[5] Read the receive data (for the second and subsequent read)
[3] Wait for 1 byte to be received.
(Set IRIC at the rise of the 9th clock for the receive frame)
[4] Clear IRIC.
[6] Set acknowledge data for the last reception.
[7] Read the receive data.
Dummy read to start receiving if the first frame is
the last receive data.
[8] Wait for 1 byte to be received.
[9] Clear IRIC.
[10] Read the receive data.
[11] Set stop condition issuance.
Generate stop condition.

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472