Datasheet

19.1 Mode Switching of I
2
C Bus and Other Serial Interfaces..................................................... 814
19.1.1 UARTC3 and I
2
C00 mode switching .............................................................................................814
19.1.2 UARTC4, CSIF0, and I
2
C01 mode switching ................................................................................815
19.1.3 UARTC1 and I
2
C02 mode switching .............................................................................................816
19.2 Features .................................................................................................................................. 817
19.3 Configuration.......................................................................................................................... 818
19.4 Registers ................................................................................................................................. 822
19.5 I
2
C Bus Mode Functions ........................................................................................................ 837
19.5.1 Pin configuration ...........................................................................................................................837
19.6 I
2
C Bus Definitions and Control Methods ............................................................................ 838
19.6.1 Start condition ...............................................................................................................................838
19.6.2 Addresses .....................................................................................................................................839
19.6.3 Transfer direction specification .....................................................................................................840
19.6.4 ACK ..............................................................................................................................................841
19.6.5 Stop condition ...............................................................................................................................842
19.6.6 Wait state......................................................................................................................................843
19.6.7 Wait state cancellation method .....................................................................................................845
19.7 I
2
C Interrupt Request Signals (INTIICn)................................................................................ 846
19.7.1 Master device operation................................................................................................................846
19.7.2 Slave device operation (when receiving slave address data (address match)).............................849
19.7.3 Slave device operation (when receiving extension code)..............................................................853
19.7.4 Operation without communication.................................................................................................857
19.7.5 Arbitration loss operation (operation as slave after arbitration loss)..............................................857
19.7.6 Operation when arbitration loss occurs (no communication after arbitration loss) ........................859
19.8 Interrupt Request Signal (INTIICn) Generation Timing and Wait Control ........................ 866
19.9 Address Match Detection Method ........................................................................................ 868
19.10 Error Detection ....................................................................................................................... 868
19.11 Extension Code ...................................................................................................................... 868
19.12 Arbitration ............................................................................................................................... 869
19.13 Wakeup Function ................................................................................................................... 870
19.14 Communication Reservation ................................................................................................ 871
19.14.1 When communication reservation function is enabled (IICFn.IICRSVn bit = 0)........................871
19.14.2 When communication reservation function is disabled (IICFn.IICRSVn bit = 1) .......................875
19.15 Cautions .................................................................................................................................. 876
19.16 Communication Operations .................................................................................................. 877
19.16.1 Master operation in single master system................................................................................878
19.16.2 Master operation in multimaster system...................................................................................879
19.16.3 Slave operation ........................................................................................................................882
19.17 Timing of Data Communication ............................................................................................ 885
CHAPTER 20 CAN CONTROLLER ..................................................................................................... 892
20.1 Overview ................................................................................................................................. 892
20.1.1 Features........................................................................................................................................892
20.1.2 Overview of functions....................................................................................................................893
20.1.3 Configuration.................................................................................................................................894
20.2 CAN Protocol .......................................................................................................................... 895
20.2.1 Frame format ................................................................................................................................895
20.2.2 Frame types..................................................................................................................................896
20.2.3 Data frame and remote frame .......................................................................................................896
20.2.4 Error frame....................................................................................................................................904
20.2.5 Overload frame .............................................................................................................................905
20.3 Functions ................................................................................................................................ 906
20.3.1 Determining bus priority ................................................................................................................906
20.3.2 Bit stuffing .....................................................................................................................................906
20.3.3 Multi masters.................................................................................................................................906
20.3.4 Multi cast.......................................................................................................................................906
20.3.5 CAN sleep mode/CAN stop mode function ...................................................................................907
20.3.6 Error control function.....................................................................................................................907