Selective generation of clrwdt?


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Henrik

    The good question is :

    Do you really need the Watchdog to be enabled ??? ... as it's use is limited to SLEEP and NAP PbP commands ...

    In other words ... do you use those two commands in your Program ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default

    Hi Alain,
    No, I'm not using Sleep or Nap. But as you know that's not only what the WDT is used for... However, AFIK the program has never locked up or anything like that so you may be right, perhaps I should simply kill it.

    I'm still interested in an alternative solution though if anyone else has an idea!

    /Henrik.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Henrik

    Could your test be replaced by :

    Code:
    If AnalyzeMode AND ! trigger THEN
        trigged = 1
    Endif
    Alain
    Last edited by Acetronics2; - 12th April 2010 at 19:38.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default

    Yep, that only produces a single clrwdt. On the other hand it produces CALLs to both LNOT and LAND, so two calls = 4 cycles + whatever code is actually in the LNOT and LAND routines. All in all I think it'll be slower than the previous version - unfortunately.

    I know, I'm hard to please.... ;-)

    /Henrik.

  5. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Disassemble program, remove offending clrwdt commands, reassemble program.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts