28123 Parallax Inc, 28123 Datasheet - Page 267

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
need to be taken based on the variable’s value. A program that converts strings of
characters that describe musical tones for cell phones (called RTTTL files) was used to
introduce a larger program that makes use of all the programming techniques introduced
in this text.
examine characters selected in an RTTTL file on a case-by-case basis.
Questions
Exercises
Project
1. What causes a tone to sound high-pitched? What causes a tone to sound low-
2. What does
3. How can you modify the
4. If you strike a piano’s B6 key, what frequency does it send?
5. How do you modify a
6. Can you have more than one
7. What’s an octave? If you know the frequency of a note in one octave, what do
8. What does
1. Modify the “Alarm…” tone from ActionTones.bs2 so that the frequency of the
2. Explain how to modify MusicWithMoreFeatures.bs2 so that it displays an alert
1. Build pushbutton controlled tone generator. If one pushbutton is pressed, the
pitched?
numbers have?
two frequencies at once?
retrieve word values?
command to get data from one or the other
you have to do to that frequency to play it in the next higher octave?
tone it plays increases by 500 each time the tone repeats.
message in the Debug Terminal each time a dotted note is played.
speaker should make a 2 kHz beep for 1/5 of a second. If the other pushbutton is
pressed the speaker should make a 3 kHz beep for 1/10 of a second.
SELECT…CASE
SELECT…CASE
FREQOUT 15, 1000, 3000
played a prominent role in this program because it is used to
DATA
do?
FREQOUT
directive or
DATA
directive? If so, how would you tell a
command from Question 2 so that it sends
READ
DATA
do? What effect does each of the
command if you want to store and
directive?
READ

Related parts for 28123