first | Baud rate | |
second | Parity, | n(none), e(even), or o(odd) |
third | Data bit length, | 7 or 8 |
fourth | Stop bit length, | 1, 1.5, or 2 |
fifth | Flow control, | x (xon/xoff)or p (hardware handshake) |
Receiving is done with a buffer.
You can check the byte length of data received in the buffer using
ASK #n CHARACTER PENDING n
Virtual COM-ports, which are not RS-232C devices, can also be used.
Port numbers greater than 10 are available too.
You must agree the line-end code with the opposite. It can be done as follows.
SET #n ENDOFLINE CHR$(13)