Debounce PULSIN?


Closed Thread
Results 1 to 14 of 14

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    in the TTL stone age, we was using an RC circuit. output of the switch to a pull down resistor an to a capacitor, the other side of the capacitor to the PIC input and to a pull down resistor.

    Some will also prefer to use a Schmitt trigger or a voltage comparator with a close to VDD treshold.
    Steve

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

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    Hi, Picmen

    Being a little mocking, I would point out this kind of measure is based on DIGITAL inputs and not Analogic swinging voltages ...

    The answer is here: you want to measure something, but don't really know what !!!

    If you use a calibrated PAUSE, from the first detection, say 20ms ( i.e.) not to deal with bouncing and use a RCTime command just after, you just will have to add the PAUSE time to your result ...
    The Button command could also be taken for that ... as debouncing time is known. of course always followed by a RCTime.

    Those are just little ideas ...

    Alain

  3. #3
    Warrier's Avatar
    Warrier Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Tomexx:

    Are you measuring pulse width (dwell time from your machine)? If yes, then how do you define pulse width on a noisy bouncing pulse?

    If you know the rising or falling edge jitter, and if you have an additional output pin, then you can output a one shot (triggered by input "noise") having width wider than bounce width and feed back to the input to "clean" incoming machine pulses.

    But then you also say "I have done pulse counting...."
    If pulse counting is what you need then I would suggest using the Button cmd. It has built in debouncing and state of pulse (hi or low)

    Pulsin is used mainly to measure pulse width.

    -warrier

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 10:17
  3. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 08:02
  4. Pulsin 16F819 problem
    By rekcahlaer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2007, 13:52
  5. PULSIN and RCTIME
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th November 2004, 14:45

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