18.2 Serial Interface Channel 0 Configuration........................................................................ 348
18.3 Serial Interface Channel 0 Control Registers................................................................. 352
18.4 Serial Interface Channel 0 Operations ............................................................................ 360
18.4.1 Operation stop mode ............................................................................................................. 360
18.4.2 3-wire serial I/O mode operation ........................................................................................... 361
18.4.3 2-wire serial I/O mode operation ........................................................................................... 365
18.4.4 I2C bus mode operation ......................................................................................................... 370
18.4.5 Cautions on use of I2C bus mode ......................................................................................... 388
18.4.6 Restrictions in I2C bus mode ................................................................................................. 391
18.4.7 SCK0/SCL/P27 pin output manipulation ............................................................................... 393
CHAPTER 19 SERIAL INTERFACE CHANNEL 1 .............................................................................. 395
19.1 Serial Interface Channel 1 Functions .............................................................................. 395
19.2 Serial Interface Channel 1 Configuration........................................................................ 396
19.3 Serial Interface Channel 1 Control Registers................................................................. 398
19.4 Serial Interface Channel 1 Operations ............................................................................ 405
19.4.1 Operation stop mode ............................................................................................................. 405
19.4.2 3-wire serial I/O mode operation ........................................................................................... 406
19.4.3 3-wire serial I/O mode operation with automatic transmit/receive function ........................ 409
CHAPTER 20 SERIAL INTERFACE CHANNEL 2 .............................................................................. 437
20.1 Serial Interface Channel 2 Functions .............................................................................. 437
20.2 Serial Interface Channel 2 Configuration........................................................................ 438
20.3 Serial Interface Channel 2 Control Registers................................................................. 441
20.4 Serial Interface Channel 2 Operation .............................................................................. 449
20.4.1 Operation stop mode ............................................................................................................. 449
20.4.2 Asynchronous serial interface (UART) mode ....................................................................... 451
20.4.3 3-wire serial I/O mode ........................................................................................................... 464
20.4.4 Restrictions on using UART mode ........................................................................................ 471
CHAPTER 21 REAL-TIME OUTPUT PORT ........................................................................................ 475
21.1 Real-time Output Port Functions ..................................................................................... 475
21.2 Real-time Output Port Configuration ............................................................................... 475
21.3 Real-time Output Port Control Registers ........................................................................ 477
CHAPTER 22 INTERRUPT FUNCTIONS AND TEST FUNCTIONS ................................................... 479
22.1 Interrupt Function Types ................................................................................................... 479
22.2 Interrupt Sources and Configuration............................................................................... 480
22.3 Interrupt Function Control Registers .............................................................................. 484
22.4 Interrupt Servicing Operations ......................................................................................... 493
22.4.1 Non-maskable interrupt request acknowledge operation..................................................... 493
22.4.2 Maskable interrupt request acknowledge operation............................................................. 496
22.4.3 Software interrupt request acknowledge operation.............................................................. 498
22.4.4 Multiple interrupt servicing..................................................................................................... 499
22.4.5 Interrupt request reserve ....................................................................................................... 502
22.5 Test Functions .................................................................................................................... 503
22.5.1 Registers controlling the test function................................................................................... 503
22.5.2 Test input signal acknowledge operation ............................................................................. 504
20