User’s Manual U17894EJ9V0UD
13
13.5.3
Master transmission/reception..................................................................................................439
13.5.4
Slave transmission ...................................................................................................................447
13.5.5
Slave reception.........................................................................................................................456
13.5.6
Slave transmission/reception....................................................................................................462
13.5.7
Calculating transfer clock frequency.........................................................................................471
13.5.8
Procedure for processing errors that occurred during 3-wire serial I/O (CSI00, CSI01, CSI10,
CSI20) communication .............................................................................................................473
13.6
Operation of UART (UART0, UART1, UART2, UART3) Communication...........................474
13.6.1
UART transmission ..................................................................................................................475
13.6.2
UART reception........................................................................................................................485
13.6.3
LIN transmission.......................................................................................................................492
13.6.4
LIN reception ............................................................................................................................495
13.6.5
Calculating baud rate ...............................................................................................................500
13.6.6
Procedure for processing errors that occurred during UART (UART0, UART1, UART2, UART3)
communication .........................................................................................................................504
13.7 Operation of Simplified I
2C (IIC10, IIC20) Communication ...................................................505
13.7.1
Address field transmission........................................................................................................506
13.7.2
Data transmission.....................................................................................................................511
13.7.3
Data reception ..........................................................................................................................514
13.7.4
Stop condition generation.........................................................................................................518
13.7.5
Calculating transfer rate ...........................................................................................................519
13.7.6
Procedure for processing errors that occurred during simplified I
2C (IIC10, IIC20) communication
.................................................................................................................................................522
13.8
Relationship Between Register Settings and Pins.............................................................523
CHAPTER 14 SERIAL INTERFACE IIC0 ..........................................................................................530
14.1
Functions of Serial Interface IIC0 .........................................................................................530
14.2
Configuration of Serial Interface IIC0 ..................................................................................533
14.3
Registers to Controlling Serial Interface IIC0 .....................................................................536
14.4
I
2C Bus Mode Functions ........................................................................................................548
14.4.1
Pin configuration.......................................................................................................................548
14.5
I
2C Bus Definitions and Control Methods ...........................................................................549
14.5.1
Start conditions.........................................................................................................................549
14.5.2
Addresses ................................................................................................................................550
14.5.3
Transfer direction specification.................................................................................................550
14.5.4
Transfer clock setting method ..................................................................................................551
14.5.5
Acknowledge (ACK) .................................................................................................................552
14.5.6
Stop condition...........................................................................................................................554
14.5.7
Wait ..........................................................................................................................................555
14.5.8
Canceling wait ..........................................................................................................................557
14.5.9
Interrupt request (INTIIC0) generation timing and wait control .................................................558
14.5.10 Address match detection method .............................................................................................559
14.5.11 Error detection..........................................................................................................................559
14.5.12 Extension code.........................................................................................................................559
14.5.13 Arbitration .................................................................................................................................560
14.5.14 Wakeup function.......................................................................................................................561
14.5.15 Communication reservation......................................................................................................562
14.5.16 Cautions ...................................................................................................................................566