Parallax Propeller 2 - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: April 21, 2021, 06:29:37 pm
content: The Parallax Propeller (P1) has been around for over a decade, and development has been ongoing for its successor, the Propeller 2 (P2) for almost as long. P2 development has taken so long that I haven't really been following its progress, so I was surprised recently when I went to the Parallax website looking for a sensor and found that the Propeller 2 is now an actual product.In many ways it's similar to the original Propeller in that it has 8 32-bit processor cores and general purpose I/O ports that are used to implement peripherals such as I2C, UARTS, and SPI. The P1 has 32 I/O pins, and the P2 ups that to 64 I/O pins. Each I/O pin can be used as either digital input/output (serial/async, PWM, quadrature decoder, and a few other functions), an 8-bit DAC, or a delta-sigma ADC.Hub RAM has been expanded from 32KB to 512KB and there's now a 32-bit CORDIC coprocessor. They've implemented a hidden debug interrupt for breakpoints and single-stepping. The max CPU clock has been raised from 80 MHz to 180 MHz.Overall, it's a good mix of new features and capabilities, but there are some disappointments as well. I was hoping they'd increase the number of CPU cores (called Cogs) from 8 to 16 (or more), but that didn't happen. It's also unclear to me whether each cog can execute code from hub RAM directly--the P1 could only execute code from the 2KB of RAM local to each cog. The P2 ups the cog-local ram to 4KB, but that's still a big restriction and it would be nice if cogs could directly execute code in external (to the cog) memory.Breadboard fans will be disappointed that the P2 is only available in a 100 pin TQFP package (the P1 was available in a 40 pin DIP package).https://www.parallax.com/propeller-2/

