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

no-image

HD6432160

Manufacturer Part Number
HD6432160
Description
Hitachi 16-Bit Single-Chip Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Figure 16.8 Sample Flowchart for Operations in Master Transmit Mode
No
No
No
No
No
Write transmit data in ICDR
Write transmit data in ICDR
Read BBSY flag in ICCR
Read IRIC flag in ICCR
Read ACKB bit in ICSR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Read ACKB bit in ICSR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Yes
Set BBSY =1 and
Set BBSY = 0 and
Set MST = 1 and
End of transmission?
TRS = 1 in ICCR
SCP = 0 in ICCR
SCP = 0 in ICCR
Transmit mode?
Initialize IIC
ACKB = 0?
or ACKB = 1?
BBSY = 0?
IRIC = 1?
IRIC = 1?
IRIC = 1?
Start
End
Yes
Yes
Yes
Yes
Yes
Yes
No
No
[1] Initialization
[2] Test the status of the SCL and SDA lines.
[3] Select master transmit mode.
[4] Start condition issuance
[5] Wait for a start condition generation
[6] Set transmit data for the first byte
[7] Wait for 1 byte to be transmitted.
[8] Test the acknowledge bit
[9] Set transmit data for the second and
[10] Wait for 1 byte to be transmitted.
[11] Determine end of tranfer
[12] Stop condition issuance
(slave address + R/ ).
(After writing to ICDR, clear IRIC flag
continuously.)
transferred from the slave device.
subsequent bytes.
continuously.)
(After writing to ICDR, clear IRIC flag
Master receive mode
Rev. 2.0, 08/02, page 427 of 788

Related parts for HD6432160