How to calculate PIC sampling frequency


Closed Thread
Results 1 to 2 of 2
  1. #1
    minmin's Avatar
    minmin Guest

    Talking How to calculate PIC sampling frequency

    Hi, I am using PIC18F458 with 10 bit ADC, and 4Mhz Oscillator. Is there anybody knows how to estimate the fast sampling rate for single channel?

    thanks

    Min

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Are you saying,

    you will define a sampling rate say 50 microseconds, then, when you get a sample you would like to know how long was the actual sampling, was it less then 50 or more?

    Is this your question?

    or you may already know that you can define the sampling rate as

    DEFINE ADC_SAMPLEUS 50 'ADC sampling time in microseconds

    You change 50 to say 25, then you get two times faster sampling rate.

    If that was your point.

    or you would like to have a different sampling rate for a specific channel?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Replies: 33
    Last Post: - 8th September 2010, 11:28
  2. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 01:47
  3. How to calculate SCLK frequency?
    By GCollier in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th January 2006, 13:30
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. Frequency Counter using PIC and PicBasic
    By PICtron in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 28th January 2005, 06:20

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