User’s Manual U18417EJ4V0UD
13
13.4.1 Stopping the operation by units.....................................................................................................439
13.4.2 Stopping the operation by channels ..............................................................................................440
13.5 Operation of 3-Wire Serial I/O (CSI00, CSI01, CSI10, CSI11, CSI20, CSI21) Communication .. 442
13.5.1 Master transmission ......................................................................................................................443
13.5.2 Master reception ...........................................................................................................................452
13.5.3 Master transmission/reception ......................................................................................................460
13.5.4 Slave transmission ........................................................................................................................468
13.5.5 Slave reception .............................................................................................................................477
13.5.6 Slave transmission/reception ........................................................................................................483
13.5.7 Calculating transfer clock frequency .............................................................................................492
13.5.8 Procedure for processing errors that occurred during 3-wire serial I/O (CSI00, CSI01, CSI10,
CSI11, CSI20, CSI21) communication ..........................................................................................494
13.6 Operation of UART (UART0, UART1, UART2, UART3) Communication .................................... 495
13.6.1 UART transmission .......................................................................................................................496
13.6.2 UART reception ............................................................................................................................506
13.6.3 LIN transmission ...........................................................................................................................513
13.6.4 LIN reception.................................................................................................................................516
13.6.5 Calculating baud rate ....................................................................................................................521
13.6.6 Procedure for processing errors that occurred during UART (UART0, UART1, UART2, UART3)
communication ..............................................................................................................................525
13.7 Operation of Simplified I
2C (IIC10, IIC11, IIC20, IIC21) Communication...................................... 526
13.7.1 Address field transmission ............................................................................................................527
13.7.2 Data transmission .........................................................................................................................532
13.7.3 Data reception...............................................................................................................................535
13.7.4 Stop condition generation .............................................................................................................539
13.7.5 Calculating transfer rate ................................................................................................................540
13.7.6 Procedure for processing errors that occurred during simplified I
2C (IIC10, IIC11, IIC20, IIC21)
communication ..............................................................................................................................543
13.8 Relationship Between Register Settings and Pins........................................................................ 544
CHAPTER 14 SERIAL INTERFACE IIC0 ........................................................................................... 553
14.1 Functions of Serial Interface IIC0 ..................................................................................................... 553
14.2 Configuration of Serial Interface IIC0 .............................................................................................. 556
14.3 Registers to Controlling Serial Interface IIC0 ................................................................................. 559
14.4 I
2C Bus Mode Functions .................................................................................................................... 571
14.4.1 Pin configuration ...........................................................................................................................571
14.5 I
2C Bus Definitions and Control Methods ....................................................................................... 572
14.5.1 Start conditions .............................................................................................................................572
14.5.2 Addresses .....................................................................................................................................573
14.5.3 Transfer direction specification .....................................................................................................573
14.5.4 Transfer clock setting method .......................................................................................................574
14.5.5 Acknowledge (ACK) ......................................................................................................................575
14.5.6 Stop condition ...............................................................................................................................577
14.5.7 Wait...............................................................................................................................................578
14.5.8 Canceling wait...............................................................................................................................580
14.5.9 Interrupt request (INTIIC0) generation timing and wait control......................................................581
14.5.10 Address match detection method................................................................................................582
14.5.11 Error detection ............................................................................................................................582