Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 99

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Library Commands
SETCOM
Set Up RS-232C Communications
sETCOM {
A=(baud rate, word length, parity, stop bits),
B=(baudrate, word length, parity, stop bits)}
A={options)teffsTRSDOS to initialize channel A.
To turnchannelAoff, .use A=OFF instead of A
=
(options)
If A = (options)isornitted, status of channel A is unchanged.
B={options)t~llsTR$D()Sto
initialize channel B.
Tatum channelBoff,use B=OFF.
If B = (options) is omitted, status of channel B is unchanged.
The options teU TRSDOS what RS-232C parameters to use. The fOllOWJrlg
parameters are available:
baudrate
110, 150,300,600, 1200,2400,4800,9600
If not specified, 300 is used.
word length
5,6,7,8
If not specified, 7 is used.
parity
E foreven, 0 for odd, N for none
If not specified, even is used.
stop bits
1, 2
If not specified, 1 is used.
Every option but the lastmust be followed by a comma. The options are
positional,e.g..,thethird item in an option list must always specify parity.To
use a default value, omit the option. If you want to list subsequentopJions,
you must include a comma fbr each default.
SETCOMwithout any options tells TRSDOS to display the status of
both serial channels.
This command initializes RS-232C communications via channels A and B on
the back panel. Before executing it, you should connect the communications
device (modem, etc.) to the Model II.
To change the settings on a currently active channel, you must first turn the
channel otT.
If
the channel is already off when you try to turn it off, you'll get
an error message.
See the Model II Operation Manual for a description OfRS-232C signals used in
channels A and B. For hard-wired connection from one Model II to another,
see the wiring diagram in Technical Information, RS232C supervisor call.
SETCOM uses the Special Programming Area above TOP (see Memory
Requirements). To use the serial I/O channels from BASIC you must execute
SETCOM before starting BASIC.
135

Advertisement

loading