Tandy 1000 Basic Reference Manual page 249

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Keywords
The
PE
option enables parity checking. With the option on, par-
ity errors cause Device
IiO
errors and turn on the high order bit
for 7 or fewer data bits. The default is no parity checking. Fram-
ing and overrun errors always cause Device IiO errors and turn
on the high order bit, regardless of whether or not you use the
PE option.
Examples
OPEN "CUM1
: "
A S
1
opens Buffer 1 for Communications Channel 1 at a rate of 300
bps with even parity, 7 data bits, and 1 stop bit. RTS is sent.
OPEN " C O M 2 : 9 6 0 0 , N , 8 , 1 ,BIN"
A S
2
opens Buffer 2 for Communications Channel 2 at a rate of 9600
bps with no parity, 8 data bits, and 1 stop bit. The data is
binary.
O P E N "COM1
:
4 8 0 0 , ,
,
, C S 3 0 0 0 ,DS2000"
A S
1
opens Buffer 1 for Communications Channel 1 at a rate of 4800
bps with even parity, 7 data bits, and 1 stop bit. RTS is sent.
OPEN COM issues a "Device Timeout" error if there is no CS
signal after 3 seconds and no DS signal after 2 seconds. Note
that even though parity, data, and stop are not included, the
commas are required.
247

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents