28123 Parallax Inc, 28123 Datasheet - Page 242
28123
Manufacturer Part Number
28123
Description
TEXT WHAT'S A MICROCONTROLLER
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 242 of 340
- Download datasheet (6Mb)
WholeNote
The first number in the
note in the
and so on. The durations are no longer in terms of milliseconds. Instead, they are much
smaller numbers that can be stored in bytes, so there is no
directive. Compared to storing values in terms of milliseconds, these numbers are more
closely related to sheet music. Here is a list of what each duration means.
After each value is read from the
WholeNote
time each note lasts depends on the tempo of the song. A faster tempo means each note
lasts for less time, while a slower tempo means each note lasts longer. Since all the note
durations are fractions of a whole note, you can use the duration of a whole note to set the
tempo.
Example Program: NotesAndDurations.bs2
' What's a Microcontroller - NotesAndDurations.bs2
•
•
•
•
•
•
√
√
1 – whole note
2 – half note
4 – quarter note
8 – eighth note
16 – sixteenth note
32 – thirty-second note
Enter and run NotesAndDurations.bs2.
How does it sound?
What does the "
checks for "Q" each time through the loop.
How do I play a rest? You can insert a rest between notes by inserting a
Turn section has the first few notes from Beethoven’s 5
How do I play sharp/flat notes? NotesAndDurations.bs2 has values in its lookup tables for
sharp/flat notes. When you use the lower-case version of the note, it will play the flat note.
For example, if you want to play B-flat, use “b” instead of “B”. Remember that this is the
same frequency as A-sharp.
Notes Data
value to get the
CON
directive should last. The second duration is for the second note,
Durations DATA
Q
" in
Duration
Notes DATA
2000
Durations DATA
used in the
directive tells the program how long the first
mean? "Q" is for quit, and a
FREQOUT
directive, it is divided into the
th
Symphony, which has a rest in it.
command. The amount of
Word
prefix in the
DO WHILE…LOOP
"P"
. The Your
DATA
Related parts for 28123
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: