28123 Parallax Inc, 28123 Datasheet - Page 247

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
Octaves
Example Program: MusicWithMoreFeatures.bs2
This example program plays the first few notes from For He’s a Jolly Good Fellow. All
the notes come from the same (7
turn section, you will try an example that uses notes from more than one octave, and
dotted notes.
' What's a Microcontroller - MusicWithMoreFeatures.bs2
' Play the beginning of For He's a Jolly Good Fellow.
Figure 8-4
Rightmost Piano Keys and Their Frequencies
C6 D6 E6 F6 G6
Enter and run MusicWithMoreFeatures.bs2.
Count notes and see if you can hear the dotted (1 ½ duration) notes.
Also listen for notes in octave 7. Try changing one of those notes to octave 6.
The change in the way the music sounds is pretty drastic.
C
D
or
6
#
6
b
D
E
6
#
or
6
b
DATA
G
F
or
6
#
6
b
th
G
A
6
#
or
6
b
) octave, but some of the notes are dotted. In the Your
6,
6,
A6
A
or
B
6
#
6
b
7,
6,
B6
6,
6
C7
6,
C
D
7
#
or
7
b
D7
6,
D
or
E
7
#
7
b
E7 F7 G7
6,
6,
G
F
7
#
or
7
b
6,
G
7
#
or
A
7
b
A7 B7
6,
A
B
7
#
or
7
b
7,
C8
6,

Related parts for 28123