Download Print this page

Hitachi H8S/2633 Hardware Manual page 750

Advertisement

Master receive mode
Set TRS = 0 in ICCR
Set ACKB = 0 in ICSR
Last receive?
Read ICDR
Clear IRIC in ICCR
Read IRIC in ICCR
No
IRIC = 1?
Set ACKB = 1 in ICSR
Read ICDR
Clear IRIC in ICCR
Read IRIC in ICCR
No
IRIC = 1?
Set TRS = 1 in ICCR
Read ICDR
Clear IRIC in ICCR
Write BBSY = 0
and SCP = 0 in ICCR
Figure 18-15 Flowchart for Master Receive Mode (Example)
732
Yes
No
Yes
Yes
End
[1] Select receive mode.
[1]
[2] Set acknowledge data.
[2]
[3] Start receiving. The first read is a dummy read.
[4] Wait for 1 byte to be received.
[5] Set acknowledge data for the last receive.
[6] Start the last receive.
[7] Wait for 1 byte to be received.
[3]
[8] Select transmit mode.
[9] Read the last receive data (if ICDR is read
without selecting transmit mode, receive
operations will resume).
[4]
[10] Generate a stop condition.
[5]
[6]
[7]
[8]
[9]
[10]

Advertisement

loading

This manual is also suitable for:

Hd6432633Hd6432631Hd64f2633H8s/2632Hd6432632H8s/2631