Shop OBEX P1 Docs P2 Docs Learn Events
Time Mesurements? — Parallax Forums

Time Mesurements?

bennettdanbennettdan Posts: 614
edited 2006-07-15 14:00 in General Discussion
Hello,
·· I am asking if anyone can clear something up for me. How to convert time small us time mesurements to frequency?
Like 512 us pulse what would the frequency be? Also how to figure it?
Thanks

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-07-15 00:57
    t = 1 / f··· f = 1 / t

    The time of a waveform = 1 / freq (Hz), while the frequency of a waveform is 1 / time (sec).

    However, you cannot derive a frequency based solely upon a pulse-width (like getting PULSIN.)·

    If a pulse train has a period (pulse-to-pulse), repetition rate ("rep rate")·of 512 usec, its freq·is =·1 / 0.000512, = 1953 Hz.

    Post Edit -- in the attached drawing, both waveforms have different pulse-widths (and would·yield different results for a PULSIN), but they have the same period ("rep rate"), they are the same frequency.

    Post Edited (PJ Allen) : 7/15/2006 1:10:13 AM GMT
    444 x 221 - 5K
  • bennettdanbennettdan Posts: 614
    edited 2006-07-15 09:05
    Yes,
    I see what you are saying, so 1 us is 1/1000 of a ms then right ?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-07-15 13:53
    True.
  • bennettdanbennettdan Posts: 614
    edited 2006-07-15 14:00
    Thanks for the help PJ Allen
Sign In or Register to comment.