ATAM510X-ILQY ATMEL [ATMEL Corporation], ATAM510X-ILQY Datasheet - Page 46

no-image

ATAM510X-ILQY

Manufacturer Part Number
ATAM510X-ILQY
Description
MARC4 4-bit MTP Universal Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
3.5.3.8
Figure 3-16. Modulated Melody Mode
Figure 3-17. Modulated Melody Output Circuit
46
ATAM510
Timer
Compare
Interrupt
T0OUT1
T0OUT0
(BP40)
State
(BP41)
Timer
Clock
Melody Mode (with/without Modulation)
(melody output)
(envelope)
0
into compare register
T0OUT0
T0OUT1
T0OUT1
T0OUT0
New value (= 7) loaded
The non-modulated melody mode is identical to the auto-reload counter (50% duty cycle) mode.
The melody tone frequency appearing on BP41 and/or BP40 is determined in exactly the same
way as the value written into the comparator register. In the modulated melody mode, the
ATAM510 generates two output signals, a melody tone and an envelope pulse (see
16). The tone frequency output on BP41 is generated in exactly the same way as in the simple
melody mode. While the envelope pulse on BP40 is a single pulse of a clock period in duration
which appears shortly after loading the compare value into the compare register. In this mode,
an analog switch is activated between the BP40 and BP41 outputs (see
external capacitor connected, the resultant signal on BP41 exhibits a melody chime effect with
an exponential decay.
1
BP41
BP40
2
3
4
5 6
melody mode
Modulated
7
0
1 2 3
4
5 6
7
0
1 2 3
V
V
DD
Analog switch
SS
4
5 6
Timer = compare register
resets timer
7
0
1 2 3
BP40
BP41
4
5 6
10...47 µF
(optional)
7
R
0
1 2 3
4
5 6
V
DD
V
buzzer
Piezo
SS
7
Figure
4711B–4BMCU–01/05
3-17). With the
Figure 3-

Related parts for ATAM510X-ILQY