Figure 16.14 Sample Flowchart For Operations In Master Receive Mode (Receiving A Single Byte) (Wait = 1) - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

Slave receive mode
Set TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Set HNDS = 0 in ICXR
Clear IRIC flag in ICCR
Set WAIT = 0 in ICMR
Read ICDR
Read IRIC flag in ICCR
No
IRIC = 1?
Set ACKB = 1 in ICSR
Set TRS = 1 in ICCR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
No
IRIC = 1?
Set WAIT = 0 in ICMR
Clear IRIC flag in ICCR
Read ICDR
Set BBSY = 0 and
SCP = 0 in ICCR
Figure 16.14 Sample Flowchart for Operations in Master Receive Mode
(receiving a single byte) (WAIT = 1)
[1] Select receive mode.
[2] Start receiving. The first read
is a dummy read.
[3] Wait for a receive wait
(Set IRIC at the fall of the 8th clock)
Yes
[7] Set acknowledge data for
[9] Set TRS for stop condition issuance
[14] Clear IRIC flag.
[12] Wait for 1 byte to be received.
Yes
[15] Clear wait mode.
[16] Read the last receive data
[17] Generate stop condition
End
Section 16 I
the last reception.
(to end the wait insertion)
(Set IRIC at the rise of the 9th clock)
Clear IRIC flag.
( IRIC flag should be cleared to 0
after setting WAIT = 0.)
Rev. 3.00 Jul. 14, 2005 Page 547 of 986
2
C Bus Interface (IIC)
REJ09B0098-0300

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents