User`s guide
52
CipherLab BASIC Compiler
User's Guide
5.6 System Commands
This section describes the system commands, such as the commands to change the CPU
running speed, get the device ID, and/or restart the system.
AUTO_OFF
Purpose
To set a specified period of time for the system to automatically shut down the user
program as long as there is no operation in the interval.
If the time interval is set to zero, this function will be disabled.
Syntax
AUTO_OFF(N%)
Remarks
“N%” is an integer variable, indicating a specified period of time in units of 1
second.
Example
AUTO_OFF(30)
AUTO_OFF(0)
‘ auto off after 30 seconds
‘ disable the AUTO OFF function
See Also
POWER_ON, RESTART
CHANGE_SPEED
Purpose
To change the CPU running speed.
Syntax
CHANGE_SPEED(N%)
Remarks
“N%” is an integer variable in the range of 1 to 5, indicating the CPU running speed.
Value Meaning
1
2
3
4
5
Sixteenth speed
Eighth speed
Quarter speed
Half speed
Full speed
When the system is not heavy loaded, i.e. waiting for data input, it is suggested to
change the CPU running speed to a lower level to reduce the power consumption.
Example
CHANGE_SPEED(3)