SRM1(-V2) Interrupt Functions
Stopping the Timer
Application Example
(One-shot Mode)
Application Example
(Scheduled Interrupt Mode)
96
Use the STIM(69) instruction to stop the interval timer. The interval timer will be
stopped.
(@)STIM(69)
In this example, an interrupt is generated 2.4 ms (0.6 ms
goes ON; the interrupt executes interrupt subroutine number 23.
25315 First Cycle Flag
ON for 1 cycle
MOV(21)
MOV(21)
00005
@STIM(69)
SBN(92)
RET(93)
In this example, an interrupt is generated every 4.0 ms (1.0 ms
00005 goes ON; the interrupts execute interrupt subroutine number 23.
25315 First Cycle Flag
ON for 1 cycle
MOV(21)
MOV(21)
00005
@STIM(69)
SBN(92)
RET(93)
C
1
C
: Stop interval timer (010)
1
000
000
#0004
Sets the decrementing counter's set value to 4.
(BCD: 0000 to 9999)
DM 0010
#0006
Sets the decrementing time interval to 0.6 ms.
(BCD: 0005 to 0320)
DM 0011
Starts the interval timer in one-shot mode.
000
Specifies the first word containing the set value.
DM 0010
#0023
Specifies the subroutine number (only lower by-
tes are effective).
023
Interrupt program
#0004
Sets the decrementing counter's set value to 4.
(BCD: 0000 to 9999)
DM 0010
#0010
Sets the decrementing time interval to 1.0 ms.
(BCD: 0005 to 0320)
DM 0011
Starts the interval timer in scheduled interrupt mode.
003
Specifies the first word containing the set value.
DM 0010
#0023
Specifies the subroutine number (only the lower by-
tes are effective).
023
Interrupt program
Section
2-4
4) after input 00005
4) after input
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?