First try at DT_INT's, I failed! help please!


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: First try at DT_INT's, I failed! help please!

    I’m using X1 board with 16F877A and pulsing RB0 with a wire lead.
    That's the problem.

    If you are using a wire to +5V, there's nothing to pull it back down.
    The pin will hold a charge, and will slowly drain off, allowing it to re-trigger after a few seconds.

    If you add a pull-down resistor it should work better.

    Or, you can turn on PORTB pull-ups (OPTION_REG.7 = 0), make PORTB.4 LOW so you can use SW1 pushbutton.
    Changing to OPTION_REG.6 = 0 will make it trigger on the falling edge (button press) instead of the rising edge (button release).
    Last edited by Darrel Taylor; - 5th January 2012 at 17:36.
    DT

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