Question for Parallax staff from potential industrial user.
Mickster
Posts: 2,694
Questions that are not being answered that will affect future decisions:
Regards,
Mickster
- Are we going to see some support for PropBASIC or are we stuck with GCC for a high level language when PASM-type performance is required?
- What can we expect from the P2 in terms of quadrature counter capabilities?
Regards,
Mickster
Comments
Anything that runs on Prop 1, and is popular, will port across quite quickly to Prop 2.
If you need QuadCtrs, and also need a solution before Prop 2 is in production, then you could use a CPLD alongside a Prop 1.
The Ctr docs for Prop 2 are close, so when those are released, you could easily design such an external quad solution to port easily to the Prop 2.
Something like the Lattice MachXO2-256, should manage a number of quad ctrs.
While it is not considered a "professional" language it combines speed and user friendlyness.
An official support in simpleide would push the development and offer the users a terrific tool.
I would like to know if propbasic will never be supported for the same reasons.
This silence from parallax is strange, considering the usual openness offered us. Moreover we could accept any answer, probably...
Massimo
My personal feeling is that SimpleIDE should be kept simple, it already addresses Spin, which a very few people are using, within SimpleIDE. The problem I have is, it looks like their is going to be a lot of different IDE's - Eclipse, SimpleIDE, New Proptool, and whatever else comes along. So, maybe somebody, not me, should take up the challenge and choose, maybe Eclipse, and do the pluglins for Propbasic, Spin, C, and whatever else comes to mind, that will work with PI and PII.
Ray
I have been experimenting with closed-loop servo-motor control on the P1.
However, I need 4 axes, each equipped with 2 quadrature encoders as I use feedback from both the motor shaft and the driven load (aka: dual loop) at frequencies exceeding 1.6M quadrature counts/sec.
I have already been looking at dedicated quad-decode/counter chips that I could hook to the Prop via SPI. I also need lots of DIO which I could also expand in a similar way.
PropBASIC is my favorite programming language for the Prop as it is sooo easy to use and results in code that I can still understand even after not seeing it for a couple of weeks.
Chip stated that the P2 Spin language could be 20X faster than on the P1. But isn't PASM 100X faster than Spin right now (I could be wrong here)? PropBASIC generates PASM code.
So, the easiest to learn, most readable language available for the P1 is already 5X faster than Spin will be on the P2?
OTOH, I am sure that the P2 Spin will be more than adequate for my purposes and quad-counters in hardware will be wonderful.
Regards,
Mickster
Now back to something max72 said: I tend to think that if people are using PropBASIC for "professional" work it can fairly be called a "professional" tool; and it would appear that Mickster and others are doing (or are planning to do) simply that.
Likely it is this :
http://www.usdigital.com/products/interfaces/ics/lfls7366r-s
Nice package, and tolerable price.
I rechecked my Quad in CPLD notes, and these are the fit reports for a QFN32 MachXO2
This code is untested, but is used to check what fits in CPLDs..
So you can easily fit 4 channels of 24 bit Quad + SPI read into a 32QFN, and (just) fit 4 channels of 32 bit
To manage 8 channels, in one package, you bump to a MachXO2-640, which comes in 100tqfp.
That's the one!
Cheers!
Mickster
I'm fairly certain that you can track quad counters at ~2.5Mhz in PASM on the P1, you might be able to track 4 at that speed, definitely 1. This is a per-COG figure. A nice way to do this would be to do 2 encoders and servo control in 1 COG, then run 4 COGs to do what you need.
In all fairness, PropBASIC is a 3rd party language that was developed and maintained by a non-Parallax entity. Parallax has only shed light on languages they directly support and maintain.
Please consider these a useful alternative to PropBasic. Why so? Well, they are interactive, not the write-compile-load cycle that can be more tedious in the developmental phase where you might be checking for hardware compatibility and wiring problems.