RS-232 Handler Functions and Tables
This section contains a list of all input/output and XIO calls to the RS-232 "R:" handler of the MIO.
Note that IOCB is an input/output channel number that indicates what OPEN device shall receive or
provide data. For most XIO calls, you may use any legal IOCB number as long as it is NOT open to
any other device. From Atari BASIC, you may use IOCB numbers 1 through 7 (0 is reserved for
editing "E:" I/O).
Note that IOCB #7 is used for the BASIC LPRINT statement and IOCB #6 is used for graphics mode
functions from BASIC. Also, if using SpartaDOS, IOCB #4 and IOCB #5 are used while doing output
and input redirection respectively (via the DOS PRINT command and batch files).
All the syntaxes use just "R:" for the device name since there is only one RS-232 port on the MIO. In
fact, if you do use a port number (ex. "R2:"), it is simply ignored and treated the same as "R:".
All the function formats are given in their Atari BASIC form. If using assembly language or some
other high level language, refer to the language manual for its equivalent form.
Opening the RS-232 Port
Syntax
OPEN #IOCB,Aux1,0,"R:"
Remarks
This function opens a channel to the RS-232 port in pseudo "non-concurrent" mode. To remain
compatible with the 850 and P:R: Connection, the MIO has a flag indicating whether an XIO 40 (set
concurrent mode) has been performed since the last OPEN command. If it has not, then the
STATUS command returns the state of the handshake lines, whereas if in concurrent mode, the
STATUS command returns the number of characters in the input and output buffers.
Aux1 contains the I/O direction bits — 4 for input only, 8 for output only, and 12 for both input and
output (which is equivalent to 13 of the 850 interface). Many XIO calls do not require that you open
an RS-232 channel first, however, it is generally a good practice to open the channel first. Care
should be taken when setting the state of the handshake lines; if you set DTR false, the transmitter
and receiver are disabled. Therefore, you must re-enable them by setting DTR true before
continuing with normal operation.
When the channel is opened, both the input and output buffers are cleared. Also, the RTS and DTR
handshake lines are set true (to the ready state).
Closing the RS-232 Port
Syntax
CLOSE #IOCB
Remarks
This statement closes the IOCB connected to the RS-232 port. This simply shuts down the IOCB;
the RS-232 port remains untouched except that the system waits until all data in the output buffer
has been transmitted.
MIO Service Manual
Page 65
Содержание Mio
Страница 1: ......
Страница 3: ...MIO Service Manual Page 2 ...
Страница 4: ...MIO Service Manual Page 3 ...
Страница 5: ...MIO Service Manual Page 4 ...
Страница 6: ...MIO Service Manual Page 5 ...
Страница 7: ...MIO Service Manual Page 6 ...
Страница 8: ...MIO Service Manual Page 7 ...
Страница 10: ...U1 74LS20 DUAL 4 INPUT NAND GATE MIO Service Manual Page 9 ...
Страница 11: ...U2 U12 U24 74LS175 QUAD D FLIP FLOP MIO Service Manual Page 10 ...
Страница 12: ...MIO Service Manual Page 11 ...
Страница 13: ...U3 U4 74LS138 3 TO 8 LINE DECODER MIO Service Manual Page 12 ...
Страница 14: ...MIO Service Manual Page 13 ...
Страница 15: ...U5 7407 HEX BUFFER DRIVER MIO Service Manual Page 14 ...
Страница 16: ...U6 6551 ASYNCHRONOUS COMMUNICATION INTERFACE ADAPTER ACIA MIO Service Manual Page 15 ...
Страница 17: ...MIO Service Manual Page 16 ...
Страница 18: ...MIO Service Manual Page 17 ...
Страница 19: ...MIO Service Manual Page 18 ...
Страница 20: ...MIO Service Manual Page 19 ...
Страница 21: ...MIO Service Manual Page 20 ...
Страница 22: ...MIO Service Manual Page 21 ...
Страница 23: ...U7 U10 74LS04 HEX INVERTER MIO Service Manual Page 22 ...
Страница 24: ...U8 74LS02 QUAD 2 INPUT NOR GATE MIO Service Manual Page 23 ...
Страница 25: ...U9 U25 74LS93 4 BIT BINARY COUNTER MIO Service Manual Page 24 ...
Страница 26: ...MIO Service Manual Page 25 ...
Страница 27: ...MIO Service Manual Page 26 ...
Страница 28: ...U11 74LS10 TRIPLE 3 INPUT NAND GATE MIO Service Manual Page 27 ...
Страница 29: ...U13 U21 U67 U69 74LS00 QUAD 2 INPUT NAND GATE MIO Service Manual Page 28 ...
Страница 30: ...U14 U26 U29 U49 U68 74LS244 OCTAL BUFFER LINE DRIVER WITH TRI STATE OUTPUTS MIO Service Manual Page 29 ...
Страница 31: ...U15 27C128 16K x 8 EPROM MIO Service Manual Page 30 ...
Страница 32: ...U16 U20 74LS73A DUAL J K FLIP FLOP WITH CLEAR MIO Service Manual Page 31 ...
Страница 33: ...MIO Service Manual Page 32 ...
Страница 34: ...MIO Service Manual Page 33 ...
Страница 35: ...U17 MC1489P QUAD LINE RECIEVER MIO Service Manual Page 34 ...
Страница 36: ...U18 LM3086 TRANSISTOR ARRAY MIO Service Manual Page 35 ...
Страница 37: ...U19 74HC4046 PHASE LOCKED LOOP MIO Service Manual Page 36 ...
Страница 38: ...MIO Service Manual Page 37 ...
Страница 39: ...MIO Service Manual Page 38 ...
Страница 40: ...MIO Service Manual Page 39 ...
Страница 41: ...MIO Service Manual Page 40 ...
Страница 42: ...MIO Service Manual Page 41 ...
Страница 43: ...MIO Service Manual Page 42 ...
Страница 44: ...U22 74LS139 DUAL 1 OF 4 DECODER DEMULTIPLEXER MIO Service Manual Page 43 ...
Страница 45: ...MIO Service Manual Page 44 ...
Страница 46: ...U23 74LS158 QUAD 2 INPUT MULTIPLEXER MIO Service Manual Page 45 ...
Страница 47: ...MIO Service Manual Page 46 ...
Страница 48: ...U27 U48 74LS374 OCTAL D TYPE FLIP FLOP POSITIVE EDGE TRIGGER TRI STATE MIO Service Manual Page 47 ...
Страница 49: ...MIO Service Manual Page 48 ...
Страница 50: ...U28 74LS240 OCTAL BUFFER LINE DRIVER WITH 3 STATE OUTPUTS MIO Service Manual Page 49 ...
Страница 51: ...U47 MDP1603 330G AND U50 MDP1605 221 331G DIP PACKAGE RESISTOR NETWORKS MIO Service Manual Page 50 ...
Страница 52: ...MIO Service Manual Page 51 ...
Страница 53: ...MIO Service Manual Page 52 ...
Страница 54: ...MIO Service Manual Page 53 ...
Страница 55: ...MIO Service Manual Page 54 ...
Страница 56: ...MIO Service Manual Page 55 ...
Страница 57: ...MIO Service Manual Page 56 ...
Страница 58: ...MIO Service Manual Page 57 ...