PT630 Programming Reference Guide
Page 18 of 59
------------------------------------------------------------------------------------------------------------------
1.5.12 Device control function
1.5.12.1 LCD Backlight ON/OFF Control
Entry Parameter: AH = 1AH
BH = 0
AL
=
0/1
;
set
LCD
backlight
OFF/ON
Return
Value:
None
Example
:
void TL_backlight(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 0;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1.5.12.2 Buzzer ON/OFF Control
Entry Parameter: AH = 1AH
BH = 1
AL
=
0/1
;
set
Buzzer
OFF/ON
Return
Value:
None
Example
:
void TD_buzzer(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 1;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1.5.12.3 Beeper
Volume
Entry parameter: AH = 1AH
BH = 3
AL = 0/1/2
; set LOW/MEDIUM/HIGH beeper volume
Return
Value:
None
Example
:
void TD_beeper_vol(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 3;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}