Index - 7
14.4 Operation Stop Mode ............................................................................................................ 352
14.4.1 Stopping the operation by units ........................................................................................ 352
14.4.2 Stopping the operation by channels ................................................................................. 353
14.5 Operation of 3-Wire Serial I/O (CSIp) Communication ......................................................... 354
14.5.1 Master transmission ......................................................................................................... 356
14.5.2 Master reception ............................................................................................................... 364
14.5.3 Master transmission/reception .......................................................................................... 372
14.5.4 Slave transmission ........................................................................................................... 380
14.5.5 Slave reception ................................................................................................................. 388
14.5.6 Slave transmission/reception ............................................................................................ 394
14.5.7 Calculating transfer clock frequency ................................................................................. 402
14.5.8 Procedure for processing errors that occurred during 3-wire serial I/O (CSIp)
communication ................................................................................................................. 404
14.6 Operation of UART (UARTq) Communication ...................................................................... 405
14.6.1 UART transmission ........................................................................................................... 406
14.6.2 UART reception ................................................................................................................ 415
14.6.3 Calculating baud rate ........................................................................................................ 422
14.6.4 Procedure for processing errors that occurred during UART (UARTq) communication ... 426
15. SERIAL INTERFACE IICA .......................................................................................................... 427
15.1 Functions of Serial Interface IICA ......................................................................................... 427
15.2 Configuration of Serial Interface IICA ................................................................................... 430
15.3 Registers Controlling Serial Interface IICA ........................................................................... 433
15.3.1 Peripheral enable register 0 (PER0) ................................................................................. 434
15.3.2 IICA control register n0 (IICCTLn0) .................................................................................. 434
15.3.3 IICA status register n (IICSn) ............................................................................................ 439
15.3.4 IICA flag register n (IICFn) ................................................................................................ 441
15.3.5 IICA control register n1 (IICCTLn1) .................................................................................. 443
15.3.6 IICA low-level width setting register n (IICWLn) ............................................................... 445
15.3.7 IICA high-level width setting register n (IICWHn) ............................................................. 445
15.3.8 Register to control port function of serial I/O pin ............................................................. 446
15.4 I
2
C Bus Mode Functions ....................................................................................................... 447
15.4.1 Pin configuration ............................................................................................................... 447
15.4.2 Setting transfer clock by using IICWLn and IICWHn registers ......................................... 448
15.5 I
2
C Bus Definitions and Control Methods ............................................................................. 450
15.5.1 Start conditions ................................................................................................................. 450
15.5.2 Addresses ......................................................................................................................... 451
15.5.3 Transfer direction specification ......................................................................................... 451
15.5.4 Acknowledge (ACK) ......................................................................................................... 452
15.5.5 Stop condition ................................................................................................................... 453
15.5.6 Wait ................................................................................................................................... 454
15.5.7 Canceling wait ................................................................................................................. 456
15.5.8 Interrupt request (INTIICAn) generation timing and wait control ...................................... 457
15.5.9 Address match detection method ..................................................................................... 458
15.5.10 Error detection .................................................................................................................. 458
15.5.11 Extension code ................................................................................................................ 459
15.5.12 Arbitration ......................................................................................................................... 460
15.5.13 Wakeup function ............................................................................................................... 462
15.5.14 Communication reservation .............................................................................................. 465