
484
*4
Lower three bits (bit 2 to bit 0) in this byte represent 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.
*5
The LCD contrast, message version (English/Japanese), and VRAM should not be moni-
tored by using a
WAIT statement. These status may not change while a user program
monitors them by this statement. The
WAIT statement used for this purpose may cause
the program to enter an infinite loop.
*6
In System Mode, the message version appears as Eng or Jpn on the LCD.
*7
An 8-bit binary pattern (bits 7 to 0) on the input ports 10h to 18Fh (which read VRAM) rep-
resents a basic dot pattern column of the LCD. Bit value 1 means a black dot. The port
number gives the dot column address.
■
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.
*3
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
*4
The sleep timer feature automatically interrupts program execution if the BHT-3000
receives no input within the specified length of time preset by bits 7 to 0. Shown below are
examples of OUT statements. Setting 0 to this byte disables the sleep timer feature. (Refer
to Chapter 10.)
OUT 6,30 ’3 seconds
OUT 6,0 ’No sleep operation
*5
An 8-bit binary pattern (bits 7 to 0) on the output ports 10h to 18Fh (which are stored in the
VRAM) represents a basic dot pattern column of the LCD. Bit value 1 means a black dot.
The port number gives the dot column address.
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
3 2-0 LCD contrast level
*3
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
*4
0 to 255
10h-18Fh 7-0 VRAM
*5
0: OFF 1: ON
Komentáře k této Příručce