To set a single bit, use "|=". Using "=" clears all the other bits in the register. You did not configure the ADC12MCTLx registers and the CSTARTADD and CONSEQ fields.
↧