powerful Parallax Propeller microcontroller applications

Gunther Rattay

powerful Parallax Propeller microcontroller applications
« on August 15th, 2014, 03:32 AM »Last edited on August 15th, 2014, 09:13 AM
Once more Parallax came up with a surprise at DEVCON 22 in Las Vegas.

https://www.defcon.org/

they made the electronic badges for the conference within 60 days ...


https://www.youtube.com/watch?v=W6Trv7yCbfA#ws


the fast and the furious ;-)


the story behind the story:

http://www.parallax.com/news/2014-08-06/propeller-1-defcon-22-badges-las-vegas

Parallax is heavily open sourcing their products.

transscript from elektor (google translate from german to english):

"What costs nothing is worth nothing!" This saying may apply to hardware - generally for software and the Internet is not really. Not only electronics engineers and programmers benefit every day from open source in many forms. Anyone who believes that the "Gift" of self-developed software is not good business, is mistaken. Add a little and gets (usually) much more back.

Last week, the DEF CON 22 was held in Las Vegas. Here is the not unknown company Parallax design files to their most famous product propeller freely available. This interesting chip also put on small boards, which were distributed to the participants of the conference. The tools PropellerIDE and SimpleIDE are now open source. Everyone can now so its very special Propeller chip tinker, tailor-made by pouring it into an FPGA. Perhaps it was inspired: In June, Tesla already announced suddenly all car-free patents. If the school do? I believe that the release of own developments is a sign of self-awareness of a company. Why things jealously guard if you are sure that you continuously improving its products? Parallax is the proof, because they have already created a new propeller version. But now I must go unpack this propeller-board ...
Jaime @ Elektor

Propeller - quick and easy powerful controller for all kinds of applications:

now the propeller chip is also open source! ... and both IDEs and hardware are released :-)

http://www.elektor.de/news/parallax-propeller-open-source-design/


more ...

google translate:

Parallax has introduced the source-code design files for propeller 1 (P8X32A), the well-known multi-core microcontroller under the GNU General Public License v3.0 on the DEF CON 22 Conference in Las Vegas. Parallax thus follows the ideas of the founder Chip Gracey, which he developed when he taught himself to program in the early 1980s. Electronics engineers and students, it is now possible to modify the Verilog design files for propeller itself and to transfer to an inexpensive FPGA.

The now open design of the controller allows now that you z. B. just more pins, more memory or architecture makes changes and constructed his own specially adapted controller based on FPGA. This is very interesting for the education at universities. The multi-core microcontroller is particularly suitable for applications with many sensors, complex user interfaces or in cases where z. B. Several motors have to be controlled simultaneously. This includes controls for unmanned flying objects, 3D printer, or solar control and medical devices.

The decision to publish the files did not fall Parallax very difficult, since this measure also supports its newest product: Propeller 2 Some of the improvements of the Successor go back to the suggestions of the users who worked with propeller solutions on FPGAs.


Matt Watts

Re: powerful Parallax Propeller microcontroller applications
« Reply #1, on August 15th, 2014, 10:06 AM »
Manual:  http://www.parallax.com/sites/default/files/downloads/P8X32A-Web-PropellerManual-v1.2.pdf
Tools:  http://www.parallax.com/sites/default/files/downloads/P8X32A-Setup-Propeller-Tool-v1.3.2.zip

Chip

http://www.parallax.com/product/p8x32a-d40

Prop Plug

http://www.parallax.com/product/32201


This Mini is probably the best way to get your feet wet since it has the EEPROM onboard for application retention.  It would be cake to attach it via headers to a custom PC board.

http://www.parallax.com/product/32150


All-in-all, a pretty good way to embed some smarts into your project.  I may have to play with this little dude myself.  ;)


Matt Watts

Re: powerful Parallax Propeller microcontroller applications
« Reply #3, on August 15th, 2014, 11:53 AM »Last edited on August 15th, 2014, 11:55 AM
Quote from Gunther Rattay on August 15th, 2014, 10:39 AM
So does this litte guy ...

http://www.parallax.com/product/32210

it has eeprom, usb on board and all 32 ports can be used.
And pins.  Sweet.

May take some rethinking on my part how to dedicate the cogs to a particular function.  I'm use to the PSoC having a single central processor driving raw logic hardware.  With the Parallax, it would probably be a single cog driving the other cogs.  Need to wrap my head around how much a cog can actually do software-wise and still provide good performance and stability.  From what I saw from the Arduino, not so much unless you can tolerate a fair amount of jitter.  But that's with only a single processor trying to do everything.

In any case, once I get something perfected, I think this might make a really nice module to plug into a completed PCB.  Just power-up and run.  Or set-it-and-forget-it as they call it now.  Sure looking forward to that day...

Let me ask you Gunther, it is fairly easy to run one of these devices up to the maximum 80 MHz instead of the built-in 5 MHz?

Gunther Rattay

Re: powerful Parallax Propeller microcontroller applications
« Reply #4, on August 15th, 2014, 12:33 PM »Last edited on August 20th, 2014, 01:43 AM
Indeed it´s the PropStick I use for my PGen pulse wizard application.

