342
CHAPTER 18 I
2
C BUS MODE (
µ
PD784225Y SUBSERIES ONLY)
User’s Manual U12697EJ3V0UM
18.5.16 Communication operation
(1) Master operation
The following example shows the master operating procedure.
Figure 18-18. Master Operating Procedure
IICCL0
←
××
H
Select the transfer clock
Start IIC0 write transfer.
IICC0
←
××
H
IICE0 = SPIE0 = WTIM0 =1
STT0 = 1
INTIIC0 = 1 ?
INTIIC0 = 1 ?
Start IIC0 write transfer.
Stop condition generation
(No slave with address
match)
INTIIC0 = 1 ?
ACKD0 = 1 ?
ACKD0 = 1 ?
TRC0 = 1 ?
START
Yes
No
Yes
No
Yes
No
Yes
No
Yes
No
Yes (transmission)
No (reception)
No
Yes
No
; Address transfer ends
; Stop condition detection
Data processing
WTIM0 = 0
ACKE0 = 1
WREL0 = 1
Start reception.
INTIIC0 = 1 ?
Transfer ends ?
Data processing
ACKE0 = 0
Generate restart
condition or stop
condition.