18F6722 ADC Questions
Posted: Thu Jan 25, 2018 3:09 pm
Again, apologies from someone who's still learning fast but a couple of dumb questions concerning the ADC channels of the above chip if I may.
I intend to use a voltage reference of 4.096V and I realize that any voltage on the ADC channels above this will result in the ADC "topping out" but will any voltage over the reference but under VDD physically damage the ADC channel? I have 820 ohm resistors in series to limit any current to safe levels but the data sheet is not very clear.
A second question, whilst researching using the VRef function I notice that with some chips, a lump of C code seems to be necessary to configure registers. Does the 18F6722 need the same or is it a simple matter of setting VRef in the ADC properties.
Thanks for your patience
Chris
I intend to use a voltage reference of 4.096V and I realize that any voltage on the ADC channels above this will result in the ADC "topping out" but will any voltage over the reference but under VDD physically damage the ADC channel? I have 820 ohm resistors in series to limit any current to safe levels but the data sheet is not very clear.
A second question, whilst researching using the VRef function I notice that with some chips, a lump of C code seems to be necessary to configure registers. Does the 18F6722 need the same or is it a simple matter of setting VRef in the ADC properties.
Thanks for your patience
Chris