The 5 MHz clock is pll multiplied to 80 MHz and all works perfectly fine at that speed. There are 6 MHz quartz available for $2 and almost any propeller then can be run at 100 MHz. For safe operations issues Parallax decided to declare it at 80 MHz.

So you can run the mini and the propstick and most of the other boards and processors with built in 5 MHz quartz at 80 MHz without additional effort.

first cog is always used (for Propeller 1) to drive the spin interpreter. so each and every program starts with a control cog. this cog then can start other cogs driving spin interpreter or assembly programs. the C-IDE now available is driven by an assembler cog.

of course the initial spin cog can be overloaded by an assembly cog if necessary.

Matt Watts

Re: powerful Parallax Propeller microcontroller applications
« Reply #5, on August 17th, 2014, 12:39 AM »
So you can communicate with and program that little board with the same USB interface?

How about debugging, what kind of features do you have in that respect?

Could you point me to some videos demonstrating the creation and programming of a small application?  That would probably get me up to speed quicker than anything else.

Gunther Rattay

Re: powerful Parallax Propeller microcontroller applications
« Reply #6, on August 18th, 2014, 12:10 PM »Last edited on August 18th, 2014, 12:36 PM
propeller 1 has a rom based boot loader which enables programming thru port 31-30. this is 3.3V level or usb on a board version as prop-stick. once boot or programming are done spin interpreter is started in cog0 and a user installed serial communication driver must be loaded into another cog to enable user specific communication thru the same ports (of course other ports can be used). so - yes, both communications thru the same ports possible. there is a source code debugger for spin available at moderate costs >(ViewPort) and a free assembly language debugger (pasd) available.

https://translate.google.de/translate?sl=de&tl=en&js=y&prev=_t&hl=de&ie=UTF-8&u=http%3A%2F%2Fwww.insonix.ch%2Fpropeller%2Fprop_pasd.html&edit-text=

https://www.youtube.com/watch?v=wYqJDYPDDrk# ViewPort

the easiest way to get the propeller up and running is to download an open-source program from obex http://obex.parallax.com/
it normally runs without any changes.

http://www.instructables.com/id/Programming-the-Propeller-Microcontroller/all/?lang=en

starting with installing the propeller tool is a cheap and quick way for a basic setup. ViewPort is not really needed.
after some experience with spin programming and using multiple cogs and parallel operation you can proceed with including assembler code.

a major benefit of propeller design is 2 independent versatile counters per cog taking away some load from the cog.
of course there are semaphore features for multiprocessing.









Gunther Rattay

Re: powerful Parallax Propeller microcontroller applications
« Reply #12, on August 18th, 2014, 03:05 PM »Last edited on August 18th, 2014, 04:07 PM
Parallax Propeller can be easily used to emulate other hardware like other processors, interface chips, music chips, video chips.

Therefore software drivers are loaded into dedicated cogs and emulation can be run.

That´s the reason why PGen Pulse Wizard can serve up to 4 pulse  channels in parallel with additional pll or phase lock functions including gating and pulse chaining features: http://open-source-energy.org/?topic=1836.msg25094#msg25094


Propeller can serve an interrupt free true parallel operation at a high frequency of 80 MHz.

As used by ViewPort real time programming and debugging software  PGen Pulse Generator also downloads firmware into the controller at runtime and then executes that code. So there is no hardcoding and burning firmware into resident memory but instead preparing code for execution in the human interface program and then download that specific code into the processor. no need for burning an eeprom (though you can if you want) or hardwireing an FPGA.


PGen in the media:

http://www.online-translator.com/siteTranslation/autolink/?direction=ge&template=General&sourceURL=http://www.elektor.de/news/software-generiert-rechteck-impulse/ Software generates rectangular pulses






Gunther Rattay

Re: powerful Parallax Propeller microcontroller applications
« Reply #16, on August 19th, 2014, 12:48 AM »Last edited on August 19th, 2014, 02:24 AM
If you want to take it easy use 12blocks for complex programming of the Propeller:



http://onerobot.org/products/12blocks/

http://www.instructables.com/id/Program-a-microcontroller-With-12Blocks/?lang=de

That´s easier than soldering work :cool:

Using some sophisticated lab and measurement specific blocks you can create an individual control logic for your versatile laboratory measurement and actuation tool and then let the 12blocks submodules do the hard work for you on their own



https://www.youtube.com/watch?v=egBHLYq1ncw#ws

... easy going ... :idea:







Gunther Rattay

Re: powerful Parallax Propeller microcontroller applications
« Reply #23, on August 20th, 2014, 04:21 AM »Last edited on August 20th, 2014, 04:41 AM

https://www.youtube.com/watch?v=w_GTOvkdM5Q#


Propeller emulation  of Commodore SID chip.

only one core used for sound generation (Propeller has 8 of them).

Video output also created in realtime by the Prop.

There is almost no additional hardware needed for the SID player ...

take a look >>>>

http://www.instructables.com/id/Build-your-own-Pocket-SID-Audio-Player/?lang=en
http://www.instructables.com/id/Building-a-Retro-Synthesizer-with-the-Pocket-Mini-/


https://www.youtube.com/watch?v=XQNfLsm7iEY#t=244