Renesas H8S/2111B Network Card User Manual


 
Rev. 1.00, 05/04, page 322 of 544
Slave receive mode
End
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Read AASX, AAS and ADZ in ICSR
Read TRS in ICCR
Read IRIC flag in ICCR
Clear IRIC in ICCR
Clear IRIC flag in ICCR
Read ICDR
Read ICDR
General call address processing
* Description omitted
Set MST = 0
and TRS = 0 in ICCR
IRIC = 1?
No
Yes
Read IRIC flag in ICCR
Set ACKB = 1 in ICSR
IRIC = 1?
No
Yes
TRS = 1?
IRIC = 1?
Yes
Yes
No
Yes
No
AAS = 1
and ADZ = 1?
[1] Initialization. Select slave receive mode.
[2] Read the receive data remaining unread.
[3] to [7] Wait for one byte to be received (slave address + R/W)
[10] Read the receive data. The first read is a dummy read.
[9] Set acknowledge data for the last reception.
[8] Clear IRIC
[5] to [7] Wait for the reception to end.
[5] to [7] Wait for the reception to end or
[11] Detect stop condition.
Slave transmit mode
Last reception?
No
No
Yes
Read ICDR, clear IRIC flag
No
Yes
Initialize IIC
ICDRF = 1?
[8] Clear IRIC flag.
[8] Clear IRIC flag.
[10] Read the receive data.
Set ACKB = 0 in ICSR
and HNDS = 1 in ICXR
[12] Clear IRIC flag.
ESTP = 1 or
STOP = 1?
No
Yes
Clear IRIC in ICCR
[12] Confirm STOP bit.
Figure 13.17 Sample Flowchart for Operations in Slave Receive Mode (HNDS = 1)