Hitachi H8S/2199 Hardware Manual page 514

Single-chip microcomputer
Table of Contents

Advertisement

Set MST=0 and
TRS=0 in ICCR
Set ACKB=0 in ICSR
Read IRIC flag in ICCR
No
Read AAS and ADZ flags in ICSR
Read TRS bit in ICCR
Last receive?
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
No
Set ACKB=0 in ICSR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
No
Clear IRIC flag in ICCR
Figure 23.16 Flowchart for Slave Transmit Mode (Example)
Rev. 1.0, 02/00, page 506 of 1141
Start
Initialize
IRIC=1?
Yes
No
AAS=1 and
ADZ=0?
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.
[4]
[2]
Wait for 1 byte to be received (slave
address)
Start receiving. The first read is a dummy
[3]
read.
[5]
[4]
Wait for the transfer to end.
[6]
[5]
Set acknowledge data for the last receive.
Start the last receive.
[6]
[7]
[7]
Wait for the transfer to end.
[8]
Read the last receive data.
[8]

Advertisement

Table of Contents
loading

Table of Contents