How to count the time while reading ADC ?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default Re: How to count the time while reading ADC ?

    I can offer you ideas only.

    If you're comfortable with interrupts, get a timer to ring every 1mS and keep tracking a variable that increments every ring and then use that variable that throughout your program. Use this as the reference timer for everything on your system.

    Other way, you use a hardware timer and poll it for overflow every fractional time. Then count a number of fractions equal to the 2 seconds you require. This does not need interrupts, but will block till the timer overflows

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: How to count the time while reading ADC ?

    its almost like deja vu again
    same answer as here
    Warning I'm not a teacher

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Unhappy Re: How to count the time while reading ADC ?

    Thanks for remember !!! I forgot the topic... Mea culpa, I became too old

Similar Threads

  1. Reading a LTC1865 ADC
    By JTCullins in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th December 2011, 14:54
  2. ADC reading voltage divider....
    By RFEFX in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th December 2008, 07:33
  3. Count pulses between VARIABLE TIME
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2007, 12:44
  4. Reading A Photo Resistor using ADC
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 09:28
  5. adc reading ac
    By Ruben Pena in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th December 2005, 21:57

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