17.1 Functions .................................................................................................................................. 501
17.2 Configuration............................................................................................................................ 502
17.3 Control Registers ..................................................................................................................... 504
17.4 Operation .................................................................................................................................. 513
17.4.1 Operation stop mode ................................................................................................................... 513
17.4.2 3-wire serial I/O mode.................................................................................................................. 513
17.4.3 3-wire serial I/O mode with automatic transmit/receive function.................................................. 521
CHAPTER 18 I2C BUS...........................................................................................................................544
18.1 Selecting UART2 or I2C1 Mode................................................................................................ 544
18.2 Features .................................................................................................................................... 545
18.3 Configuration............................................................................................................................ 548
18.4 Control Registers ..................................................................................................................... 550
18.5 Functions .................................................................................................................................. 563
18.5.1 Pin configuration.......................................................................................................................... 563
18.6 I2C Bus Definitions and Control Methods.............................................................................. 564
18.6.1 Start condition.............................................................................................................................. 564
18.6.2 Addresses.................................................................................................................................... 565
18.6.3 Transfer direction specification .................................................................................................... 566
18.6.4 Acknowledge signal (ACK) .......................................................................................................... 567
18.6.5 Stop condition.............................................................................................................................. 568
18.6.6 Wait signal (WAIT)....................................................................................................................... 569
18.7 I2C Interrupt Requests (INTIICn).............................................................................................. 571
18.7.1 Master device operation .............................................................................................................. 571
18.7.2 Slave device operation (when receiving slave address data (match with SVAn))........................ 574
18.7.3 Slave device operation (when receiving extension code) ............................................................ 578
18.7.4 Operation without communication................................................................................................ 582
18.7.5 Arbitration loss operation (operation as slave after arbitration loss) ............................................ 582
18.7.6 Operation when arbitration loss occurs (no communication after arbitration loss)....................... 584
18.8 Interrupt Request (INTIICn) Generation Timing and Wait Control ...................................... 589
18.9 Address Match Detection Method .......................................................................................... 590
18.10 Error Detection ......................................................................................................................... 590
18.11 Extension Code ........................................................................................................................ 590
18.12 Arbitration................................................................................................................................. 591
18.13 Wakeup Function ..................................................................................................................... 592
18.14 Communication Reservation .................................................................................................. 593
18.15 Cautions.................................................................................................................................... 596
18.16 Communication Operations.................................................................................................... 597
18.16.1 Master operations........................................................................................................................ 597
18.16.2 Slave operation............................................................................................................................ 599
18.17 Timing of Data Communication.............................................................................................. 600
CHAPTER 19 INTERRUPT/EXCEPTION PROCESSING FUNCTION................................................607
19.1 Overview ................................................................................................................................... 607
19.1.1 Features ...................................................................................................................................... 607
19.2 Non-Maskable Interrupts......................................................................................................... 614
19.2.1 Operation..................................................................................................................................... 617
19.2.2 Restore........................................................................................................................................ 618
19.2.3 NP flag......................................................................................................................................... 619
16
User’s Manual U15862EJ3V0UD