Rpbasic-52 programming guide, Lineb – Remote Processing BASIC 52 User Manual
Page 77
RPBASIC-52 PROGRAMMING GUIDE
2-58
LINEB
(Statemen t)
Syntax:
L I N E B i/o bank,a ddress,da ta
Where: i/o bank = 0 to 7. Specific fun ctions are card de pendent. Re fer to your hardw are manu al.
address = device dependent. Usually it is 0 to 3.
data = 0 to 255, data to o utput.
Function:
Writes a byte to an I/O device.
Mode:
Comm and, Run
Use:
LIN EB3 ,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.
D E S C R IP T I ON
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 yo ur hardware m anual.
Use this command to access or program devices into modes not directly supported by RPBASIC-52.
RELATED
L I N E , L I N E #, L IN E B ( fu n c ti o n) , L I N E , L I N E # ( s ta t em e n t ), C O N F IG L I N E
E R R O R
B A D A R G U M E N T i/o bank > 7, data > 255 or negative
EXAMPLE
The follow ing exam ple writes the va lue in variable 'C' to port B on the digital I/O co nnector.
100 LINE B3,1,C