Can't make RA1 a digital Input on (10 out of 20) 16F887.


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Can't make RA1 a digital Input on (10 out of 20) 16F887.

    Hi,
    So, it's not only the PIC that differs on the ones that doesn't work, you are changing the whole board, including the PIC, correct?
    I think that since it works on some PICs (or boards rather, if that's the case) the code is likely not the fault. Had it been a faulty register setting it wouldn't have worked on any of them - but I've been wrong before....

    What's the supply voltage of the PIC (5V?) and what voltage levels are present at RA1 with the switch in either location?

    You say that you ground the pin to "make" the signal, is it possible that there are TWO (or more) grounds in your system and that they aren't connected. When you measure the voltage you reference the "correct" ground which, for whatever reason, isn't connected to PICs ground so it doesn't see the voltage that your DVM does?

    I'm pretty sure it's not RMW, especially so since your two outputs are on different ports. A Read Modify Write issue usually presents itself when you're trying to do several consecutive bit operations on a single port.

    I'm leaning towards a hardware issue of some sort though it IS strange that it works with "any other pin except RA1".... doesn't make sense but things usually doesn't untill you find the real reason.

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Can't make RA1 a digital Input on (10 out of 20) 16F887.

    The PIC's are "soldered in" on all the boards you have?

    All the boards are from the same batch?

    All the PIC's are from the same batch and silicon rev.?


    George
    Last edited by towlerg; - 29th September 2013 at 12:51.

Similar Threads

  1. 16f887 portc input problems
    By lockjawz in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st March 2011, 14:02
  2. Replies: 2
    Last Post: - 1st May 2009, 08:23
  3. Really slow digital input
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 30th March 2007, 04:06
  4. 18F4550 digital input
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 29th March 2007, 02:43
  5. Replies: 2
    Last Post: - 5th June 2005, 19:55

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