28123 Parallax Inc, 28123 Datasheet - Page 243

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
' Play the first few notes from Frere Jacques.
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program Running!"
Notes
Durations
WholeNote
index
offset
noteLetter
noteFreq
noteDuration
DO UNTIL noteLetter = "Q"
LOOP
END
READ Notes + index, noteLetter
LOOKDOWN noteLetter, [
LOOKUP offset,
READ Durations + index, noteDuration
noteDuration = WholeNote / noteDuration
FREQOUT 9, noteDuration, noteFreq
index = index + 1
DATA
DATA
CON
VAR
VAR
VAR
VAR
VAR
[ 1760, 1865, 1976, 2093, 2217,
"C","D","E","C","C","D","E","C","E","F",
"G","E","F","G","Q"
2000
Byte
Nib
Byte
Word
Word
2349, 2489, 2637, 2794, 2960,
3136, 3322,
"A",
"D",
"G",
4,
2,
4,
4,
"b",
"e",
"a",
4,
4,
"B",
"E",
"P",
4,
2
0,
4,
"C",
"F",
"Q"
0
4,
"d",
"g",
4,
], offset
], noteFreq
4,
4,
4,

Related parts for 28123