
192
The following program shows the overall structure and operation of the
scheduled interrupt.
Here, the scheduled subroutine is started and will be repeated every 20 ms.
The control flow logic of the main program is unaffected by execution of the
scheduled subroutine, i.e., immediately after the sub
routine has finished execution, control returns to the point in the main pro-
gram where it was suspended.
SBN(92) 99
INT(89)
000
004
#0002
RET(93)
INT(89)
001
004
#0002
25315
Main program
Subroutine
Set at 20 ms.
Main program execution
Interrupts every 20 ms
Returned from
scheduled
interrupt rou-
tine
First Cycle Flag
Address Instruction Operands Address Instruction Operands
00000 LD 25315
00001 INT(89)
001
004
# 0002
00002 INT(89)
000
004
# 0002
Main program.
00500 SBN(92) 99
Subroutine.
00600 RET(93)
Example
Subroutines and Interrupt Control Section 5-20
Kommentare zu diesen Handbüchern