
Chapter 14. Statement Reference
288
■
charalength
charalength
is a character length or the number of data bits. It should be
8
(default) or
7
bits.
■
stopbit
stopbit
is the number of stop bits. It should be
1
(default) or
2
bits.
■
RS/CS
RS/CS
enables or disables the RS/CS control. It should be
0
(default),
1
,
2
,
3
,
or
4
, which corresponds to the following function:
As listed above, you can specify
RS/CS
option for the direct-connect interface.
If you specify it for the IrDA interface, it will be ignored resulting in no run-time
error.
RS/CS
option is also applicable to Busy control when the direct-connect inter-
face is used. To do so, interface cable connection should be modified. For
details, refer to the BHT User’s Manual.
Shown below is a coding sample for enabling the RS/CS control.
OPEN "COM:,,,,1" AS #16
■
timeout
timeout
is a maximum waiting time length until the CS signal goes ON after
the BHT becomes ready to send data. It should be 0 to 255 in increment of 100
ms.
Specification of zero (0) causes no timeout.
To make the direct-connect interface support timeout, the
RS/CS
option should
be set to "2" or "3" so that the RD signal is regarded as CS. If any of "0," "1,"
and "4" has been set to the
RS/CS
option, the value of the
timeout
option will
be modified.
The IrDA interface does not support timeout. If specified, the
timeout
option
will be ignored resulting in no run-time error.
NOTE
The IrDA interface is compliant with the IrDA physical layer (IrDA-
SIR1.0), so the vertical parity, character length, and stop bit length are
fixed to none, 8 bits, and 1 bit, respectively. If selected, those parameters
will be ignored.
Value of
RS/CS
IrDA I/F
Direct-connect I/F
0
(default)
Ignored
1
Ignored
2
Ignored
High RD will be regarded as a high CS.
3
Ignored
Low RD will be regarded as high CS.
4
Ignored
CS control disabled
(RD will be used as an input port.)
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...