28123 Parallax Inc, 28123 Datasheet - Page 260

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
' -----[ EEPROM Data ]-----------------------------------------------------
' -----[ Initialization ]--------------------------------------------------
' -----[ Program Code ]----------------------------------------------------
noteOctave
duration
tempo
default_d
default_o
default_b
RTTTL_File
Done
Notes
Octave8
counter = 0
GOSUB FindEquals
GOSUB ProcessDuration
GOSUB FindEquals
GOSUB ProcessOctave
GOSUB FindEquals
GOSUB GetTempo
DO UNTIL char = "q"
LOOP
END
GOSUB ProcessDuration
GOSUB ProcessNote
GOSUB CheckForDot
GOSUB ProcessOctave
GOSUB PlayNote
VAR
VAR
VAR
VAR
VAR
VAR
DATA
DATA
DATA
DATA
Word
Word
Word
Byte
Byte
Word
"Reveille:d=4,o=7,b=140:8g6,8c,16e,16c,8g6,8e,",
"8c,16e,16c,8g6,8e,8c,16e,16c,8a6,8c,e,8c,8g6,",
"8c,16e,16c,8g6,8e,8c,16e,16c,8g6,8e,8c,16e,",
"16c,8g6,8e,c,p,8e,8e,8e,8e,g,8e,8c,8e,8c,8e,8c,",
"e,8c,8e,8e,8e,8e,8e,g,8e,8c,8e,8c,8g6,8g6,c."
",q,"
Word 0,
Word 4186, Word 4435, Word 4699, Word 4978,
Word 5274, Word 5588, Word 5920, Word 6272,
Word 6645
"p",
"c",
"e",
"#"
Word 3520, Word 3729, Word 3951,
"a",
"#",
"f",
' Stores note octave.
' Stores note duration.
' Stores tempo.
' Stores default duration.
' Stores default octave.
' Stores default beats/min.
' Initialize counter.
' Find first '=' in file.
' Get default duration.
' Find next '='.
' Get default octave.
' Find last '='.
' Get default tempo.
' Loop until 'q' in DATA.
' Get note duration.
' Get index value of note.
' If dot, 3/2 duration.
' Get octave.
' Get freq, play note, next.
' End of main loop.
' End of program.
"#",
"d",
"#",
"b",
"#",
"g",

Related parts for 28123