Help with ADC conversion


Results 1 to 7 of 7

Threaded View

  1. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I'll second the Comparator idea, but with a little difference. (Don't filter the signal)

    Set a timer to have a delay of 20ms or more.
    Using the comparator Interrupts, reload that timer every time you get a pulse.

    If the voltage drops below the comparator's trigger point, the timer will overflow.
    Use the timer interrupt/flag to determine when there's an error condition

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3162&stc=1&d=123345227 4" />
    Attached Images Attached Images  
    DT

Similar Threads

  1. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  3. ADC conversion trouble
    By PICante in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 30th April 2008, 20:42
  4. ADC problem with PIC16F917
    By eetech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th March 2007, 21:22
  5. ADC problem
    By NacNud in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th December 2004, 02:27

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