Hitachi H8/3664 Hardware Manual page 350

Table of Contents

Advertisement

Set MST = 0
and TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Read IRIC in ICCR
No
Read AAS and ADZ in ICSR
and ADZ = 0?
Read TRS in ICCR
Last receive?
Clear IRIC in ICCR
Read IRIC in ICCR
No
Set ACKB = 1 in ICSR
Clear IRIC in ICCR
Read IRIC in ICCR
No
Clear IRIC in ICCR
Figure 15.15 Flowchart for Slave Receive Mode (Example)
334
Start
Initialize
IRIC = 1?
Yes
No
AAS = 1
Yes
No
TRS = 0?
Yes
Yes
No
Read ICDR
IRIC = 1?
Yes
Read ICDR
IRIC = 1?
Yes
Read ICDR
End
[1]
[2]
General call address processing
* Description omitted
Slave transmit mode
[3]
[1] Select slave receive mode.
[2] Wait for the first byte to be received (slave
address).
[3] Start receiving. The first read is a dummy read.
[4]
[4] Wait for the transfer to end.
[5] Set acknowledge data for the last receive.
[6] Start the last receive.
[7] Wait for the transfer to end.
[8] Read the last receive data.
[5]
[6]
[7]
[8]

Advertisement

Table of Contents
loading

Table of Contents