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...
Bookmarks