Shop OBEX P1 Docs P2 Docs Learn Events
Need Help with Simple PWM Program. - Page 2 — Parallax Forums

Need Help with Simple PWM Program.

2»

Comments

  • 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.
  • pjvpjv Posts: 1,903
    Hi Jason,

    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)
  • pjv wrote: »
    Spin is too slow for programmed timing, ...

    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
  • PJV: >> I find PASM so absolutely simple that I can't think of a reason why one would want to use anything else.

    Try writing a full GUI application in PASM and get back to me. :)
  • pjvpjv Posts: 1,903
    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.

    Cheers,

    Peter (pjv)
  • 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.
Sign In or Register to comment.