18
14.4
Baud Rate Generator ..................................................................................................... 351
14.4.1
Baud rate generator configuration.....................................................................................
14.4.2
Baud Rate Generator Control Register.............................................................................
14.4.3
Baud Rate Generator Operation .......................................................................................
14.4.4
Baud Rate Setting in Asynchronous Serial Interface Mode.............................................
Cautions .......................................................................................................................... 360
351
353
355
357
14.5
CHAPTER 15 EDGE DETECTION FUNCTION................................................................................ 361
15.1
Edge Detection Function Control Registers .............................................................. 361
15.1.1
External interrupt mode registers (INTM0, INTM1) ..........................................................
15.1.2
Interrupt valid edge flag registers (IEF1, IEF2) ................................................................
15.1.3
Noise protection control register (NPC) ............................................................................
Edge Detection for Pin P20........................................................................................... 367
Pin Edge Detection for Pins P21 to P27 ..................................................................... 368
Cautions .......................................................................................................................... 369
361
364
366
15.2
15.3
15.4
CHAPTER 16 INTERRUPT FUNCTIONS......................................................................................... 371
16.1
Interrupt Request Sources............................................................................................ 372
16.1.1
Software interrupts .............................................................................................................
16.1.2
Operand error interrupts ....................................................................................................
16.1.3
Non-maskable interrupts....................................................................................................
16.1.4
Maskable interrupts............................................................................................................
Interrupt Processing Modes ......................................................................................... 375
16.2.1
Vectored interrupt processing............................................................................................
16.2.2
Macro service .....................................................................................................................
16.2.3
Context switching ...............................................................................................................
Interrupt Processing Control Registers...................................................................... 376
16.3.1
Interrupt control registers...................................................................................................
16.3.2
Interrupt mask registers (MK0, MK1) ................................................................................
16.3.3
In-service priority register (ISPR)......................................................................................
16.3.4
Interrupt mode control register (IMC)................................................................................
16.3.5
Watchdog timer mode register (WDM)..............................................................................
16.3.6
Program status word (PSW)..............................................................................................
Software Interrupt Acknowledgment Operations ...................................................... 390
16.4.1
BRK instruction software interrupt acknowledgment operation .......................................
16.4.2
BRKCS instruction software interrupt (software context switching)
acknowledgment operation................................................................................................
Operand Error Interrupt Acknowledgment Operation............................................... 391
Non-Maskable Interrupt Acknowledgment Operation ............................................... 392
Maskable Interrupt Acknowledgment Operation ....................................................... 396
16.7.1
Vectored interrupt...............................................................................................................
16.7.2
Context switching ...............................................................................................................
16.7.3
Maskable interrupt priority levels.......................................................................................
Macro Service Function ................................................................................................ 406
16.8.1
Outline of macro service function......................................................................................
16.8.2
Types of macro service......................................................................................................
374
374
374
374
16.2
375
375
375
16.3
378
384
386
387
388
389
16.4
390
390
16.5
16.6
16.7
398
398
400
16.8
406
406