Comparator question


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default Comparator question

    I've never used a comparator on a PIC before so I had some questions before I dove into it. This is in reference to an 18F87J50.

    1. The comparator module can have a different reference than the reference I use to power the board. In other words, I can power the board with 2 AA batteries and then measure the voltage on a separate AA battery that is only connected to pin 15 (negative) and pin 18 (positive).

    2. I supply the point at which I want the comparator to trigger to pin 14. So if I want the comparator to trigger at 1.3V then use something like a voltage divider and put 1.3V on pin 14.

    3. If needed, I could also use AVdd/AVss or VRef+/VRef- for the comparator module.

    Are these statements correct? The main issue I'm having is that the voltage I need to measure does not use the same reference as the power supply for the PIC. The final design will use AVdd/AVss but I need to get something going now and can't reconfigure the PCB.

  2. #2
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: Comparator question

    Providing the reference and measured voltages have a COMMON return (negative) it doesn't matter what you use for the voltages.

Similar Threads

  1. Replies: 2
    Last Post: - 31st May 2013, 18:19
  2. 16f877 comparator
    By abofar in forum Code Examples
    Replies: 1
    Last Post: - 11th March 2012, 19:31
  3. Comparator Issues
    By Freman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd May 2008, 12:58
  4. Comparator 16F628
    By mat janssen in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 24th November 2004, 19:50
  5. need help on comparator
    By bertus in forum General
    Replies: 1
    Last Post: - 21st October 2003, 10:25

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