28122 Parallax Inc, 28122 Datasheet - Page 245
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
Specifications of 28122
Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 245 of 340
- Download datasheet (6Mb)
The note’s frequency has been determined, but the duration still has to be figured out.
The
into
Then,
noteDuration
÷ 4 = 500. If
Now that
note.
Each time through the main loop, the
main loop gets back to the beginning, the first thing the program does is read the next
note, using the
Your Turn – Experimenting with Tempo and a Different Tune
The length of time that each note lasts is related to the tempo. You can change the tempo
by adjusting the
and the song will play slower. If you increase it to 1750, the tempo will increase and the
song will play more quickly.
Entering musical data is much easier when all you have to do is record notes and
durations. Here are the first eight notes from Beethoven’s Fifth Symphony.
noteDuration
READ
√
√
√
noteDuration
LOOP
noteDuration
command uses the value of
Save
NotesAndDurationsYourTurn.bs2.
Modify the tempo of NotesAndDurationsYourTurn.bs2 by adjusting the value
of
Re-run the program after each modification, and decide which one sounds
best.
READ Durations + index, noteDuration
noteDuration = WholeNote / noteDuration
FREQOUT 9, noteDuration, noteFreq
index = index + 1
WholeNote
noteDuration
index
. If note duration starts out as 4 from a
WholeNote
.
variable.
NotesAndDurations.bs2
is set equal to the
. Try values of 1500, 1750, 2000, and 2250.
and
constant. If you increase it to 2250, the tempo will decrease,
is 8, it becomes 1500 ÷ 8 = 250.
noteFreq
index
index
2349, 2489, 2637, 2794, 2960,
3136, 3322,
are determined, the
to place a value from the
value must be increased by one. When the
WholeNote
READ
under
0,
FREQOUT
command, it becomes 2000
constant divided by the
0
], noteFreq
command plays the
Durations DATA
the
name
Related parts for 28122
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: