
525
CHAPTER 18 DTP/EXTERNAL INTERRUPT CIRCUIT
18.5
Operation of the DTP/External Interrupt Circuit
The DTP/external interrupt circuit provides the external interrupt function and the DTP
function. This section describes the settings required for each function and the
operation of the circuit.
■
Setting the DTP/external Interrupt Circuit
Figure 18.5-1 shows the settings required to operate the DTP/external interrupt circuit.
Figure 18.5-1 DTP/external Interrupt Circuit
Set the DTP/external interrupt circuit registers with the following procedure:
1. Set as an input port the general I/O port to be used also as a pin to input external interrupts.
2. Set the target bit of the DTP/interrupt enable register (ENIR) to disable interrupts.
3. Set the target bit of the request level setting register (ELVR).
4. Clear the target bit of the DTP/interrupt cause register (EIRR).
5. Set the target bit of the DTP/interrupt enable register (ENIR) to enable interrupts.
The procedure for setting the DTP/external interrupt circuit registers must start with disabling the output of
external interrupt requests (ENIR:EN7 to EN0 = 0). Before the output of external interrupt requests can be
enabled (ENIR:EN7 to EN0 = 1), the corresponding interrupt request flag bits must be cleared (ENIR:EN7
to EN0 = 0).
This is in order to avoid interrupt requests from being generated accidentally while the registers are being
set.
ICR0
8
/ICR07
IC
S3
IC
S
2 IC
S
1 IC
S
0 I
S
E
IL2
IL1
IL0
IC
S3
IC
S
2 IC
S
1 IC
S
0 I
S
E
IL2
IL1
IL0
EN7 EN6 EN5 EN4 EN
3
EN2 EN1 EN0
ER7 ER6 ER5 ER4 ER
3
ER2 ER1 ER0
EIRR/
ENIR
For the extern
a
l interr
u
pt f
u
nction
:
:
:
:
:
1
U
s
ed
S
et the
b
it corre
s
ponding to the
b
it
us
ed to 1
0
For the DTP f
u
nction
LB
3
LA
3
LB2 LA2 LB1 LA1 LB0 LA0
LB7 LA7 LB6 LA6 LB5 LA5 LB4 LA4
ELVR
P16 P15 P14 P1
3
P12 P11 P10
DDR1
S
et the
b
it corre
s
ponding to the
b
it
us
ed to 0
S
pecifie
s
0
S
pecifie
s
1
ICR05/ICR04
or
DDR6
P6
3
7
0
6
5
4
3
2
1
15
b
it
8
14
1
3
12
11
10
9
Содержание MB90460 Series
Страница 1: ...The following document contains information on Cypress products ...
Страница 3: ......
Страница 5: ......
Страница 9: ...iv ...
Страница 41: ...22 CHAPTER 1 OVERVIEW ...
Страница 45: ...26 CHAPTER 2 NOTES ON HANDLING DEVICES ...
Страница 83: ...64 CHAPTER 3 CPU ...
Страница 95: ...76 CHAPTER 4 RESET ...
Страница 107: ...88 CHAPTER 5 CLOCK ...
Страница 131: ...112 CHAPTER 6 LOW POWER CONSUMPTION MODE ...
Страница 175: ...156 CHAPTER 7 INTERRUPT ...
Страница 181: ...162 CHAPTER 8 MODE SETTING ...
Страница 223: ...204 CHAPTER 9 I O PORT ...
Страница 237: ...218 CHAPTER 10 TIME BASE TIMER ...
Страница 247: ...228 CHAPTER 11 WATCHDOG TIMER ...
Страница 275: ...256 CHAPTER 12 16 BIT RELOAD TIMER ...
Страница 373: ...354 CHAPTER 14 MULTI FUNCTIONAL TIMER ...
Страница 485: ...466 CHAPTER 16 PWC Timer ...
Страница 531: ...512 CHAPTER 17 UART ...
Страница 559: ...540 CHAPTER 19 DELAYED INTERRUPT GENERATOR MODULE ...
Страница 589: ...570 CHAPTER 20 8 10 BIT A D CONVERTER ...
Страница 601: ...582 CHAPTER 21 ROM CORRECTION FUNCTION ...
Страница 633: ...614 CHAPTER 23 512K 1024K BIT FLASH MEMORY ...
Страница 645: ...626 CHAPTER 24 EXAMPLE OF F2 MC 16LX MB90F462 F462A F463A CONNECTION FOR SERIAL WRITING ...
Страница 715: ...696 APPENDIX ...
Страница 716: ...697 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 739: ......