Hi guys,
I have a doubt about how I should configure an ADC pin before sleep my microcontroller (CC2531). Well, I have an own design with CC2531 where an ADC pin is connected directly to my batteries (Vbat) without anything between the + terminal and the ADC input.
What is the best way to configure this pin before sleep? As I know, I use this configuration:
P0DIR &= ~ BV(6);
P0INP |= (BV(6));
Do you think is it correctly? As an input and tristate.
Best regards,
Manuel