Thank You for such fast reply!
So :
If I connect pin 6 to VDD - it's correct ADCON0= %10001101.
In this case, this code
Code:
adcin 3, read_volt
read_volt=read_voltage * 5000
read_volt=div32 1023
it's correct ? It's possible to read so at AN3 the voltage between 0 and 5 volts(VDD)?
I need to read maximum 1 volt...
Some explanations: I intend to use ADC of 12F675 like "over-current detector" for one electrical motor. The montage is used in autovehicle,where, I think, it's spikes of voltage and I search the way to avoid PIC dammge.
Bookmarks