How To Control Peripheral Devices - Canon X-07 User Manual

Table of Contents

Advertisement

2.6

How to control peripheral devices

2.6.1
Operation of peripheral devices
This section describes how to control peripheral devices using the INIT
mand. It is the general rule that, softwarewise, all peripheral devices are con­
trolled in the same manner. However, when controlling hardwares, each hard­
ware is controlled differently.
A cassette recorder (CASI, CASO), an optical coupler (OPT), a serial I/O
(COM) device and a serial I/O printer (PRT) cannot be controlled
simultaneously.
Loads from a cassette tape.
CASI:
Saves onto a cassette tape.
CASO:
Inputs/ outputs to an optical
OPT:
coupler.
Inputs/outputs to a serial I/O
COM:
device.
Inputs/outputs to a serial printer.
PRT:
These five devices use the ACIA (Asynchronous Communication Interface
Adopter) and baud rate generators. The X-07 has only one ACIA and one
baud rate generator. Therefore, it cannot open all these devices at the same
time.
Following is an explanation of other devices, and what happens at INIT#.
After the character size to a graphic printer is set to 2, the CR
GPR:
(carriage return) code and then the LF (line feed) code are sent.
Initializes a parallel I/O device and CR/LF are sent.
LPT:
When this device is initialized, the key buffer is cleared.
KBD:
When initialized, the specified program or data is searched for, and
RAM:
can be located in the RAM file.
When initialized, no function is executed.
CON:
INIT
2.6.2
#
As mentioned before, CASI, CASO, OPT, COM, and PRT devices use the
same ACIA and baud rate generator. For this reason, an unexpected error
might be generated if a program is not created carefully. Let's examine the
following program.
BEEP
and
The input buffer is cleared at INIT #
The input buffer is cleared at INIT #
The input buffer is cleared at INIT#
com
#
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents