Thingie %1:
If you need to measure max. 1Volt, then you may want to have a 1V voltage source connected to Vref Pin. Something like " LM185-1.2/LM285-1.2/LM385-1.2
Micropower Voltage Reference Diode" or" LM4121 1.25V Precision Micropower Low Dropout Voltage Reference". Not 1V though.
But, if you set ADC module with Vref pin and connect Vref pin to Vdd, you simply waste a pin. You do not have to use Vref in such case;
bit 6 VCFG: Voltage Reference bit
1 = VREF pin
0 = VDD
If you set it as "0 = VDD" then you do not need to connect Vref pin to Vdd. You can use GP1 for other purposes.
Thingie %10:
May I recommend that you use comparator module of this PIC for "over load" dedection & protecton?
It will be much quicker.
You can set your comparator module to a level where you want the protection take action.
Last edited by sayzer; - 24th August 2010 at 15:31.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks