energia / cc3200emt-core

0 stars 2 forks source link

CC3220SF: analogRead() Returns 1023 #18

Open rei-vilo opened 6 years ago

rei-vilo commented 6 years ago

The analogRead()on the minimalist example below always returns 1023.

Placing and removing jumper J14 OPAMP EN has no effect.

Same for using 23 instead of A0.

The exact reference of the board is CC3220SF Rev-A. Pin 23 is connected to the middle point of a 10 kΩ potentiometer, connected to +3.3V and GROUND.

Same code works fine on the CC3200 LaunchPad, with taking care not to exceed 1.7 V.

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly: 
  Serial.println(analogRead(A0));
  delay(1000);
}
rei-vilo commented 6 years ago
capture 2018-07-25 a 15 51 52
rei-vilo commented 5 years ago

A more detailed report, with Op.Amp En shunt on.

Pin Port Result Comment
23 A0 no 587..594
24 A3 yes 0..963
25 A1 yes 0..963
26 A2 yes 0..963