
RPBASIC-52 PROGRAMMING GUIDE
2-58
LINEB (Statement)
Syntax: LINEB i/o bank,a ddress,da ta
Where: i/o bank = 0 to 7. Specific functions are card de pendent. Refer to your hardware manual.
address = device dependent. Usually it is 0 to 3.
data = 0 to 255, data to output.
Function: Writes a byte to an I/O device.
Mode: Command, Run
Use: LINEB3 ,0,A Writes valu e in A to port A of 8255 at digital port.
Card: Basic command available for all cards. Device/Function changes slightly for each card. Refer to the
hardware m anual.
DESCRIPTION
This statement is equivalent to OUT in other BASICs. Data is written 8 bits at a time. LINE and LINE #
write 1 bit at a time. The i/o bank selects a particular I/O device listed in your hardware m anual.
Use this command to access or program devices into modes not directly supported by RPBASIC-52.
RELATED
LINE, LINE#, LINEB (function), LINE, LINE# (statement), CONFIG LINE
ERROR
BAD ARGUMENT i/o bank > 7, data > 255 or negative
EXAMPLE
The following example writes the value in variable 'C' to port B on the digital I/O connector.
100 LINE B3,1,C
Komentarze do niniejszej Instrukcji