HP IBASIC Supplement 8-7
Interfacing with External Devices
Communication with Devices
Table 8-1 Writable Ports [I=WRITEIO(A,B)]
IO Type
Port,
Register,
Data
Description
WRITEIO 15,0;A Outputs 8-bit data to the Cent_DO through D7 lines of the
Centronics port. Cent_DO is the least significant bit, Cent_D7 is
the most significant bit. Sets Printer_select signal high
(de-select). Checks Centronics status lines for the following:
• OUT OF PAPER
• PRINTER NOT ON LINE
• BUSY
• ACKNOWLEDGE
WRITEIO 15,1;A Sets/clears the “user” bit according to the least significant bit of
A. A least significant bit equal to 1 sets the user bit high. A least
significant bit of 0 clears the user bit.
WRITEIO 15,2;A Sets/clears the limit pass/fail bit according to the least significant
bit of A. A least significant bit equal to 1 sets the pass/fail bit
high. A least significant bit of 0 clears the pass/fail bit.
WRITEIO 15,3;A Outputs 8-bit data to the Cent_D0 through D7 lines of the
Centronics port. Cent_D0 is the least significant bit, Cent_D7 is
the most significant bit. Sets Printer_select signal high
(de-select). Does not check Centronics status lines.
WRITEIO 9,0;A Outputs a byte to the serial port. The byte is output serially
according to the configuration for the serial port. (See above.)