dcjw 0 Posted February 24, 2020 Share Posted February 24, 2020 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.