Question about the switch circuit in the PBP manual


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Location
    Michigan
    Posts
    70

    Default Question about the switch circuit in the PBP manual

    The switch circuit in the PBP manual shows the input pin pulled up through a 10k. That 10k then gets grounded through a switch causing a low on the input. I have noticed that the capacitance of the pin interacting with the trace inductance causes some very fast ringing. I am seeing -2Volts for about 25ns. Why is this ok? I assume it is since this is a very common method for reading switch inputs on micros and various other IC's but it violates the minimum voltage of the pin.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If your trace is short, the ringing is probably caused by your test setup (like a scope probe with a 6" ground lead.

    The PIC probably doesn't "see" that -2V signal. Even if it did, the body diode (on the input of the pin) would clamp it to a diode drop below GND.
    Charles Linquist

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637


    Did you find this post helpful? Yes | No

    Default

    Also, to avoid false readings and weird behavior of the switch a pause should always be set after a ground is detected (if a pullup resistor is used). This pause is for debouncing the switch and to let the ringing pass. In an 'ideal' switch you wouldn't need this debouncing pause period, but a real world switch will mechanically oscillate and act strange.

    Robert

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,613


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by schu4647 View Post
    I am seeing -2Volts for about 25ns. Why is this ok? I assume it is since this is a very common method for reading switch inputs on micros and various other IC's but it violates the minimum voltage of the pin.
    Hi, schu

    1) note most of the the inputs have clamp diodes to VDD and VSS ... ( Hi , Charles ...)

    sooo ... not less than - .6 volts ...

    2) min Detection time of Pic® pins is 50 ns ...

    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 " !!!
    *****************************************

Members who have read this thread : 1

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