253
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Type 2
Type 2 escape sequence is not based on any timing. Escape
sequence consists of escape character (defined by the ser.escchar
property) followed by any character other than escape character. To
receive a data character whose ASCII code matches that of escape
character the serial port must get this character twice. This will
result in a single character being recorded into the RX buffer.
The following sequence will be recognized as escape sequence (that
is, if current escape character is not 'D'):
ABC
D
In the sequence below two consecutive escape characters will be
interpreted as data (data recorded to the RX buffer will contain only
one such character):
ABC
.Flowcontrol Property
Function:
Sets/returns flow control mode for currently selected
serial port (selection is made through
)
Type:
dis_en (enum, byte)
Value Range:
0- DISABLED (default)
1- ENABLED
See Also:
,
Details
= 0- PL_SER_MODE_UART and
0- PL_SER_SI_FULLDUPLEX (full-duplex). Flow control uses two serial port
lines- RTS and CTS- to regulate the flow of data between the serial port of your
device and another ("attached") serial device.
Depending on your platform, you may be allowed to remap RTS and CTS lines to
other I/O pins of the device through the
and
properties. Also, you may be required to correctly configure RTS and CTS lines as
an input and output through the
object. See
"Platform-dependent Programming Information" topic inside your platform
specifications section.
When the flow control is disabled both RTS and CTS lines are not used by the serial
port and become regular I/O lines that can be controlled through the
object.
.Getdata Method
Function:
For the selected serial port (selection is made through
) returns the string that contains the data
extracted from the RX buffer.
Syntax:
ser.getdata(maxinplen as word) as string
Returns:
String containing data extracted from the RX buffer
257
226
236
255
255
261
249
370
365
365
257