ULPWU & PLVD on 12F635 & 16F684


Results 1 to 19 of 19

Threaded View

  1. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    question
    do you see a way to distinguish this ULPWU interrupt from some other pin that may have
    caused wake up from SLEEP ? i don't
    If you had int on change enabled for more pins, you would need to read the port & look for
    a change immediately on wake up. Other interrupts would set the flag bit associated with
    that interrupt. I don't see any specific flag bit for ULPWU alone.

    also
    in your example code PROBE is for your scope and not directly related to the ULPWU pin, when
    you TOGGLE PROBE
    Yes. I just used this pin for the scope to see the timing when using different cap and resistor
    values.
    your comment says 'clear mismatch register' does this mean that writing to any pin will clear
    the mismatch ?
    A normal wake up on change requires you to read or write to the port to clear the
    mismatch condition. Then clear the interrupt flag bit.
    i thought there was a mismatch bit for each pin
    The only pin that affects wake up on change is the one that has this feature enabled, and
    is an input. There aren't any mismatch bits, but there are individual interrupt on change
    enable and disable bits in IOCA.

    You can remove the TOGGLE PROBE & INTCON.0 = 0 after. This gets taken care of before
    the sleep instruction.
    Last edited by Bruce; - 21st August 2007 at 10:49.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. 16F684 Basic Functionality
    By munromh in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th September 2009, 20:28
  2. ICSP and 16F684
    By onaclov2000 in forum Schematics
    Replies: 4
    Last Post: - 5th March 2009, 17:31
  3. help with HPWM on 16f684
    By kimvellore in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd May 2006, 08:05

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