Communication commands Reprogramming the serial ports SERIAL channel SERIAL channel baudrate rxbits txbits parity stopbits This command reprograms one of the 1616’s serial channel’s operation modes. If only the channel name or is used, it displays the current setting of the channel in question. The arguments are used as follows: channel This must be the letter ‘A’ or the letter ‘B’, depending upon which serial channel you are reprogramming. baudrate This is the desired transmit and receive baud rate. It may be any of thestandardrates,upto38,400baud.
Youmayspecifynon-standard baud rates if you wish, however 38,400 is the suggested maximum, and baud rate accuracy will suffer if you specify non-standard rates which are above 2400 baud. Remember to add the leading . if specifying this in decimal! Actually, much faster baud rates can be obtained, however above about 57k, there is a problem entering the correct rates. rxbits This number specifies the number of received bits. It may be 5, 6, 7 or 8. txbits This number specifies the number of transmitted bits. It may be 5, 6, 7 or 8. parity This number sets the transmit and receive parity. 0 sets no parity, 1 sets odd parity, 2 sets even parity.
stopbits This sets the number of transmitted stop bits. Specifying a ‘0’ gives 1 stop bit, a ‘1’ gives 1.5 stop bits and a ‘2’ gives 2 stop bits. Example: serial b .4800 7 7 2 0 Programs serial channel B for 4800 baud input and output, 7 receive data bits, 7 transmit data bits, even parity and one stop bit. If running 7 data bits and parity, there was a problem prior to V3.2. The parity bit is not stripped by either the SCC or by the TERMA or TERMB routines in some earlier version of 1616/OS . This may lead to strange graphics characters being included in your transferred material.
The serial receive routine masks incoming 7 bit characters by ANDing them with $7F, 6 bit characters with $3F, and 5 bit characters with $1F, to keep Andrew McNamara happy. 1616/OS Commands User Tutorial Manual Page 95