Specifications

529
Appendices
Appendix D
I/O Ports
Input Ports
A user program can monitor the hardware status through the input ports by using the WAIT
statement or INP function. BHT-BASIC defines each of these ports as a byte. The table
below lists the input ports and their monitoring function in the BHT.
Port No.
Bit
assign-
ment
Monitors the following:
.pnEvent 0 0 Keyboard buffer
and touch key
buffer
-
0
No data
.pvEvKeyOn
1
Data stored
1 Barcode buffer
0
No data
.pvEvBarOn
1
Data stored
2 Trigger switch
*1
-
0
OFF
.pvEvTrgOn
1
ON
3 Receive buffer -
0
No data
.pvEvtCmOn
1
Data stored
4 Value of TIMEA
function
-
0
Nonzero
.pvEvTma0
1
Zero
5 Value of TIMEB
function
-
0
Nonzero
.pvEvTmb0
1
Zero
6 Value of TIMEC
function
-
0
Nonzero
.pvEvTmc0
1
Zero
7 CS (CTS) signal
*2
-
0
OFF or file
closed
.pvEvCsOn
1
ON
.pnLCDCnt 3 2-0 LCD contrast
level
*3
0 to 7 (0: Lowest, 7: Highest)
.pnMgLng 4 0 Message version
*4
.pvSysMSG
0
Japanese
.pvEnglish
1
English