
Appendices
525
Output Ports
Output PortsOutput Ports
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:
-
0 OFF
0 Indicator LED
(red) *1
.pvLEDRed
1 ON
-
0 OFF
.pnLEDCtrl
1
1 Indicator LED
(green) *1
.pvLEDGrn
1 ON
.pnLCDCnt
3 2-0 LCD contrast level
*2
0 to 7 (0: Lowest, 7: Highest)
.pvSysMSG
0 Japanese
.pnMgLng
4 0 Message version
.pvEnglish
1 English
.pnSlpTime
6 7-0 Sleep timer *3
0-255
-
0 Deactivate
0 Wakeup function
*4
.pvWupOn
1 Activate
-
0 Select the system
time
.pnWupCtrl
8
2 TIME$ function *5
.pvWupTmSt
1 Select the
wakeup time
.pvSysOff
0 OFF
.pnSysSts
Eh 0 System status
indication
.pvsysOn
1 ON
.pnBarRrd
Fh 7-0 Re-read
prevention
enabled time *6
0-255
-
0 OFF
-
10h-
40Fh
7-0 VRAM *7
-
1 ON
.pvSMdNGo
0 Do not initiate
.pnSysMd
6000h 0 Initiation of
System Mode *8
.pvSMdGo
1 Initiate
.pvBLOff
0 Turn OFF
.pnBLCtrl
6020h 0 Backlight *9
.pvBLOn
1 Turn ON
.pnBLTime
6021h 7-0 Backlight
ON-duration *9
0-255
Comentários a estes Manuais