Delay with 50nS resolution...


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Your calculator is 10.3mm faster than mine....

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default Beer slows your reaction time!

    Beer slows your reaction time!

    In one nanosecond, light travels about 22.26 cm in beer.
    (Beer has a refractive index of 1.3466).

    In one nanosecond, light travels exactly 29.9792458 cm in a vacuum.
    (Refractive index of a vacuum is defined as having a value of 1.0).

    In one nanosecond, light travels about 29.89 cm in air.
    (Refractive index of air is 1.003).

    The exclusion of water from this theory was intentional.
    (RI 1.33).


    Luciano

  3. #3
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Of course you can! (And you were worried, right?)

    Courtesy Electronic Design mag:

    [Design Briefs]
    Measure Nanoseconds With A PIC Microcontroller

    Jeffrey L. Rothman, Richard Michta
    ED Online ID #5649
    September 1, 2003

    "Based on a PIC16F887 MCU, this circuit described measures pulse lengths from 2 to 950 ns with a 1-ns resolution."

    http://www.elecdesign.com/Articles/A...5649/5649.html

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    But it's not a real-time measurement, but one that is delayed by the response of the ADC spinning up, and the PICs associated instruction processing. The equivallent of "Can I use an Abacus to calculate the National Debt?". Sure you can if you wait long enough for an answer....

  5. #5
    batee's Avatar
    batee Guest


    Did you find this post helpful? Yes | No

    Default

    I think it's a shame that Ernie contributed a useful answer, the first I've seen around these parts, and gets mocked for it? By an admin?

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    No, it was a valid answer. If you want to convert your Digital signal to Analogue, then wait, then have it converted back to Digital... then that's fine. But as at today, they've not made a PIC that can measure 50nS without a heap of external help.

    >the first I've seen around these parts

    Are you suggesting that this forum doesn't provide useful answers to it's members?

  7. #7
    batee's Avatar
    batee Guest


    Did you find this post helpful? Yes | No

    Default

    >the first I've seen around these parts

    Are you suggesting that this forum doesn't provide useful answers to it's members?[/QUOTE]


    Quite.

Similar Threads

  1. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. RF Transmitter
    By et_Fong in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th October 2005, 16:34
  4. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55
  5. Problem with saving to EEPROM...
    By Tear in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st July 2005, 00:10

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