Jump to content

CC3220S analogRead incorrect reading

Recommended Posts

I tried to perform an analogRead with analog pins (pin 57 - 60) on CC3220S launch pad. Input voltage was around 1.1V. From the CC3220S launch pad schematics, there is a voltage divider ( 422 / 998 ) before ADC, so I would expect ADC code to be around 1360. However, I am getting 333 (~0.11V). Could it be there are additional ADC setup required (clock, register configuration, etc)?

My code basically just calls analogRead periodically as shown below.

void setup() {
// put your setup code here, to run once:
void loop(){
int out = analogRead(24);

My setup:

  • LaunchPad board name and version: CC3220S_LAUNCHXL (Rev-A)
  • Energia IDE version: 1.8.7E21
  • Board package version: 5.6.2
  • OS name and version: Windows 10


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...