regs.h.bh = 8; int86(0x21,®s,®s);

 

}

 

54

Buzzer volume control with user-defined frequency and time INT

 

21H

 

 

Entry Parameters:

AH = 0x54

 

 

CX = 1-3000 ;frequency in Hz

 

 

DX = 1-1600 ;sound duration in mini-second

 

Returned Values:

None

void TD_beep_user(int fz,int tm)

{

regs.h.ah 0x54;= regs.x.cx = fz; regs.x.dx = tm; int86(0x21,®s,®s);

}

Buzzer volume control with predefined frequency and time INT 35H

Entry Parameters:

AX = 0-8

;frequency assignment

 

BX = 0-8

;time duration

 

Returned Values:

None

 

 

 

Frequency

 

Time duration

AX = 0

200 Hz

BX = 0

10 ms

1

400

1

50

2

600

2

100

3

800

3

200

4

1K

4

500

5

2K

5

800

6

2.5K

6

1 second

7

3K

7

1.5 seconds

8

5K

8

2 seconds

void TD_beep(int fz,int tm)

{

regs.x.ax = fz; regs.x.bx = tm; int86(0x35,®s,®s);

}

3-37

Page 38
Image 38
Unitech MR350MKII manual 21H