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

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.15 Sample Flowchart for Operations in Master Receive Mode
No
No
Clear IRIC flag in ICCR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Clear IRIC flag in ICCR
Set HNDS = 0 in ICXR
Read IRIC flag in ICCR
Set ACKB = 0 in ICSR
Set ACKB = 1 in ICSR
Set TRS = 0 in ICCR
Set WAIT = 0 in ICMR
Set TRS = 1 in ICCR
Set WAIT = 0 in ICMR
Slave receive mode
Set BBSY = 0 and
SCP = 0 in ICCR
(Receiving a Single Byte) (WAIT = 1)
Read ICDR
Read ICDR
IRIC = 1?
IRIC = 1?
End
Yes
Yes
[1] Select receive mode.
[2] Start receiving. The first read
[3] Wait for a receive wait
[7] Set acknowledge data for
[9] Set TRS for stop condition issuance
[11] Clear IRIC flag.
[12] Wait for 1 byte to be received.
[15] Clear wait mode.
[16] Read the last receive data
[17] Generate stop condition
is a dummy read.
(Set IRIC at the fall of the 8th clock)
the last reception.
(to end the wait insertion)
(Set IRIC at the rise of the 9th clock)
Clear IRIC flag.
(IRIC flag should be cleared to 0
after setting WAIT = 0.)
Section 16 I
Rev. 3.00 Mar 21, 2006 page 453 of 788
2
C Bus Interface (IIC) (Optional)
REJ09B0300-0300

Related parts for h8s-2161b