Shop OBEX P1 Docs P2 Docs Learn Events
jm_etimer an pause — Parallax Forums

jm_etimer an pause

LtechLtech Posts: 380
edited 2013-06-16 10:01 in Propeller 1
Hello

I try to freeze the jm_etimer using et.Hold.

Nothing happens ?
e.clear works.

Thanks

Comments

  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-06-14 12:17
    Since I am the JM that wrote that, I'll have a look!
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-06-15 09:58
    Okay, that object was pretty old and use a technique I tend to avoid now: writing to the PASM code from Spin before launching it into a cog. I have updated the PASM code for a PAR-only interface so that it can be used with other languages. I've also made changes to register names and a couple method names so you'll need to update your source code.

    If you run the attached demo in PST you see the clock running (as before). Press a key and the timer will hold; press another and it will resume. Sorry if my old code caused you any inconvenience.
  • LtechLtech Posts: 380
    edited 2013-06-16 07:54
    Thank you ! You are the chief

    It run fine just now.
    I use the timer for sending clocks trough spinneret UDP , set , hold and reset trough Mac program

    Strange nobody stumble on this before ?
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-06-16 10:01
    Perhaps nobody needed that feature. At any rate, thanks for pointing out the problem as it forced me to review and update old code.
Sign In or Register to comment.