Table of Contents

OpenSerial (Statement)

Format

openserial open_file_number, port_name
openserial open_file_number, port_name, baud_rate
openserial open_file_number, port_name, baud_rate, data_bits
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits, parity
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits, parity, flow_control

Description

This statement opens a serial port on your computer for inoput and output. It uses the same file numbering as open and openb and most of the file control statements can be used to get and send data to a serial port.

Baud Rates

300
1200
9600DEFAULT
19200
38400
Others are possible

Data Bits

5
6
7
8DEFAULT

Stop Bits

1DEFAULT
2

Parity

0NoneDEFAULT
1Odd
2Even
3Space
4Mark

Flow Control

0NoneDEFAULT
1Hardware
2Software

Note

BASIC256 may have up to 8 files open at a single time. The files are numbered from 0 to 7. Opening a file to a number while another is already open to that number will close the open file.

See Also

2016/01/01 22:42

History

1.1.4.0New