![](http://datasheet.mmic.net.cn/190000/UPD784216AGC-XXX-8EU_datasheet_14990906/UPD784216AGC-XXX-8EU_17.png)
17
User’s Manual U13570EJ3V1UD
19.5
I2C Bus Definitions and Control Method .............................................................................. 348
19.5.1
Start condition ............................................................................................................................ 348
19.5.2
Address ...................................................................................................................................... 349
19.5.3
Transfer direction specification ................................................................................................... 349
19.5.4
Acknowledge signal (ACK) ......................................................................................................... 357
19.5.5
Stop condition ............................................................................................................................. 358
19.5.6
Wait signal (WAIT) ...................................................................................................................... 352
19.5.7
I2C interrupt request (INTIIC0) .................................................................................................... 354
19.5.8
Interrupt request (INTIIC0) generation timing and wait control ................................................... 372
19.5.9
Address match detection ............................................................................................................ 373
19.5.10 Error detection ............................................................................................................................ 373
19.5.11 Extended codes .......................................................................................................................... 374
19.5.12 Arbitration ................................................................................................................................... 374
19.5.13 Wake-up function ........................................................................................................................ 376
19.5.14 Communication reservation ........................................................................................................ 377
19.5.15 Additional cautions ..................................................................................................................... 380
19.5.16 Communication operation .......................................................................................................... 381
19.6
Timing Charts ......................................................................................................................... 383
CHAPTER 20 CLOCK OUTPUT FUNCTION ..................................................................................... 390
20.1
Functions ................................................................................................................................ 390
20.2
Configuration .......................................................................................................................... 391
20.3
Control Registers ................................................................................................................... 391
CHAPTER 21 BUZZER OUTPUT FUNCTIONS ................................................................................ 394
21.1
Function .................................................................................................................................. 394
21.2
Configuration .......................................................................................................................... 394
21.3
Control Registers ................................................................................................................... 395
CHAPTER 22 EDGE DETECTION FUNCTION ................................................................................. 397
22.1
Control Registers ................................................................................................................... 397
22.2
Edge Detection of P00 to P06 Pins ....................................................................................... 398
CHAPTER 23 INTERRUPT FUNCTIONS .......................................................................................... 399
23.1
Interrupt Request Sources .................................................................................................... 400
23.1.1
Software interrupts ..................................................................................................................... 402
23.1.2
Operand error interrupts ............................................................................................................. 402
23.1.3
Non-maskable interrupts ............................................................................................................ 402
23.1.4
Maskable interrupts .................................................................................................................... 402
23.2
Interrupt Service Modes ........................................................................................................ 403
23.2.1
Vectored interrupt service ........................................................................................................... 403
23.2.2
Macro service ............................................................................................................................. 403
23.2.3
Context switching ....................................................................................................................... 403
23.3
Interrupt Processing Control Registers ............................................................................... 404
23.3.1
Interrupt control registers ........................................................................................................... 406
23.3.2
Interrupt mask registers (MK0, MK1) ......................................................................................... 410
23.3.3
In-service priority register (ISPR) ............................................................................................... 412
23.3.4
Interrupt mode control register (IMC) ......................................................................................... 413
23.3.5
Watchdog timer mode register (WDM) ....................................................................................... 414