Specifications

535
Appendices
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.
Port No.
Bit
assign-
ment
Controls the following:
.pnLEDCtrl 1 0 Indicator LED
(red)
*1
-0OFF
.pvLEDRed 1 ON
1 Indicator LED
(green)
*1
-0OFF
.pvLEDGrn 1 ON
.pnLCDCnt 3 2-0 LCD contrast
level
*2
0 to 7
(0: Lowest, 7: Highest)
.pnMgLng 4 0 Message version .pvSysMSG 0 Japanese
.pvEnglish 1 English
.pnAlpCtrl 5 0 Software keyboard
function
.pvAlpOff 0 Disable
.pvAlpOn 1 Enable
1 Software keyboard
display
-0Hide
.pvAlpDisp 1 Display
2 Software keyboard
display position on
the screen
.pvAlpBotm 0 Lower area
.pvAlpTop 1 Upper area
3 Software keyboard
movement
-0Do not allow
.pvAlpMove 1 Allow
.pnSlpTime 6 7-0 Sleep timer
*3
0-255
.pnWupCtrl 8 0 Wakeup function
*4
-0Deactivate
.pvWupOn 1 Activate
2
TIME$ function
*5
-0Select the system time
.pvWupTmSt 1 Select the wakeup
time
.pnBarRrd Fh 7-0 Re-read prevention
enabled time
*6
0-255
- 10h-
1DBFh
7-0 VRAM
*7
-0OFF
-1ON
.pnSysMd 6000h 0 Initiation of Sys-
tem Mode
*8
.pvSMdNGo 0 Do not initiate
.pvSMdGo 1 Initiate
.pnBLCtrl 6020h 0 Backlight
*9
.pvBLOff 0 Turn OFF
.pvBLOn 1 Turn ON
.pnBLTime 6021h 7-0 Backlight ON-
duration
*9
0-255