MB90560 series
vii
13.3
13.4
13.4.1
13.4.2
13.4.3
13.4.4
13.4.5
13.5
13.5.1
13.5.2
13.6
13.6.1
13.6.2
13.6.3
13.7
13.7.1
13.7.2
13.7.3
13.7.4
13.8
13.9
UART Pins ..........................................................................................................................................358
UART Registers ..................................................................................................................................360
Serial Control Register 1 (SCR0/1) ...............................................................................................362
Serial Mode Control Register (SMR0/1) .......................................................................................364
Serial Status Register (SSR0/1) ..................................................................................................366
Serial Input Data Register (SIDR0/1) and Serial Output Data Register (SOR0/1) ........................368
Communication Prescaler Control Register (CDCR0/1) ................................................................370
UART Interrupts ..................................................................................................................................372
Reception Interrupt Generation and Flag Set Timing ....................................................................374
Transmission Interrupt Generation and Flag Set Timing ...............................................................375
UART Baud Rates ..............................................................................................................................376
Baud Rates Determined Using the Dedicated Baud Rate Generator ............................................378
Baud Rates Determined Using the Internal Timer (16-bit Reload Timer 0) ...................................382
Baud Rates Determined Using the External Clock ........................................................................384
Operation of UART .............................................................................................................................386
Operation in Asynchronous Mode (Operation Modes 0 and 1) .....................................................388
Operation in Synchronous Mode (Operation Mode 2) ...................................................................390
Bidirectional Communication Function (Normal Mode) .................................................................392
Master-slave Communication Function (Multiprocessor Mode) ....................................................394
Notes on Using UART ........................................................................................................................396
Sample Program for UART .................................................................................................................398
CHAPTER 14 DTP/EXTERNAL INTERRUPT CIRCUIT ...................................................401
14.1
Overview of the DTP/External Interrupt Circuit ...................................................................................402
14.2
Configuration of the DTP/External Interrupt Circuit ............................................................................404
14.3
DTP/External Interrupt Circuit Pins .....................................................................................................406
14.4
DTP/External Interrupt Circuit Registers .............................................................................................408
14.4.1
DTP/interrupt cause register (EIRR) ..............................................................................................409
14.4.2
DTP/interrupt enable register (ENIR) ..........................................................................................410
14.4.3
Request level setting register (ELVR) .........................................................................................412
14.5
Operation of the DTP/External Interrupt Circuit ..................................................................................414
14.5.1
External interrupt function ............................................................................................................417
14.5.2
DTP function ................................................................................................................................418
14.6
Usage Notes on the DTP/External Interrupt Circuit ............................................................................420
14.7
Sample Programs for the DTP/External Interrupt Circuit ....................................................................422
CHAPTER 15 Delayed Interrupt Generator Module ......................................................427
15.1
Overview of the Delayed Interrupt Generator Module ........................................................................428
15.2
Operation of the Delayed Interrupt Generator Module .......................................................................429
CHAPTER 16 8/10-BIT A/D CONVERTER .......................................................................431
16.1
Overview of the 8/10-Bit A/D Converter ..............................................................................................432
16.2
Configuration of the 8/10-Bit A/D Converter .......................................................................................434
16.3
8/10-Bit A/D Converter Pins ................................................................................................................436
16.4
8/10-Bit A/D Converter Registers .......................................................................................................438
16.4.1
A/D control status register 1 (ADCS1) .........................................................................................439
16.4.2
A/D control status register 0 (ADCS0) .........................................................................................442