Question about the switch circuit in the PBP manual


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    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

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    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

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