
xi
CHAPTER 17 8/10-BIT A/D CONVERTER ...................................................................... 355
17.1 Overview of 8/10-Bit A/D Converter ................................................................................................... 356
17.2 Configuration of 8/10-Bit A/D Converter ............................................................................................ 357
17.3 Configuration and Functions of 8/10-Bit A/D Converter Registers .................................................... 359
17.3.1 Control Status Register 1 (ADCS1) .............................................................................................. 360
17.3.2 Control Status Register 2 (ADCS2) .............................................................................................. 363
17.3.3 Data Registers (ADCR2 and ADCR1) .......................................................................................... 366
17.4 Interrupt of 8/10-Bit A/D Converter .................................................................................................... 367
17.5 Operations of 8/10-Bit A/D Converter ................................................................................................ 368
17.5.1 Example of μDMAC Start in Single Mode ..................................................................................... 370
17.5.2 Example of μDMAC Start in Continuous Mode ............................................................................ 372
17.5.3 Example of μDMAC Start in Stop Mode ....................................................................................... 374
17.6 Conversion Data Protection Function of 8/10-Bit A/D Converter ....................................................... 376
17.7 Precautions on use of the 8/10-Bit A/D Converter ............................................................................. 378
17.8 Program Example of 8/10-Bit A/D Converter ..................................................................................... 379
CHAPTER 18 EXPANDED I/O SERIAL INTERFACE ..................................................... 385
18.1 Overview of Expanded I/O Serial Interface ........................................................................................ 386
18.2 Configuration of Expanded I/O Serial Interface ................................................................................. 387
18.3 Configuration and Functions of Expanded I/O Serial Interface Registers ......................................... 389
18.3.1 Serial Mode Control Status Register 0/1 (SMCS0/SMCS1) ......................................................... 390
18.3.2 Serial Data Register 0/1 (SDR0/SDR1) ........................................................................................ 394
18.3.3 Communication Prescaler Control Register0/1 (SDCR0/SDCR1) ................................................ 395
18.4 Interrupt of Expanded I/O Serial Interface ......................................................................................... 396
18.5 Operation of Expanded I/O Serial Interface ....................................................................................... 397
18.5.1 Shift Clock Modes ......................................................................................................................... 398
18.5.2 Operational States of Serial I/O Units ........................................................................................... 399
18.5.3 Start/Stop Timing and Input/Output Timing of Shift Operation ..................................................... 401
18.5.4 Interrupt Function ......................................................................................................................... 403
18.6 Program Example of Expanded I/O Serial Interface .......................................................................... 404
CHAPTER 19 UART ......................................................................................................... 407
19.1 Overview of the UART ....................................................................................................................... 408
19.2 Configuration of UART ....................................................................................................................... 409
19.3 Configuration and Functions of UART Registers ............................................................................... 411
19.3.1 Serial Mode Register (SMR) ......................................................................................................... 412
19.3.2 Serial Control Register (SCR) ...................................................................................................... 414
19.3.3 Serial Input/Output Register (SIDR/SODR) .................................................................................. 416
19.3.4 Serial Status Register (SSR) ........................................................................................................ 417
19.3.5 Communication Prescaler Control Register (CDCR) .................................................................... 419
19.4 Interrupt of UART ............................................................................................................................... 421
19.5 UART Operations .............................................................................................................................. 423
19.5.1 Operation in Asynchronous Mode (Operation Modes 0 and 1) .................................................... 427
19.5.2 Operation in Synchronous Mode (Operation Mode 2) .................................................................. 430
19.5.3 Two-Way Communication Function (Normal Mode) ..................................................................... 432
19.5.4 Master/Slave Communication Function (Multiprocessor Mode) ................................................... 434
19.6 Precautions on use of the UART ....................................................................................................... 437
19.7 Program Example of UART ............................................................................................................... 438