NEC mPD789101 User Manual page 209

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(3) External interrupt mode register 0 (INTM0)
This register is used to set the valid edge of INTP0 to INTP2.
INTM0 is set with an 8-bit memory manipulation instruction.
RESET input clears INTM0 to 00H.
Figure 15-4. External Interrupt Mode Register 0 Format
7
6
5
Symbol
INTM0
ES21 ES20 ES11 ES10 ES01 ES00
ES21
ES20
0
0
Falling edge
0
1
Rising edge
1
0
Setting prohibited
Both rising and falling edges
1
1
ES11 ES10
0
0
Falling edge
0
1
Rising edge
1
0
Setting prohibited
Both rising and falling edges
1
1
ES01
ES00
0
0
Falling edge
0
1
Rising edge
1
0
Setting prohibited
Both rising and falling edges
1
1
Cautions 1. Be sure to set bits 0 and 1 to 0.
2. Before setting the INTM0 register, be sure to set the corresponding interrupt mask flag
(××MK× = 1) to disable interrupts. After setting the INTM0 register, clear the interrupt
request flag (××IF× = 0), then clear the interrupt mask flag (××MK× = 0), which will enable
interrupts.
CHAPTER 15 INTERRUPT FUNCTIONS
4
3
2
1
0
0
0
INTP2 valid edge selection
INTP1 valid edge selection
INTP0 valid edge selection
User's Manual U13045EJ2V0UM00
Address
After reset
R/W
FFECH
00H
R/W
209

Advertisement

Table of Contents
loading

Table of Contents