17
Interrupt lnterface
The 9995 allows the interfacing of up to three external interrupts as well as a reset line. The interrupts are as
follows in order of priority.
A) RESET.
B) NMI.
C) INTI.
D) INT4.
Each interrupt will now be dealt with in more detail.
A)
RESET - IC31 PIN 7
This signal is the main processor reset, which is produced on power on, or when the +5v line falls below
+4.5v.
The output from the device is used to reset a counter within IC15, which produces a long reset pulse of
approximately 4 seconds on IC15 pin 27.
B)
NMI - IC16 PIN21
The non-maskable interrupt, NMI, is the next highest priority interrupt. This is used for major system
interrupts, where four separate interrupts are ored together to produce an NMI interrupt. These are:
(1) Mains Failure
(2) Invalid Memory Access.
(3) Watchdog timeout.
(4) On board switch (as Lev 3 in system 80).
All NMI processing is performed within IC16.
(1) Mains Failure NMI
The highest priority interrupt within the NMI interrupt is mains failure.
An AC winding from the power supply of 48v peak to peak is rectified by D23. The signal is used to
reset a counter, which has a timeout period of approximately 30 msec. If the mains is not present, the
counter will timeout and proved an interrupt source for an NMI.
(2) Invalid Memory Access NMI
The next highest NMI is the invalid memory access interrupt. If at any time the software attempts to
write to a ROM location or execute code in RAM, an invalid memory access will generate an NMI
at the processor.
(3) Watchdog Timeout NMI
The next highest NMI is the watchdog timeout interrupt. During normal execution of code, the
watchdog is strobed. This line is used to reset a counter, which has a timeout period greater than the
period used to set and reset watchdog strobe. If the software is caused to function incorrectly, and
this line is not strobed (due to static etc.) the counter will timeout, thus setting up the requirements
for an NMI.
(4) Reset Switch NMI
The last NMI interrupt source is the reset switch (Lev 3 in system 80) used for software resetting of
RAM after any RAM corruption. Closure of this switch will set up the conditions for an NMI to be
generated.
C) INTI - UART Interrupt
Interrupt 1, IC16 pin 15 is sourced via IC15 pin 29. The two inputs URT1 and URT2 are the interrupt outputs
from the two on-board UARTS, IC5 pin 1 and IC10 pin 1 respectively. A low level on either will define an
interrupt condition.
D) INT4- Meter Interrupt
On removal of the meter plug HD9, IC16 pin 14 will go low to produce an interrupt.
Содержание MPS2
Страница 2: ...2 ...
Страница 10: ...7 ...
Страница 15: ...12 ...
Страница 16: ...13 ...
Страница 17: ...14 ...
Страница 24: ...21 ...
Страница 25: ...22 ...
Страница 26: ...23 ...
Страница 27: ...24 ...
Страница 28: ...25 ...
Страница 29: ...26 ...
Страница 30: ...27 ...
Страница 31: ...28 ...
Страница 34: ...31 ...
Страница 35: ...32 ...
Страница 36: ...33 ...
Страница 38: ...35 ...
Страница 39: ...36 ...
Страница 40: ...37 ...
Страница 41: ...38 ...
Страница 42: ...39 ...
Страница 43: ...40 ...
Страница 45: ...42 ...
Страница 46: ...43 ...
Страница 47: ...44 ...
Страница 48: ...45 ...
Страница 49: ...46 ...
Страница 50: ...47 ...
Страница 51: ...48 ...
Страница 52: ...49 ...
Страница 53: ...50 ...
Страница 54: ...51 ...
Страница 55: ...52 ...
Страница 56: ...53 ...
Страница 57: ...54 ...