Hello
This might give you some ideas
http://ww1.microchip.com/downloads/e...Doc/41215C.pdf
Hello
This might give you some ideas
http://ww1.microchip.com/downloads/e...Doc/41215C.pdf
Yes, I saw that but the best circuit (on p.8) uses an external comparator. Not sure if that can be implemented with the INTERNAL one?
"Do or do not, there is no try" Yoda
Why not? It will work.
But you can only use R3 and D1 connected to ADC pin.
Put Vdd as reference, take sample voltage, and, for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.
I don't see how this is any different from putting a resistor divider on the ADC input. The problem is that the divided voltage will track Vdd and the A/D reading will always represent the resistor divider ratio (or resistor/diode drop ratio) and thus will maintain a consistent reading despite changing Vdd. Am I missing something here?
"Do or do not, there is no try" Yoda
Hey, where I was mention voltage divider???
That isn't voltage divider.Originally Posted by pedja089
Biased D1 will produce almost constant voltage on ADC input pin. By keeping constant voltage on ADC input, and changing reference voltage(Vdd)
At least try to read response when you ask for help. That is all from me...Originally Posted by pedja089
Sorry pedja089,
I am having trouble understanding your very terse sentence. I would appreciate it if you could elaborate what you mean by this
As I understand it, my A/D reading will always be defined by the voltage drop of the diode forward voltage drop and so will not change. Remember I only have the one A/D input to work with in my very simple circuit.
"Do or do not, there is no try" Yoda
Connect one end of diode to ground, other to pic input and pull up resistor. Just like in schematic on page 8.
They suggesting to connect diode to ground thru mosfet to minimize current consumption. When mosfet is turned on, there is about 0,6V on pic input, and that voltage won't change.
You do not need to use mosfet, you can connect diode to ground permanently, or connect to output pin.
"Do or do not, there is no try" Yoda
Bookmarks