This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to configure an ADC pin before sleep in CC2531

Other Parts Discussed in Thread: CC2531

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