28122 Parallax Inc, 28122 Datasheet - Page 259
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 259 of 340
- Download datasheet (6Mb)
Turn section. This program plays a tune called Reveille, which is the bugle call played at
military camps first thing in the morning. You may have heard it in any number of
movies or television shows.
Example Program: MicroMusicWithRtttl.bs2
This application program is pretty long, and it’s a good idea to download the latest
version from the
Look for a link named Selected Example Programs near the What’s a Microcontroller
PDF downloads. Downloading the program and opening it with the BASIC Stamp Editor
should save you a significant amount of time. The alternative, of course, is to hand enter
and debug four pages of code.
' What's a Microcontroller - MicroMusicWithRtttl.bs2
' Play Nokia RTTTL format ringtones using DATA.
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program Running!"
' -----[ I/O Definitions ]-------------------------------------------------
' -----[ Variables ]-------------------------------------------------------
RTTTL_File
SpeakerPin
counter
char
index
noteLetter
noteFreq
√
√
√
Use
MicroMusicWithRtttl.bs2 file, or hand enter the example below very carefully.
Run the program, and verify that the piece is recognizable as the Reveille
bugle call.
Go to the Your Turn section and try some more tunes (RTTTL_File DATA
directives).
the
www.parallax.com
DATA
CON
VAR
VAR
VAR
VAR
VAR
BASIC
"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."
9
Word
Byte
Word
Byte
Word
Stamp
→ Downloads → Educational Curriculum page.
Editor
' Piezospeaker connected to P9.
' General purpose counter.
' Variable stores characters.
' Index for pointing at data.
' Stores note character.
' Stores note frequency.
to
open
your
downloaded
Related parts for 28122
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: