beautypg.com

Remote Processing RPC-330 User Manual

Page 42

background image

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
r o u ti ne to s er v ic e it . J um p e r H 2 [ 5- 6 ]. B r in g in g P 2- I N T
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 RETU RN is used, then the next
interrupt is disabled.