Trying to measure time between two pulses on different pins.


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159


    Did you find this post helpful? Yes | No

    Default Re: Trying to measure time between two pulses on different pins.

    What if you were to use DT's Instant Interrupts? Have an interrupt that times out at some frequency - every time that interrupt happens, increment a counter. When the leading edge of the first pulse happens (could also be an interrupt), zero the counter. When the leading edge of the second pulse hits, read the counter and multiply by the frequency of the interrupt to determine the time.

    That was my first thought. Never actually done it - but I think it would work.
    Last edited by andywpg; - 21st August 2014 at 16:17. Reason: Spelling
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

  2. #2
    Join Date
    Sep 2006
    Location
    Indiana, USA
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Re: Trying to measure time between two pulses on different pins.

    Wow, I am shocked speechless.

    I have used Darrel's gifts to the PBP world for years now. Most of what I have done with PBP has had some kind of help or influence from Darrel, if not robbing his code line per line. I had his instant interrupts in mind when I started fleshing out this latest pic based project and was hoping he might help me yet again, even though he didn't know who I was.

    I was just searching around to see if he was still active and came across the word that he has passed.

    Now I don't even know what to say.

    He was just an awesome person for helping so many people with the gift of knowledge. I could tell by his enthusiastic posts that it really made him happy to help out and gift his ideas to all of us.

    Even when I was at my wits end with a project, just reading his posts would help me push thru my problem. It also made me want to say thank you a million times over and be as nice as I could for all of you that have helped me. Real appreciation. This stuff isn't always easy, and to have someone so willing to guide the way was amazing.

    Darrel Taylor will be missed by a whole lot of people, and I think that says a lot for the guy.

    R.I.P DT!

Similar Threads

  1. Measure time in mS between two pulses
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th March 2011, 07:20
  2. time measurement between 2 pulses
    By xvladx in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 27th April 2010, 17:33
  3. calculate time between pulses
    By hell_pk in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 20th October 2007, 16:49
  4. Count pulses between VARIABLE TIME
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2007, 12:44
  5. Timed pulses on 2 pins
    By Danie Joubert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th March 2004, 07:38

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