Remove Text Formatting
Loading...

+ 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
    59

    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,908

    Default Re: PortA.5 don't react

    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