EXTERNAL INTERRUPT SECTION 12
Page 12-2 RPC-330
Figure 12-1 Optically isolated and TTL interrup ts
PROGRAM EXAMPLE
The following program enables interrupts and goes to a
routine to service it. Jumper H2[5-6]. Bringing P2-INT
to ground causes an inter rupt.
10 ONITR 0, 500
30 GOTO 30
500 PRINT "Got Interrupt"
510 RETI
Line 510 is necessary to re-enable interrupts. If this line
is not executed, but a RETURN is used, then the next
interrupt is disabled.
Commentaires sur ces manuels