
7-6
Section
Details of BASIC Commands
224
time$ on/off/stop
Syntax:
TIME
$ (
ON
|
OFF
|
STOP
)
Description:
Statement. Enables, disables or stops the time$ interrupt defined by the
ON TIME
$ statement.
Remarks:
ON
enables (unmasks) the time$ interrupt. When a time$ interrupt occurs, program execution will
be branched to the specified interrupt subroutine for interrupt processing. The time$ interrupts are
enabled until they are disabled with the
TIME
$
OFF
statement.
OFF
disables the interrupt. All subsequent time$ interrupts are ignored.
STOP
masks and enables the interrupt. If a time$ interrupt is received, it is stored in memory but
program execution is not branched to the interrupt subroutine. Program execution will be
branched to the subroutine when the interrupt is unmasked with the
TIME
$
ON
statement.
The
TIME
$
ON
/
OFF
/
STOP
statements can be executed only after the
ON TIME
$ statement has been
executed.
Examples:
> 10 ON TIME$ = “08:00:00” GOTO 100
> 20 TIME$ ON
> 30 GOTO 30
> 100 PRINT “WAKE-UP!!!”
> 110 RETURN
See also:
ON TIME
$
timer on/off/stop
Syntax:
TIMER
(
ON
|
OFF
|
STOP
)
Description:
Statement. Enables, disables or stops the timer interrupt.
Remarks:
ON
enables (unmasks) the timer interrupt. When a timer interrupt occurs, program execution will
be branched to the specified interrupt subroutine for interrupt processing. The timer interrupts are
enabled until they are disabled with the
TIMER OFF
statement.
OFF
disables the interrupt. All subsequent timer interrupts are ignored.
STOP
masks and enables the interrupt. If a timer interrupt is received, it is stored in memory but
program execution is not branched to the interrupt subroutine. Program execution will be
branched to the subroutine when the interrupt is unmasked with the
TIMER ON
statement.
The
TIMER ON
/
OFF
/
STOP
statements can be executed only after the
ON TIMER
statement has been
executed.
Examples:
> 10 T = 0
> 20 ON TIMER 30 GOSUB 100
> 30 TIMER ON
> 40 GOTO 40
> 100 T = T+3
> 110 PRINT T; “SECONDS HAVE ELAPSED SINCE THE START OF
EXECUTION.”
> 120 RETURN
See also:
ON TIMER
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...