Jump to content
Sign in to follow this  
dcjw

CC3220S analogRead incorrect reading

Recommended Posts

Hi, 
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:
Serial.begin(250000);
}
void loop(){
int out = analogRead(24);
Serial.print(out);
delay(1000);
}

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

Thanks,
Dennis

Share this post


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.

Guest
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.

Sign in to follow this  

×
×
  • Create New...