HD6432160 RENESAS [Renesas Technology Corp], HD6432160 Datasheet - Page 478

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Rev. 2.0, 08/02, page 438 of 788
Figure 16.18 Sample Flowchart for Operations in Slave Receive Mode (HNDS = 1)
Read AASX, AAS and ADZ in ICSR
Read ICDR, clear IRIC flag
No
No
No
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Read IRIC flag in ICCR
Set ACKB = 1 in ICSR
and TRS = 0 in ICCR
Set ACKB = 0 in ICSR
and HNDS = 1 in ICXR
Slave receive mode
Clear IRIC in ICCR
Read TRS in ICCR
Last reception?
and ADZ = 1?
Set MST = 0
ICDRF
Initialize IIC
Read ICDR
Read ICDR
TRS = 1?
IRIC
IRIC
IRIC
AAS = 1
End
= 1?
= 1?
= 1?
Yes
Yes
Yes
= 1?
Yes
No
No
No
No
Yes
Yes
Yes
[2] Read the receive data remaining unread.
[1] Initialization. Select slave receive mode.
[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.
[5] to [7] Wait for the reception to end.
[8] Clear IRIC
[10] Read the receive data.
[8] Clear IRIC flag.
[9] Set acknowledge data for the last reception.
[11] Detect stop condition
[12] Clear IRIC flag.
Slave transmit mode
General call address processing
* Description omitted

Related parts for HD6432160