author: tggzzz
author_rank: Super Contributor
timestamp: April 21, 2021, 07:15:41 pm
content: Hardware parallelism is easy; it has been donemanytimes over the decades.Software that can make use of the parallelism is the weakness.An ecosystem that merges system architecture/patterns with hardware capabilities with software capabilities is a rare thing. We need more and better.

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 21, 2021, 07:29:15 pm
content: I was intrigued by, but never really interested in the previous version, but the v2 looks like a nice improvement.Reading the documentation, yes, the cogs can run code from hub RAM (there is 512KB of it):QuoteThere is a restriction though, that could be annoying:QuoteAnd all the cogs can also access hub RAM simultaneously for data access.I took a look at the Spin2 language, and it doesn't look particularly appealing to me. I'd be curious to give this chip a try though.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: April 21, 2021, 08:44:11 pm
content: Quote from: SiliconWizard on April 21, 2021, 07:29:15 pmThanks. I haven't gotten that far in the documentation yet, but it's nice that the previous restriction is (mostly) lifted.QuoteThat's interesting. So it's not really a "hub" anymore, at least not in the same way it was on P1 where a cog could only access hub RAM during its slot.QuoteSpin is a curious language--useful for quick one-off tasks and proof-of-concepts that would take longer on a more traditional MCU. I've implemented a few projects with the P1 using a combination of Spin and PASM (the P1's assembly language). The IDE is fast (it's written in x86 assembly language), but has no debugging facilities at all. The ecosystem is small and mainly restricted to the forum on the Parallax website. There also used to be a bi-monthly column devoted to the Propeller inNuts and Voltsmagazine, but I don't know if it still exists.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: April 25, 2021, 09:35:31 am
content: Do you have any price info on the chip itself?

author: woofy
author_rank: Frequent Contributor
timestamp: April 25, 2021, 09:58:05 am
content: https://www.parallax.com/product/propeller-2-p2x8c4m64p-multicore-microcontroller-chip/

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: April 25, 2021, 10:19:31 am
content: The price is so high! it does not make any sense

author: BradC
author_rank: Super Contributor
timestamp: April 25, 2021, 12:08:54 pm
content: Quote from: SiliconWizard on April 21, 2021, 07:29:15 pmAs a pascal user Spin made a bit of sense to me, then I wrote a spin compiler and it made a lot more sense. There’s a strong history there going back to the basic tokenisers Parallax have had for years.I still use the prop for quick prototypes, but for 99% of what I do can be done in a PIC for a 10th of the cost.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: April 26, 2021, 05:51:27 pm
content: Quote from: ali_asadzadeh on April 25, 2021, 10:19:31 amGiven the amount of work that went into the P2, and the small volume they're likely to ship (it is a very niche product, after all), that's the only way for them to recoup their development costs. Parallax is a tiny company with only 35 employees--hardly an ST or an NXP.

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 26, 2021, 06:11:21 pm
content: Fifteen bucks for what can be considered a specialty chip is NOT expensive.

author: techman-001
author_rank: Frequent Contributor
timestamp: April 26, 2021, 08:43:10 pm
content: Quote from: SiliconWizard on April 26, 2021, 06:11:21 pm$15 bucks is dirt cheap from my POV. The first micro I ever saw, the National PACE 16 bit cpu in 1976 cost $270 each.I paid $11.50 USD each for six STM32H7xx in Jan 2021.Can you even get a pizza for $11 USD any more ?

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: April 27, 2021, 06:33:34 am
content: QuoteThe price is high, they should make it around 1-2$ each, so the sales would sky rocket, with 15Bucks I can have a zynq20 or an STM32H7 with two Gowin FPGA's with 20K LUT and 32MB sdram each! or I can have 3 allwinner GHz CortexA parts! the choice is yours.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: April 27, 2021, 03:19:24 pm
content: Quote from: ali_asadzadeh on April 27, 2021, 06:33:34 amSkyrocketing sales are not going to happen, at any price. The P2, like the P1 before it, is a quirky, non-mainstream MCU that's unlikely to derail the ARM juggernaut. If anything has a chance to replace ARM in the MCU marketplace, it's RISC-V, not the Propeller.

author: tggzzz
author_rank: Super Contributor
timestamp: April 27, 2021, 03:26:22 pm
content: For any radically different item (processor/language/etc), there has to be a clearly articulated way in which it is radically better than the existing mainstream offerings. Ideally "radically" means ten times; two times isn't sufficient.I never saw such a USP for the propeller.

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 27, 2021, 03:34:52 pm
content: The Propeller chips are niche controllers IMO, but they have been around for 15 years, so I guess they have a market.If they don't fit your needs, just use something else.Why would some people assume that all MCUs should be exactly the same at an ultra low price? Such MCUs do exist, just use them and let people with other views and targetting other markets do their job. I find it funny that some would challenge the relevance of products that have been around for that long - just start your own company designing and selling MCUs, and let's see how far you get.As to what tggzzz said - which is a more technical point - I personally agree, but I'd still be curious to give them a shot and see if my prejudice is justified.Edit: Also note that the Propeller 1 has been made open source for years now:https://www.parallax.com/propeller-1/open-source/

author: Bassman59
author_rank: Super Contributor
timestamp: April 27, 2021, 04:05:50 pm
content: Quote from: ali_asadzadeh on April 25, 2021, 10:19:31 amI don't know, people happily design boards that use off-the-shelf Arduinos as the compute/control element and the Nano is $20.

author: tggzzz
author_rank: Super Contributor
timestamp: April 27, 2021, 04:17:31 pm
content: Quote from: SiliconWizard on April 27, 2021, 03:34:52 pmI quite agree. Kicking the tyres can be fun and informative.When I looked at the XMOS xCORE+xC the USP was immediately obvious: hard realtime limitsguaranteed by design, not by executing/measuring andhopingyou had encountered the worst case.I didn't see anything comparable for the propeller, just that it was different.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: April 27, 2021, 05:05:30 pm
content: The Propeller caters mainly to the hobbyist and education markets, neither of which are high volume, nor are they ever likely to become so. The P1 has been around a long time because it doesn't cost Parallax much to keep producing it as long as there is a small demand for it.It really doesn't matter what anyone here thinks about the relevance of the Propeller, the XMOS parts, or anything else--the market will decide what lives and dies. Parallax have apparently been selling enough P1 parts over the last 15 years to keep it in production.

author: Monkeh
author_rank: Super Contributor
timestamp: April 27, 2021, 05:19:31 pm
content: Quote from: ali_asadzadeh on April 27, 2021, 06:33:34 amThis coming from the guy who thinks he can manufacture DRAM sticks cheaper and better in small quantity than the companies which sell millions of them a year.