
490
■
Output Ports
A user program can control the hardware through the output ports by using the OUT statement.
BHT-BASIC defines each of these ports as a byte. The table below lists the output ports and
their controlling function in the BHT.
*1
BHT-BASIC represents the bit order by the exponent of each binary digit in the byte. For
example, bit 0 means LSB; bit 7 means MSB.
*2
The reading confirmation LED is controllable only when the bar code device file is closed.
If the file is opened, the
OUT statement will be ignored.
If you have set the confirmation LED to OFF in the
OPEN "BAR:" statement, a user pro-
gram can control the reading confirmation LED although the bar code device file is opened.
*3
The RS (RTS) signal is controllable on the optical interface.
*4
Lower three bits (bit 2 to bit 0) in this byte control the contrast level of the LCD in 000 to 111
in binary notation or in 0 to 7 in decimal notation. 0 means the lowest contrast; 7 means the
highest. Shown below are examples of OUT statements.
OUT 3,7 ’Contrast is highest
OUT 3,&h07 ’Contrast is highest
Port No. Bit assignment
*1
Controls the following:
10
1
Reading confirmation LED (red)
*2
Reading confirmation LED (green)
*2
0: OFF
0: OFF
1: ON
1: ON
2 0 RS (RTS) signal
*3
0: OFF (Low) 1: ON (High)
3 2-0 LCD contrast level
*4
0 to 7 (0: Lowest, 7: Highest)
4 0 Message version 0: Japanese 1: English
5 0 Alphabet entry function 0: Disable 1: Enable
6 7-0 Sleep timer
*5
0 to 255
80
2
Wakeup function
*6
TIME$ function
*7
0: Deactivate
0: Select the sys-
tem time
1: Activate
1: Select the
wakeup time
Eh 0 System status indication
*8
0: OFF 1: ON
Fh 7-0 Re-read prevention enabled time
*9
0 to 255
10h-40Fh 7-0 VRAM
*10
0: OFF 1: ON
6000h 0 Initiation of System Mode
*11
0: Do not
initiate
1: Initiate
6020h
6021h
0
7-0
LCD backlight
*12
LCD backlight ON-duration
*12
0: Turns OFF
0 to 255
1: Turns ON
6030h 7-0 Effective held-down time of power
key
*13
1 to 255
6060h 7-0 Communications protocol
*14
0: BHT-protocol 1: Multilink proto-
col
6061h
6062h
7-0
7-0
ID (lower byte)
*15
ID (upper byte)
*15
0 to 255
0 to 255
Komentáře k této Příručce