
5.17.2 RS-232, Serial IR and IrDA Communications
Baud rate:
Eight options - 115200, 76800, 57600, 38400, 19200, 9600, 4800, 2400
Data bits:
7 or 8
Parity:
Even, Odd, or None
Stop bit:
1
Flow Control (RS-232 only):
RTS/CTS, XON/XOFF, or None
COM_DELIMITER
Purpose
To change the delimiter of COM port sending and receiving string.
Syntax
COM_DELIMITER(N%, C%)
Remarks
"N%" is an integer variable, indicating which communication port is to be set.
"C%" is an integer variable, standing for the ASCII code of the delimiter character,
in the range of 0 to 255. If it is negative, no delimiter will be applied.
Example
COM_DELIMITER(1,10) ' use the Line-feed character as delimiter
GET_CTS
Purpose
To get the CTS level from the direct RS-232 port.
Syntax
A% = GET_CTS(N%)
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
1
CTS OFF
CTS ON
"N%" is an integer variable, indicating which communication port the user intends
to get the CTS level for.
Example
A% = GET_CTS(1)
See Also
SET_RTS
Comentarios a estos manuales