Timing issue


Closed Thread
Results 1 to 10 of 10

Thread: Timing issue

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Timing issue

    Hi,

    Three things ...

    1) you use the IOC interrupt ... so that rings the " Mismatch condition " bell in my head ... see Sleep datasheet chapter.

    2) Microchip recommends to place a NOP instruction just past the Sleep one, when using the feature this way.

    3) when you push a button ... you obviously release it one day ! makes two input changes ...

    Alain
    Last edited by Acetronics2; - 27th November 2011 at 09:57.
    ************************************************** ***********************
    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
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default Re: Timing issue

    2) Microchip recommends to place a NOP instruction just past the Sleep one, when using the feature this way
    try to add

    @ sleep
    @ nop

    If the GIE
    bit is clear (disabled), the device continues execution at
    the instruction after the
    SLEEP instruction. If the GIE bit
    is set (enabled), the device executes the instruction
    after the
    SLEEP instruction, then branches to the interrupt
    address (0004h). In cases where the execution of
    the instruction following
    SLEEP is not desirable, the
    user should have a
    NOP after the SLEEP
    instruction.

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