Input question from a newbe


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    What PIC are you using? Also what specific pin are you using?
    Shawn

  2. #2
    Join Date
    Jul 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    Quote Originally Posted by spcw1234 View Post
    What PIC are you using? Also what specific pin are you using?
    16F877a and RB4

  3. #3
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    Nothing specific to that pin that should cause an issue. Have you measured voltage at that pin? It sounds like it is floating, possibly due to a broken trace or a bad connection.
    Shawn

  4. #4
    Join Date
    Jul 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    Quote Originally Posted by spcw1234 View Post
    Nothing specific to that pin that should cause an issue. Have you measured voltage at that pin? It sounds like it is floating, possibly due to a broken trace or a bad connection.
    When measuring the voltage at the pin with the LED illuminated the presence of the meter causes the input to behave as expected and the voltage is around 300-400mv. With the LED off the voltage is ~5.4V. I have three boards that are all exhibiting the same problem so don't think it is broken trace or bad connection.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    If you haven't disabled LVP mode, it may acts funny. It may also act funny if you
    - haven't connect ALL Vss AND Vdd pins.
    - have left MCLR pin floating
    - haven't properly set all ADC register properly
    - have a noisy PSU, lacking of decoupling cap
    - etc
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2011
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    Quote Originally Posted by mister_e View Post
    If you haven't disabled LVP mode, it may acts funny. It may also act funny if you
    - haven't connect ALL Vss AND Vdd pins.
    - have left MCLR pin floating
    - haven't properly set all ADC register properly
    - have a noisy PSU, lacking of decoupling cap
    - etc
    LVP mode is disabled.

    - ALL Vss AND Vdd pins are connected
    - MCLR pin isn't floating
    - Believe ADC register properly set
    - Using 7805 and capacitors which are the same on the board that works and the ones that don't

    The other discovery is it appears to be more to do with that particular LED in the circuit I'm monitoring. As I mentioned, I'm monitoring 6 LEDs and 5 are working perfectly. If I swap the pin being used to monitor the problem LED the unreliability follows the LED. So swapping RB4 and RB3 the problem moves to RB3 and the LED then being monitored by RB4 works flawlessly.

    The strange thing is with an identical circuit the monitor of all 6 is fine (the components are all the same values but from different supplier). It looks like I must be on the edge of some tolerances or something and going to wait until I have access to a scope on Wednesday to see if that helps me see what is going on.

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: Input question from a newbe

    Looks like you're on to something with the tolerances.

    How about comparing datasheets between manufacturers in the meantime? It would serve as a good exercise.

    Robert

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