User’s Manual
External Interrupts
E–3
E.2
Single-Interrupt Request
Tie the inputs for external interrupt #1 and #0
together by adding a 1 k
Ω
resistor between the two
lines. Under this configuration, shown in Figure E–
4, both interrupt #1 and #0 will be requested when
an edge is detected. The #1 interrupt will take place
first since it is of a higher priority.
The interrupt service routine for interrupt #1 should
ignore the interrupt. The actual service routine will
be the service routine for interrupt #0. If an interrupt
is lost, it will always be #1 and never #0. The 1 k
Ω
resistor delays the edge slightly so that interrupt #1
is guaranteed to be latched earlier or simultaneously
with interrupt #0. It is important that the programmed
priority of interrupt #1 be higher than or equal to the
programmed priority of interrupt #0. Normally they
should be equal.
Spurious interrupts, which occur because of a fail-
ure to clear the request latch, are a possibility only if
there are other interrupts of higher priority than
external interrupt #1 and #0. These can only be the
result of programming one of the on-chip periph-
eral interrupts to have a higher interrupt priority.
This could be the case, for example, if the external
interrupts are programmed to have priority 1, and
one of the serial port interrupts is programmed to
have priority 2. Spurious interrupts can always be
eliminated by programming both external interrupts
to have a priority equal to the highest priority used
for another device. The priority can be reduced on
entry to the service routine to avoid blocking the
true high-priority interrupts. External interrupt #1
cannot cause interrupt #0 to have a spurious inter-
rupt or vice versa. In some cases, spurious interrupts
may not disturb function, but the fix is so simple
that it is not usually worth the trouble to analyze this
possibility.
E.3
OR’ed Interrupt Request
Tie the inputs for external interrupt #1 and #0
together by adding a 1 k
Ω
resistor. This configura-
tion is shown in Figure E–5.
Figure E–4:
RabbitCore RCM2200 Configuration
for Single-Interrupt Request
Interrupt Request #1
INT1A
Interrupt Request #0
INT0A
Edge
Detectors
1 k
W
Interrupt Request
Figure E–5:
RabbitCore RCM2200 Configuration
for OR’ed Interrupt Request
Edge
Detectors
Interrupt Request #1
INT1A
Interrupt Request #0
INT0A
1 k
W
OR'ed Interrupt
Request
1 k
W
INT0B
INT1B
OR'ed Interrupt
Request
Содержание RCM2200
Страница 1: ...RabbitCore RCM2200 C Programmable Module with Ethernet User s Manual 019 0097 010418 A...
Страница 6: ...vi RabbitCore RCM2200...
Страница 10: ...1 4 Introduction RabbitCore RCM2200...
Страница 20: ...2 10 Hardware Reference RabbitCore RCM2200...
Страница 26: ...3 6 Software Reference RabbitCore RCM2200...
Страница 36: ...A 10 RabbitCore RCM2200 Specifications RabbitCore RCM2200...
Страница 42: ...C 4 Programming Cable RabbitCore RCM2200...
Страница 48: ...D 6 Sample Circuits RabbitCore RCM2200...
Страница 50: ......
Страница 52: ...E 4 External Interrupts RabbitCore RCM2200...
Страница 57: ...C NONE...
Страница 60: ......