CHAPTER 14 INTERRUPT FUNCTIONS
User’s Manual U15075EJ2V1UD
274
(4) External interrupt mode register 1 (INTM1)
INTM1 is used to specify a valid edge for INTP3.
INTM1 is set with an 8-bit memory manipulation instruction.
RESET input sets INTM1 to 00H.
Figure 14-5. Format of External Interrupt Mode Register 1
0
0
0
0
0
0
ES31 ES30
INTM1
7
6
5
4
3
2
1
0
ES31
0
0
1
1
INTP3 valid edge selection
ES30
0
1
0
1
Falling edge
Rising edge
Setting prohibited
Both rising and falling edges
Symbol
Address
After reset
R/W
FFEDH
00H
R/W
Cautions 1. Bits 2 to 7 must be set to 0.
2. Before setting INTM1, set PMK3 to 1 to disable interrupts.
After that, clear (0) PIF3, then set PMK3 to 0 to enable interrupts.
(5) Program status word (PSW)
The program status word is a register used to hold the instruction execution result and the current status for
interrupt requests. The IE flag to set maskable interrupt enable/disable is mapped.
Besides 8-bit unit read/write, this register can carry out operations with a bit manipulation instruction and
dedicated instructions (EI, DI). When a vectored interrupt is acknowledged, the PSW is automatically saved
into a stack, and the IE flag is reset to 0.
RESET input sets PSW to 02H.
Figure 14-6. Configuration of Program Status Word
IE
Z
0
AC
0
0
1
CY
PSW
7
6
5
4
3
2
1
0
IE
0
1
02H
Symbol
After reset
Used when normal instruction is executed
Interrupt acknowledgement enabled/disabled
Disabled
Enabled
Содержание U789436 Series
Страница 2: ...2 User s Manual U15075EJ2V1UD MEMO ...
Страница 7: ...User s Manual U15075EJ2V1UD 7 MEMO ...