Only on page 14....like that's reasonable for this simple project???? And ya ain't done yet!
In the actual prototype I am using the interinal osc as I want to keep parts count down.
I have a bias towards
things that just work and some people will disagree with this, but I always use a crystal. It just works. Every single time. Using the internal oscillator can be problematic in Swordfish, so I avoidcit. If you were building a thousand of these things, keeping the BOM as small as possible makes sense. In this case, time and simplicity are worth the
14 cents a crystal and 2 caps add to the cost. I did use higher quality caps, so you could probably squeeze that down to 12 cents if the budget is tight.
Changing from internal osc shouldn't affect the ADCvoltages? I only need the voltages....
It would be
so awesome that by page 14 of this....[interal agrument ensues over term to use - must be polite]....forum thread that you actually demonstrated that you learned something. You neither want nor need
voltages from the ADC. And if you actually did want voltages, how would, how could using the internal oscillator or a crystal impact ADC readings???
Here's a final effort on ADC counts vs. voltage:
If you are trying to read the voltage a battery or from a power supply, you would want to end up with voltage. To read
voltage, you need a stable
reference. You don't have a stable reference, so what you keep trying to call volts is
garbsge.
You are essentially trying to read a pot - a pot with fixed taps. You don't freaking care what the
voltage is. You care only about the ratio between
full scale and which tap position you have selected. Say you pick the middle position of the pot. The resistance from the wiper to either terminal is the same. If your supply voltsge is 5, the output voltage is half of that. If the supply voltage is 57, the output is still half of that. You don't care what the exact voltage is. Only the ratio between output and input...which is what the ADC values give you.