Figure 17.17 Sample Flowchart For Slave Receive Mode - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

Slave receive mode
Clear AAS in ICSR
Set ACKBT = 0 in ICIER
Dummy reading of ICDRR
Read RDRF in ICSR
No
Read ICDRR
Set ACKBT = 1 in ICIER
Read ICDRR
Read RDRF in ICSR
No
Read ICDRR

Figure 17.17 Sample Flowchart for Slave Receive Mode

Rev. 1.00, 09/03, page 504 of 704
RDRF = 1 ?
Yes
Yes
Last receive
1?
No
RDRF = 1 ?
Yes
End
[1] Clear the AAS flag.
[1]
[2] Set the acknowledge for the transmit device.
[2]
[3] Dummy reading of ICDRR.
[3]
[4] Wait the reception end of 1 byte.
[5] Test the (last receive
[4]
[6] Read the received data.
[7] Set the acknowledge for the last byte.
[8] Read the received data of the (last byte
[5]
[9] Wait the reception end of the last byte.
[6]
[10] Read the received data of the last byte.
[7]
[8]
[9]
[10]
1).
1).

Advertisement

Table of Contents
loading

Table of Contents