EXTERNAL INTERRUPT
DESCRIPTION
There are tw o sources of interrupts the ONITR statement respond s to: Inter nal and exter nal. Exter nal interr upts are off
External interrupts are used to "w
Signals to
W8 P in | Description |
External TTL level through P2 (INT) | |
| or optically isolated through P2 (ISOA |
| & ISO B) |
Carry or borr ow pulse from counter | |
Carry pulse from counter | |
Borrow pulse from counter |
ONINT selection is through jumper W8. This chapter descr ibes using exter nal inter rupts P
External interrupt at
OPTICALLY ISOLATED INTERRUPT
ISOA and ISOB provide an isolated, higher voltage input. Neither input is connected to ground or + 5V and is isolated to the card by at least 500 volts.
An external voltage of at least 3.5 volts, any polarity, will generate an interrupt. Higher voltages may be used provided a ser ies resistor is in line to the supply. Use the following formula to determine the series resistor needed.
Rs = (Vi - 6) / .005
Where: Vi = input voltage
No series resistor is needed when Rs is negative.
SECTION 12
INTERRUPT CHARACTERISTICS
Interrupts are negative going edge sensitive. This means an interrupt is detected when
The status of the interrupt or ISOA/B line is read using the following statement:
100 A = LINE(8)
When A = 1, P
The
PROGRAM EXAMPLE
The following program enables interrupts and goes to a routine to service it . Jumper W8[1- 2] and bring P2- INT to ground to see this example work.
10ONITR 500
30GOTO 30
500 PRINT "Got Interrupt"
510 RETI
Line 510 is necessary to
ONT ICK is also d isabled. If your pr ogram requir ements require disabling all interrupts for a time, then the RETI statement can be executed within any subroutine to re-
Page