28122 Parallax Inc, 28122 Datasheet - Page 248

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

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
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program Running!"
Notes
Octaves
Durations
Dots
BeatsPerMin
index
offset
noteLetter
noteFreq
noteDuration
noteOctave
noteDot
wholeNote
wholeNote = 60000 / BeatsPerMin * 4
DO UNTIL noteLetter = "Q"
READ Notes + index, noteLetter
LOOKDOWN noteLetter,
LOOKUP offset,
READ Octaves + index, noteOctave
noteOctave = 8 - noteOctave
noteFreq = noteFreq / (DCD noteOctave)
READ Durations + index, noteDuration
noteDuration = WholeNote / noteDuration
READ Dots + index, noteDot
IF noteDot = 1 THEN noteDuration = noteDuration * 3 / 2
DATA
DATA
DATA
DATA
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
[ 4186, 4435, 4699, 4978, 5274,
[ "C",
"C","E","E","E","D","E","F","E","E","D","D",
"D","C","D","E","C","Q"
320
Byte
Nib
Byte
Word
Word
Nib
Bit
Word
5588, 5920, 6272, 6645, 7040,
7459, 7902,
"F",
"b",
7,
7,
4,
4,
0,
0,
7,
7,
2,
4,
0,
0,
"d",
"g",
"B",
7,
7,
4,
4,
0,
0,
"D",
"G",
"P",
7,
7,
4,
2,
0,
1,
0,
7,
7
4,
2
0,
0
"e",
"a",
"Q"
0
7,
4,
0,
"E",
"A",
7,
2,
1,
], offset
], noteFreq
7,
2,
0,
7,
4,
0,
7,
2,
0,
7,
4,
0,

Related parts for 28122