Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to configure an ADC pin before sleep in CC2531

$
0
0

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


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>