NEC 78K0 Series User Manual page 497

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

(4) External interrupt rising edge enable register (EGP), external interrupt falling edge enable register (EGN)
These registers specify the valid edge for INTP0 to INTP7.
EGP and EGN are set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to 00H.
Figure 19-5. Format of External Interrupt Rising Edge Enable Register (EGP)
Address: FF48H
After reset: 00H
Symbol
7
EGP
EGP7
Address: FF49H
After reset: 00H
Symbol
7
EGN
EGN7
EGPn
0
0
1
1
Table 19-3 shows the ports corresponding to EGPn and EGNn.
Detection Enable Register
EGP0
EGP1
EGP2
EGP3
EGP4
EGP5
EGP6
EGP7
Caution Select the port mode by clearing EGPn and EGNn to 0 because an edge may be
detected when the external interrupt function is switched to the port function.
Remark n = 0 to 7
CHAPTER 19 INTERRUPT FUNCTIONS
and External Interrupt Falling Edge Enable Register (EGN)
R/W
6
5
4
EGP6
EGP5
EGP4
R/W
6
5
4
EGN6
EGN5
EGN4
EGNn
INTPn pin valid edge selection (n = 0 to 7)
0
Edge detection disabled
1
Falling edge
0
Rising edge
1
Both rising and falling edges
Table 19-3. Ports Corresponding to EGPn and EGNn
Edge Detection Port
EGN0
P120
EGN1
P30
EGN2
P31
EGN3
P32
EGN4
P33
EGN5
P16
EGN6
P140
EGN7
P141
Preliminary User's Manual U17260EJ3V1UD
3
2
1
EGP3
EGP2
EGP1
3
2
1
EGN3
EGN2
EGN1
Interrupt Request Signal
INTP0
INTP1
INTP2
INTP3
INTP4
INTP5
INTP6
INTP7
0
EGP0
0
EGN0
497

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents