COMPARATOR - Voltage Reference settings


Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938

    Default COMPARATOR - Voltage Reference settings

    Oooops! I mixed up things!!!

    I'll have to use AD instead of Comparator.

    Going back to my datasheet for some trials...

    -----------------------------------
    Hello,

    I want to measure a current (voltage) like in my simplyfied shema but I'm not sure this is possible this way.

    To not affect the load's voltage, I put the precision resistor at the voltage regulator's input.
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2078&stc=1&d=119187055 6">

    The circuit is 12V powered and, of course, the PIC has a clean 5V feeding.

    Assuming the load draws from 0A to 1A, my 1ohm precision resistor R1 will drop between 0V and 1V.

    A) Is it possible to measure the voltage difference this way?

    B) Is correct to connect the R1 to CIN+ and CIN-?

    C) What will the comparator's registers (CMCON0 & VRCON) settings be?

    Still a little lost with the use of comparators...
    Attached Images Attached Images  
    Last edited by flotulopex; - 9th October 2007 at 04:24. Reason: Mixed up things!!!
    Roger

Similar Threads

  1. LM35DZ and 18F2455 settings
    By Mark J in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th January 2008, 08:31
  2. Config settings
    By Adrian in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th December 2007, 18:24
  3. ADC - 2 channels but not same voltage reference - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2007, 19:03
  4. ADCIN - AD settings are wrong
    By teverett in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th December 2006, 16:32
  5. Replies: 7
    Last Post: - 14th July 2006, 03:21

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