
520
Appendix D
Appendix DAppendix D
Appendix D
I/O Ports
I/O PortsI/O Ports
I/O Ports
Input Ports
Input PortsInput 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:
-
0 No data
0
Keyboard buffer
.pvEvKeyOn
1 Data stored
-
0 No data
1 Barcode buffer
.pvEvBarOn
1 Data stored
-
0 OFF
2 Trigger switch *1
.pvEvTrgOn
1ON
-
0 No data
3 Receive buffer
.pvEvtCmOn
1 Data stored
-
0 Nonzero
4 Value of TIMEA
function
.pvEvTma0
1 Zero
-
0 Nonzero
5 Value of TIMEB
function
.pvEvTmb0
1 Zero
-
0 Nonzero
6 Value of TIMEC
function
.pvEvTmc0
1 Zero
-
0 OFF or file closed
.pnEvent 0
7 CS (CTS) signal *2
.pvEvCsOn
1ON
.pnLCDCnt 3
2-0 LCD contrast level *3 0 to 7 (0: Lowest, 7: Highest)
.pvSysMSG
0 Japanese
.pnMgLng 4
0 Message version *4
.pvEnglis
h
1 English
Comentarios a estos manuales