EM6607 EM Microelectronic, EM6607 Datasheet - Page 20

no-image

EM6607

Manufacturer Part Number
EM6607
Description
Ultra-low power microcontroller
Manufacturer
EM Microelectronic
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
EM6607TP16B
Quantity:
20 000
Part Number:
EM6607TP16B
Manufacturer:
NUVOTON
Quantity:
1 200
8
The EM6607 has one 50% duty cycle output with three different frequencies, which can be used to drive a buzzer. I/O
terminal PB0 in 24-pin package or PE0 in 28-pin package (BuzzerPE0 option) is used for this function when the buzzer is
enabled by setting the BUen bit to 1 . Table 22 below shows how to select the frequency by writing to the BCF1 and BCF0
control flags in the BEEP register.
After writing to the buzzer control register BEEP, the
chosen frequency (or silence) is selected immediately.
With the BUen bit set to 1, the selected frequency is
output at PB0 when BuzzerPE0 is 0. When the BUen is
set to 0 PB0 is used as a normal I/O terminal of PortB.
The BUen bit has a higher priority over the I/O control bit
CIOPB0 in the CIOPortB register. In case when
BuzzerPE0 is 1 and BUen is set to 1 PE0 becomes
output and PB0 is not influenced by buzzer function.
8.1
Table 27.
Table 28.
Table 29.
Copyright © 2005, EM Microelectronic-Marin SA
Buzzer on PB0 or PE0
Buzzer output on PE0
Buzzer output on PB0
CIOPB0
Bit
3
2
1
0
X
0
1
0
1
BUZZER
Buzzer Register
CIOPE0
Buzzer control register - BEEP
Buzzer output pad allocation
PB0 & PE0 function used with BUen and BuzzerPE0 control bits
R
X
X
0
1
0
Name
TimEn
BUen
BCF1
BCF0
BUen
0
0
1
1
1
BuzzerPE0
X
X
0
1
1
Reset
0
0
0
0
BuzzerPE0 in register Option2
Function distributions on PB0 and PE0 pads
R/W
R/W
R/W
R/W
R/W
PB0 is general output, PE0 is Buzzer output
PB0 and PE0 are independent outputs
PB0 is Buzzer output, PE0 is input
PB0 is input, PE0 is Buzzer output
Description
Timer/counter enable
Buzzer enable
Buzzer Frequency control
Buzzer Frequency control
PB0 and PE0 are Inputs
20
1
0
Table 2.
Tone frequency
silence
1024 Hz
2048 Hz
2667 Hz
Buzzer frequency selection
BCF1
0
0
1
1
www.emmicroelectronic.com
EM6607
BCF0
0
1
0
1

Related parts for EM6607