HT45R37V Holtek Semiconductor Inc., HT45R37V Datasheet - Page 53

no-image

HT45R37V

Manufacturer Part Number
HT45R37V
Description
C/r-f Type 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT45R37V
Manufacturer:
HOLTEK
Quantity:
3 200
Buzzer
Operating in a similar way to the Programmable Fre-
quency Divider, the Buzzer function provides a means of
producing a variable frequency output, suitable for ap-
plications such as Piezo-buzzer driving or other external
circuits that require a precise frequency generator.
Buzzer Operation
The BZ and BZ pins form a complementary pair, and are
pin-shared with I/O pins, PA0 and PA1. A configuration
option is used to select from one of three buzzer options.
The first option is for both pins PA0 and PA1 to be used
as normal I/Os, the second option is for both pins to be
configured as BZ and BZ buzzer pins, the third option
selects only the PA0 pin to be used as a BZ buzzer pin
with the PA1 pin retaining its normal I/O pin function.
Note that the BZ pin is the inverse of the BZ pin which to-
gether generate a differential output which can supply
more power to connected interfaces such as buzzers.
The buzzer is driven by the internal clock source, , which
then passes through a divider, the division ratio of which
is selected by configuration options to provide a range of
buzzer frequencies from f
PA0/PA1 Pin Function Control
Rev. 1.00
x stands for don t care
D stands for Data 0 or 1
PAC Register
PAC0
0
0
0
0
1
1
S
/2
PAC Register
2
to f
PAC1
S
/2
0
0
1
1
0
1
9
. The clock source
PA Data Register
Buzzer Function
PA0
53
1
0
1
0
x
x
that generates f
quency, can originate from three different sources, the
32768Hz oscillator, the 32K_INT oscillator or the Sys-
tem oscillator/4, the choice of which is determined by
the f
buzzer frequency is controlled by configuration options,
which select both the source clock for the internal clock
f
registers associated with the buzzer frequency.
If the configuration options have selected both pins PA0
and PA1 to function as a BZ and BZ complementary pair
of buzzer outputs, then for correct buzzer operation it is
essential that both pins must be setup as outputs by set-
ting bits PAC0 and PAC1 of the PAC port control register
to zero. The PA0 data bit in the PA data register must
also be set high to enable the buzzer outputs, if set low,
both pins PA0 and PA1 will remain low. In this way the
single bit PA0 of the PA register can be used as an on/off
control for both the BZ and BZ buzzer pin outputs. Note
that the PA1 data bit in the PA register has no control
over the BZ buzzer pin PA1.
S
and the internal division ratio. There are no internal
S
clock source configuration option. Note that the
PA Data Register
S
, which in turn controls the buzzer fre-
PA1
D
x
x
x
x
x
PA1=input line
PA1=input line
PA0=input line
PA0=input line
PA0=input line
October 20, 2009
HT45R37V
Function
PA0= 0
PA1= 0
PA0= 0
PA0=BZ
PA1=BZ
PA0=BZ
Output
PA1=D

Related parts for HT45R37V