getting started with propeller development
stampinator
Posts: 18
Hi everyone,
I have been reading up on the propeller and am interested in using it for a project that I've been working on. However, I am not entirely sure what I need to get started... If I just have the 40 pin dip, do I need a crystal? I noticed all the prototyping boards all had a crystal on them.
My other question is, with the 40 pin dip on a custom board-- how do I program it?
The basic stamp had a development board which let me plug it into that, and then program it via usb, but I have not seen Parallax selling any sort of boards like that with a 40-pin dip socket... Am I missing something?
Thanks.
I have been reading up on the propeller and am interested in using it for a project that I've been working on. However, I am not entirely sure what I need to get started... If I just have the 40 pin dip, do I need a crystal? I noticed all the prototyping boards all had a crystal on them.
My other question is, with the 40 pin dip on a custom board-- how do I program it?
The basic stamp had a development board which let me plug it into that, and then program it via usb, but I have not seen Parallax selling any sort of boards like that with a 40-pin dip socket... Am I missing something?
Thanks.
Comments
if you need a crystal or not is (in theory) depending on your needs ;-)
Anyhow (in practice) it is advisable. It will give you a reliable and stable clock source.
Regards
Frank
Direct link
Programming the Parallax Propeller using Machine Language V121.pdf
PASD is the abbreviation for propeller assembler source code debugger. You can use it to debug assembly language programs comfortably. PASD can set breakpoints and step through the assembly code line by line. In addition, the main RAM and the RAM-Cog can be viewed in detail.
http://forums.parallax.com/showthread.php/121946-PASD-Propeller-Assembly-Sourcecode-Debugger
http://www.insonix.ch/propeller/prop_pasd.html
http://forums.parallax.com/showthread.php/132966-Propeller-Assembly-for-beginners
https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCwQFjAA&url=http%3A%2F%2Fforums.parallax.com%2Fattachment.php%3Fattachmentid%3D52004&ei=GqQkUsb1OqnJsAT4cA&usg=AFQjCNF-e94K1n2LH_B_lQPT9keIPi5qkQ&sig2=Ho3EzH36CHlxijebmzK-dA
I would recommend ViewPort as a loader/monitor/debugger. All this debug by printf() gets old. PASD apparently supports only assembly. VP uses a fast USB link to one of the "cogs" to monitor the others, automatically and transparently instruments your code to do that, and can poke/read data in running programs, trace, break, graph variables, and act as a Logic Analyzer to display the state of the I/O pins. IMHO huge time saver in mastering the Prop, you can trace/debug Spin or Assembly code, and C if you work at it. Not perfect but since it exists, I can't imagine doing without. Love it.
Then you can easily set up your tool chain and ensure you are familiar with what going on.
Then check out PropForth, a version of forth for the propeller. http://code.google.com/p/propforth/ http://propforth.googlecode.com/files/PropForth-V5.5-20130317.zip
Particularly if you intend to just to assembler. Propforth is interactive, so its pretty quick and easy to experiment and test.
I am a little unclear on this--- So, it is my understanding that the propeller has internal eeprom storage-- Yet I've seen in several of the docs, a photo of the propeller 40 pin chip + a little eeprom chip for storing your program.
I thought that all I need to do is write my program, hook the prop plug to the chip, flash the program to the propeller's eprom, and then as soon as the propeller receives power, it will run the stored program... Is this correct?
Most of the time, the Propeller comes packaged with the EEPROM and a crystal, usually 5MHz for an 80MHz system clock. Most of the standard software expects a crystal to be present. The Propeller mini is an example of such a package with the Propeller chip, 32K EEPROM, 5MHz crystal, 5V and 3.3V regulators and associated resistors and capacitors.
There's a diagram and some photos in this post in case it might help:
http://forums.parallax.com/showthread.php/143250-Basic-Propeller-circuit-on-a-proto-board
I just got a Propeller Mini last week and that's a very nice little board.