+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Location
    Skopje,Macedonia
    Posts
    71

    Default PortA.5 don't react

    I have connected a push-switch to a PortA.5 on PIC16F876A.But it's not responding.Here is the code:

    DOWN VAR PORTA.5

    if DOWN=0 Then
    IF SETBAND = 1 THEN
    SETHEAT=SETHEAT-1

    write 1,setheat
    ELSE
    SETCOOL=SETCOOL-1
    WRITE 2,SETCOOL
    ENDIF
    endif

  2. #2
    Join Date
    Nov 2008
    Posts
    57

    Default Re: PortA.5 don't react

    Do you have portA configured as digital? do you have a pullup/pulldown resistor on your input pin?
    Regards
    CharlieM
    Using PBP3
    MCSPX

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,843

    Default Re: PortA.5 don't react

    http://www.picbasic.co.uk/forum/showthread.php?t=561


    Hi, we are pleased to see that you are using our forum.

    We'd like you to become a member of our community. Membership is FREE, please REGISTER and view our forums without these annoying reminders!

    Once registered you may post on the forums, download from the file areas and use the WIKI without interruption.




    Dave
    Always wear safety glasses while programming.

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