C in LMM mode could probably do less than 1 uSec (80 clocks). You *might* even be able to do that in CMM, but I'd guess that to be closer to 150 to 200 clocks, minimum.
I'm totally unfamiliar with the other memory models, so cannot comment. I find PASM so absolutely simple that I can't think of a reason why one would want to use anything else.
The OP seemed interested in speed, and PASM can assure that.
Hopefully he will embrace assembler for such simple things.
I for one am very willing to help, but only if that will be his approach. Spin is too slow for programmed timing, and everything else means I would have to learn a whole bunch of stuff that I'm not interested in.
Spin can be compiled to C or PASM with my spin2cpp tool, in which case it will be plenty fast for programmed timing. There are lots of ways to skin cats on the Propeller.
OK, I give up. Do it (for me at least) the hard way.
I was referring to the context of this post, and trying to help the OP onto a useful path, but I seem to be failing. I do believe in Spin, but not when tight timing needs to be used.
For that specific task, we absolutely agree, PASM is the way to go. Spin and C are simpler to debug though, so might be more attractive for a beginner.
Comments
I'm totally unfamiliar with the other memory models, so cannot comment. I find PASM so absolutely simple that I can't think of a reason why one would want to use anything else.
The OP seemed interested in speed, and PASM can assure that.
Hopefully he will embrace assembler for such simple things.
I for one am very willing to help, but only if that will be his approach. Spin is too slow for programmed timing, and everything else means I would have to learn a whole bunch of stuff that I'm not interested in.
Cheers,
Peter (pjv)
Spin can be compiled to C or PASM with my spin2cpp tool, in which case it will be plenty fast for programmed timing. There are lots of ways to skin cats on the Propeller.
Eric
Try writing a full GUI application in PASM and get back to me.
I was referring to the context of this post, and trying to help the OP onto a useful path, but I seem to be failing. I do believe in Spin, but not when tight timing needs to be used.
Cheers,
Peter (pjv)