Help with ADC conversion


Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If the voltage threshold is a single fixed value, I would use an comparator interrupt with some basic filtering on the Voltage comparator input. This way you can do whatever you want during the time an Low-Voltage Alarm occur.

    Still possible to use a Timer Based ADC reading... but you need to consider the ADC sampling time + Timer interrupt time in your latency.. so maybe not as this "almost instantly"

    Another possible solution... use a zero-cross interrupt and read the voltage at ~0.707Vmax... not yet "almost instantly" either.
    Last edited by mister_e; - 31st January 2009 at 23:48.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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