Shop OBEX P1 Docs P2 Docs Learn Events
Delay After Interrupt — Parallax Forums

Delay After Interrupt

edgellmhedgellmh Posts: 85
edited 2008-10-14 19:55 in General Discussion
The following code and circuit work as expected except that there is a 67 second delay before the interrupt returns to main.

Another issue is that the INTR_RISE qualifier does not get highlighted in blue suggesting that it is not seen by the compiler.

Comments

  • BeanBean Posts: 8,129
    edited 2008-10-13 22:21
    I would forget about the 10M resistor (it's way to high) and just use the PULLUP on the pin.
    Don't have WKPND_B as the last instruction before the RETURNINT (add a NOP if need be).

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "It is our choices, Harry, that show what we truly are, far more than our abilities."·Dumbledore from Harry Potter

    www.iElectronicDesigns.com

    ·
  • edgellmhedgellmh Posts: 85
    edited 2008-10-13 22:28
    Taking the 10 M resister out and running the 5V line directly to pin RB.3 prevents detection of the 12V pulse.

    marshall
  • VelocitVelocit Posts: 119
    edited 2008-10-14 00:06
    You're supposed to remove the +5V source and 10 MOhm resistor altogether and then enable the internal pull-up resistor on pin RB.3.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
  • edgellmhedgellmh Posts: 85
    edited 2008-10-14 19:55
    The 67 second delay is because the INTERRUPT command is commented out!
    A friend trouble shot this for me.

    marshall
Sign In or Register to comment.