Demonstration applications
UM0501
14/23
Doc ID 14320 Rev 3
Figure 12.
Saving the melody
LEFT/RIGHT
: Press the joystick
LEFT
or
RIGHT
to navigate the notes.
SEL
: Press
SEL
to confirm a note and go to the next one.
KEY
: Press
KEY
to switch between edit and protected modes.
RV1
: Use
RV1
potentiometer to define the notes.
2.9 PWM
demo
2
This demo also demonstrates the Timer peripheral operating in PWM mode. Make sure that
the JP14 jumper is installed in the bottom position (closer to LCD).
This demo allows to select and play one melody among a selection stored in the Flash
memory (see
).
1.
Navigate between the melodies by pressing the joystick
LEFT
or
RIGHT
, and press
SEL
to select and play the melody (see
Figure 13.
Selecting a melody
2.
The first time
UP
is pressed, the melody is stopped.
Note:
Keep the joystick pressed
UP
for a short time to allow the action to be taken into account.
3.
The second time
UP
is pressed, a message is displayed asking you to save the melody
or not.
a)
If you press the
KEY
button, the melody is saved in the external EEPROM.
a)
If you press
UP
, you exit from the demo without saving the melody.
LEFT/RIGHT
: Press the joystick
LEFT
or
RIGHT
to navigate the melodies.
SEL
: Press
SEL
to select a melody and play it.
Save melody ?
KEY=YES UP=NO
Select Melody
Bon Tabac