h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 499

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
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?
SCP = 0 in ICCR
TRS = 1 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/W).
(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
Section 16 I
Rev. 3.00 Mar 21, 2006 page 445 of 788
2
C Bus Interface (IIC) (Optional)
REJ09B0300-0300

Related parts for h8s-2161b