Measure cable length with a PIC?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Problem is, even with a PIC with a 40Mhz clock, the quickest interval you can measure is 100nS. In the cable i'm using, signals travel at 71% the speed of light. Which means 100nS equates to 56.8m. Obviously thats nowhere near the resolution required. To measure within 1m i'd need a clock speed of 2.2GHz - Obviously not going to happen on a pic.

    Im wondering how the hand-held cable testers manage that kind of timing.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Not sure if this will work as the resistance will be low on a short cable, but this might be a place for RCTIME.

    Known capacitance find the resistance. Calculate for wire diameter.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. DLR3 Data cable to pic
    By ZOOM in forum GSM
    Replies: 1
    Last Post: - 14th May 2010, 16:50
  2. DS1820 Max Cable length ?
    By dccch in forum General
    Replies: 2
    Last Post: - 24th January 2008, 08:44
  3. Maximun Cable Length for PIC to LCD
    By wildbilly in forum mel PIC BASIC Pro
    Replies: 52
    Last Post: - 1st January 2008, 20:00
  4. PIC to PIC Serial data using Cat5 cable
    By Andy Wood in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd May 2007, 03:42
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

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