I replaced the first line with this REFCTL0 = REFVSEL_3 + REFON + REFMSTR; // 2.5V ref active and it now works the same as version 2 - the A/D counts bounce around a lot. Still a mystery. Appreciate the reply though. Please let me know if you think of anything else.
↧