Delay with 50nS resolution...


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    batee's Avatar
    batee Guest

    Default Delay with 50nS resolution...

    I'm working with 18 pin devices (16F88 is what I'm using now, but I'm open to whatever). I need a way to do timing down to about 50nS resolution. By my calculations, with a 20MHz clock, a clock cycle will be 50nS and an instruction cycle will be 200nS. Even if I went with a 40MHz proc, I wouldn't achieve my goal.

    Is there a way to do resolution with a (hopefully small/cheap) PIC?

    Thanks,

    Bryan A. Thompson
    [email protected]

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


    Did you find this post helpful? Yes | No

    Default

    No, not with a PIC at this time.

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    50ns


    Whow !!!

    15 meters of lightspeed.... ;-)
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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


    Did you find this post helpful? Yes | No

    Default

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

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

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

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