
HYUNDAI MicroElectronics
36
2.11.1. Buzzer Driver Operation
The bit0-5 of Buzzer Register (BUR) determines output frequency for buzzer driving. The frequency
is calculated as shown bellows.
N = BUR data
freq. = 1/(source clock
✕
N
✕
2)
The bit6 and bit7 of Buzzer register (BUR) selects the source clock of the buzzer counter among
PS4 (2us), PS5 (4us), PS6 (8us) and PS7 (16us).
The buzzer counter is cleared by Wt signal of BUR and starts the counting. also, It is cleared by
counter overflow, and continues count-up to output the rectangular wave of duty 50%.
* Caution: don't use BUR register as 00H. (counter reset state)
The output frequency of buzzer according to Buzzer Register bit5 - bit0 (fex = 8 MHz)
REG. REG. OUTPUT FREQUENCY[KHz] REG. REG. OUTPUT FREQUENCY[KHz]
LOAD
DEC
LOAD
HEX
PS4
(2us)
PS5
(4us)
PS6
(8us)
PS7
(16us)
LOAD
DEC
LOAD
HEX
PS4
(2us)
PS5
(4us)
PS6
(8us)
PS7
(16us)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
20
250
125
83.333
62.5
50
41.666
35.714
31.25
27.778
25
22.728
20.834
19.23
17.858
16.666
15.626
14.706
13.888
13.158
12.5
11.904
11.364
10.87
10.416
10
9.616
9.26
8.928
8.62
8.334
8.064
7.812
125
62.5
41.666
31.25
25
20.834
17.858
15.626
13.888
12.5
11.364
10.416
9.616
8.928
8.334
7.812
7.352
6.944
6.579
6.25
5.952
5.682
5.434
5.208
5
4.808
4.630
4.464
4.310
4.166
4.032
3.906
62.5
31.25
20.834
15.626
12.5
10.416
8.928
7.812
6.944
6.25
5.682
5.682
4.808
4.464
4.166
3.906
3.676
3.472
3.288
3.124
2.976
2.840
2.718
2.604
2.5
2.404
2.314
2.232
2.156
2.084
2.016
1.954
31.25
15.626
10.416
7.812
6.25
5.208
4.464
3.906
3.472
3.126
2.84
2.604
2.404
2.232
2.084
1.9541
1.838
1.736
1.644
1.562
1.488
1.420
1.358
1.302
1.250
1.202
1.158
1.116
1.078
1.042
1.008
0.976
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
7.576
7.352
7.142
6.944
6.756
6.578
6.41
6.3
6.098
5.952
5.814
5.682
5.556
5.434
5.32
5.208
5.102
5
4.902
4.808
4.716
4.63
4.546
4.464
4.386
4.31
4.238
4.166
4.098
4.032
3.968
3.788
3.676
3.571
3.472
3.378
3.289
3.205
3.125
3.049
2.976
2.907
2.841
2.778
2.717
2.660
2.604
2.551
2.5
2.451
2.404
2.358
2.315
2.273
2.232
2.193
2.155
2.119
2.083
2.049
2.016
1.984
1.894
1.838
1.786
1.736
1.689
1.645
1.602
1.563
1.524
1.488
1.453
1.421
1.389
1.359
1.33
1.302
1.276
1.25
1.225
1.202
1.179
1.157
1.136
1.116
1.096
1.078
1.059
1.042
1.025
1.008
0.992
0.947
0.919
0.893
0.868
0.845
0.822
0.801
0.781
0.762
0.744
0.727
0.710
0.694
0.679
0.665
0.651
0.638
0.625
0.613
0.601
0.590
0.579
0.568
0.558
0.548
0.539
0.530
0.521
0.512
0.504
0.496