Well, in the framework above we are calling
methods in a continuous loop so the stack can eventually
explode, kind-of like Mr. Creosote in Monty Python’s The
Meaning of Life after than final “wafer thin mint.” It was
funny on screen; it’s not funny when it happens in our
Propeller programs, and can lead to frustrating debugging
The fix is easy. Just remember that the call to a
method is like a GOSUB, and that the program wants to
come back when that method is finished. Knowing this,
we can re-arrange our main method as follows:
‘‘‘ do something
… and, of course, remove the calls at the ends of method1
I know this is obvious for you seasoned programmers,
but having run into this a couple times — usually by
those migrating from Basic — I thought it was worth
Okay, then, it’s time (yeah, yeah, bad pun) to get out
your Propeller and start working with time-based events.
Do spend a bit of time in the manual looking at
RESOURCES Gadget Gangster Propeller Platform and accessories www.gadgetgangster.com
BST (Brad’s Spin Tool)
Multi-platform IDE supports Spin and
LONGMOVE. You can use this to take a quick snap-shot
of your timer registers for timed events, perhaps like a
Pinewood Derby timer or similar project (see
jm_key_timer.spin for a simple example).
Until next time, keep spinning and winning with the
UNIQUE PRODUCTS + SUPPORT!
50 - 300MHz DSOs Mixed-Signal Scope 7 in 1 USB Scope
2-ch 10-bit 2MHz scope/spectrum-analyzer, 3MHz 8-bit wfm gen; 16 x
I/O; Network Analyzer; Noise
Generator; PWM. Windows/Linux
/Mac compatible! USB-powered,
great for toolbox, education, etc.
CleverScope - 100MHz Scope,
Spectrum/Logic Analyzer.for PCs. 4 or
8 M/sample storage! Easy A-B, math,
& filters! 2 ch x 10, 12 or 14-bit, 8 dig.
I/P. (Opt. 0-10 MHz SigGen. - $299)
CS328A- 4 (4MS Buffer) $1259
CS328A- 8 (8MS Buffer) $1474
60/100/200/300MHz 2 ch, 2GS/s
DSO 2000 wfm/s refresh rate. High
quality, ultra Compact Design with
small footprint. Totally new price.
• • thru • •
SPI Bus Analyzer Multiparameter Loggers
SOMO-14D .NET Board
Compact compressed-serial output
camera module for any host system.
JPEG OmniVision™ CMOS VGA
color camera for embedded imaging.
uCAM T TL or 232 $58
EMC Spectrum Analyzers
PC-based SPI protocol exerciser/analyzer
for standard/non-standard interfaces
< 50 Mbps. Monitor serial traffic;
test/debug parameters & custom
variations for embedded system/IC
dev’t and validation. $739
Mini-logger with built-in temp/humidity/
pressure/3-axis accel sensors.
Customize msmt/record parameters;
send data to PC after or during logging.
Synchronize multiple loggers.
MSR145S from $527
Handheld Palm PC-based 2.7GHz
Spectrum Analyzer. Multiple
sweep settings – store wfms,
set-ups, etc. Use WiFi PC for
email, reports, calculations.
14-pin Tiny Audio-Sound Module
plays back pre-stored audio files
(voice and music) from microSD card - ideal for embedded
FEZ Domino (Arduino) & FEZ Mini (BS2)
are tiny open source boards using
USBizi chipset: USB host + SD interface,
NETMF (.NET). 72Mhz NXP ARM with
runtime debug (bkpts, stepping, etc.)
Use Visual C#. Starter Kits $98
July 2010 19