參數(shù)資料
型號(hào): MC80F0208
廠商: Electronic Theatre Controls, Inc.
元件分類: 8位微控制器
英文描述: 8-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 8位單晶片微控制器
文件頁數(shù): 88/128頁
文件大?。?/td> 1408K
代理商: MC80F0208
MC80F0208/16/24
Preliminary
84
MAR. 2005 Ver 0.2
18. BUZZER FUNCTION
The buzzer driver block consists of 6-bit binary counter, buzzer
register BUZR, and clock source selector. It generates square-
wave which has very wide range frequency (488Hz ~ 250kHz at
f
XIN
= 4MHz) by user software.
A 50% duty pulse can be output to R13/BUZO pin to use for pi-
ezo-electric buzzer drive. Pin R13 is assigned for output port of
Buzzer driver by setting the bit 2 of PSR1(address 0F9
H
) to “1”.
For PSR1 register, refer to Figure 18-2.
Example: 5kHz output at 4MHz.
LDM
LDM
BUZR,#0011_0001B
PSR1,#XXXX_X1XXB
X means don’t care
The bit 0 to 5 of BUZR determines output frequency for buzzer
driving.
Equation of frequency calculation is shown below.
f
BUZ
: Buzzer frequency
f
XIN
: Oscillator frequency
Divide Ratio: Prescaler divide ratio by BUCK[1:0]
BUR: Lower 6-bit value of BUZR. Buzzer period value.
The frequency of output signal is controlled by the buzzer control
register BUZR. The bit 0 to bit 5 of BUZR determine output fre-
quency for buzzer driving.
Figure 18-1 Block Diagram of Buzzer Driver
Figure 18-2 Buzzer Register & PSR1
f
BUZ
f
2
DivideRatio
BUR
1
+
)
---------------------------------------------------------------------------
=
P
÷
8
÷
32
÷
16
÷
64
BUR
R13/BUZO PIN
PSR1
Internal bus line
R13 port data
X
IN
PIN
2
6
[0E0
H
]
[0F9
H
]
0
1
F/F
Comparator
Compare data
6-BIT BINARY
COUNTER
MUX
00
01
10
11
Port selection register 1
MUX
BUZO
BUR[5:0]
Buzzer Period Data
BUZR
ADDRESS: 0E0
RESET VALUE: 0FF
H
W
W
W
W
W
W
Source clock select
00: f
XIN
÷
8
01: f
XIN
÷
16
10: f
XIN
÷
32
11: f
XIN
÷
64
W
W
BUCK1 BUCK0
PSR1
ADDRESS: 0F9
RESET VALUE: ---- -0--
B
BUZO
R13/BUZO Selection
0: R13 port (Turn off buzzer)
1: BUZO port (Turn on buzzer)
-
-
-
-
-
-
-
相關(guān)PDF資料
PDF描述
MC80C0208 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0208K 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0208Q 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0216 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0216K 8-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC80F0208K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0208Q 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0216 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0216K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0216Q 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS