Hi,
I need to toggle P1.1 (A1) from ADC to GPIO after every sampling.
When I set P1SELC |= BIT1, just before I set ADC12CTL0 |= ADC12ENC | ADC12SC, the ADC is not working.
It works when I set P1SELC |= BIT1 at the beginning of the code (just before PM5CTL0 &= ~LOCKLPM5. But than I cannot change the GPIO functionality on the fly.
Any ideas?
Thanks,
Itay