27220 Parallax Inc, 27220 Datasheet - Page 128

BOOK STAMPWORKS

27220

Manufacturer Part Number
27220
Description
BOOK STAMPWORKS
Manufacturer
Parallax Inc
Datasheet

Specifications of 27220

Accessory Type
Booklet
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
StampWorks
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Not applicable / Not applicable
Page 118 · StampWorks
The DTMF tones used in telephone systems are standardized, so instead of passing a
tone (or tones), the digit(s) to be dialed are passed as parameters. In actual dialing
applications, the DTMF on-time and off-time can be specified to deal with telephone
line quality.
This program also presents the BASIC Stamp’s basic musical ability by playing a
simple song. Constants for note frequency (in the first octave) and note timing
simplify the operational code. The Play_1_Note subroutine adjusts note frequency
for the specified octave. The musical quality can suffer a bit in the higher octaves
because of rounding errors. Using the ideal values shown, the constants table can be
expanded to create accurate musical notes. Keep in mind that each octave doubles
the frequency of a note.
Octave 2 = Octave 1 * 2
Octave 3 = Octave 2 * 2
Octave 4 = Octave 3 * 2
And so on…
Challenge
Convert (a portion of) your favorite song to play on the BASIC Stamp.

Related parts for 27220