Help with ADC conversion


Results 1 to 7 of 7

Threaded View

  1. #5
    Join Date
    Oct 2008
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Darrel, Mister_E

    I am not very familiar with comparators and the use of timers. I have been trying to read more about how to implement them. But this is what I think I need to do. Feed signal into CCP1 pin (after setting up compare module) on say an 18F1320. Set timer1 to reset after every pulse (half cycle ~8ms) by using comparator interrupt flag. If interrupt flag is not set (voltage below threshhold), timer overflows and sets overflow flag. If this is correct, what I don't understand is where the reference voltage (comparator's trigger point)to determine a low voltage condition comes from. Its probably pretty simple but I haven't grasped it yet.

    Thanks for the help,

    Don

    Edit:
    After reading the datasheet again and again and again..... I think I may not have a clue what you guys are trying to tell me...
    Last edited by dbachman; - 1st February 2009 at 19:21.

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