PIC never reacts to Button


Closed Thread
Results 1 to 4 of 4

Hybrid View

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


    Did you find this post helpful? Yes | No

    Question Context needed !!!

    Hi,

    The problem could be ... at first, once you release you button ... value comes back to the default.

    you ,may be, have to memorize the last button press action ...


    Now ... dependinding on your PIC ( BTW ... Which one do you use ??? ) PortB.6 and 7 can be shared with ADC, ( ADCON1 <> 7 !!! ) , clock ... or sthg else.

    Osc settings are also necessary to understand how your circuit is REALLY working ...

    Your scheme could be useful, in the end, to see if any pulldown on your inputs ...

    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
    Nov 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Hi again
    Thanks a lot for the reply and to all,

    I use the pic16f876, PortB outputs an LCD pins 0 to 5, pulse out are on 6 and 7.
    PORTA.0 input where a button with a 10 K pull up resistor connected.
    No master clear connection.

    But even with or without pull ups or master clears nothing changes. I think I have to learn how to activate or disable internal pullups too.

    I'll consider your remarks and try them out and come back later.

    Regards

    Alfonso

Similar Threads

  1. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  2. Replies: 5
    Last Post: - 12th September 2007, 15:59
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  4. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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