28123 Parallax Inc, 28123 Datasheet - Page 253

TEXT WHAT'S A MICROCONTROLLER

28123

Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28123

Style
Book
Title
What's a Microcontroller?
Contents
Whats a Microcontroller? Text
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
Lead Free Status / RoHS Status
Not applicable / Not applicable
Those two notes in the 7
interesting to hear what happens if those 7 values are changed to 6.
ACTIVITY #5: CELL PHONE RINGTONES
Many cell phones play music that can be downloaded from web pages. The computer
sends the data about the notes to the microcontroller in the phone, then plays the notes
whenever a call comes in. These are called ringing tones or often just ringtones.
One of the most widely used way of composing, recording and posting notes is one that
features strings of text that describe each note in the song. Here is an example of how the
first few notes from Beethoven’s 5
This format for storing musical data is called RTTTL, which stand for Ringing Tone Text
Transfer Language. The great thing about RTTTL files is that they are widely shared via
the World Wide Web. Many sites have RTTTL files available for free download. There
are also free software programs that can be used to compose and emulate these files as
well as download them to your cell phone. The RTTTL specification is also published on
the World Wide Web. Appendix G summarizes how an RTTTL file stores notes,
durations, pauses, tempo, and dotted notes.
This activity introduces some PBASIC programming techniques that can be used to
recognize different elements of text. The ability to recognize different characters or
groups of characters and take action based on what those characters contain is extremely
useful. In fact, it’s the key to converting RTTTL format ringtone (like Beethoven5
above) into music. At the end of this activity, there is an application program that you
can use to play RTTTL format ringtones.
Beethoven5:d=8,o=7,b=125:g,g,g,2d#,p,f,f,f,2d
Try changing the two 7 values in the
6. Keep in mind, this will make “Take Me out to the Ball Game” sound weird.
Run the program, and listen to the effect of the wrong octaves on the song.
Change the
Run the program again and listen to see if it sounds correct again.
Octaves DATA
th
octave are essential for making the tune sound right. It’s
th
look in RTTTL format:
back to its original state.
Octaves DATA
directive so that they are

Related parts for 28123