CHAPTER 17 SERIAL INTERFACE IIC0 (
µ
PD780344Y, 780354Y SUBSERIES ONLY)
351
User’s Manual U15798EJ2V0UD
17.5.16 Communication operations
(1) Master operation
An example of master operation is shown below.
Figure 17-19. Master Operation Flowchart
IICCL0
← ××
H
Select transfer clock
IICC0
← ××
H
IICE0 = SPIE0 = WTIM0 = 1
STT0 = 1
Start IIC0 write transfer
Start IIC0 write transfer
WREL0 = 1
Start reception
Generate restart condition
or stop condition
START
Data processing
Data processing
ACKE0 = 0
WREL0 = WTIM0 = 1
No
Yes
No
No
No
No
No
Yes
Yes
Yes
Yes
INTIIC0 = 1?
IICC0
← ××
H
WTIM0 = 0
ACKE0 = 1
INTIIC0 = 1?
Transfer completed?
INTIIC0 = 1?
TRC0 = 1?
INTIIC0 = 1?
ACKD0 = 1?
; Stop condition detection
; Address transfer completion
No (receive)
Yes (transmit)
Yes
No
Yes
INTIIC0 = 1?
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...