Analog input 12 bits resolution
Posted: Tue Jun 16, 2020 12:19 pm
Hi, I have an F401 blackpill.
I would like to use the 12-bit analog inputs.
I tried how it is used with arduino:
a = analogRead (PA0);
Serial.print (a);
I get a value from 0 to 1023
How to get 0-4095 i.e. a resolution at 12bits.
Thanks
I would like to use the 12-bit analog inputs.
I tried how it is used with arduino:
a = analogRead (PA0);
Serial.print (a);
I get a value from 0 to 1023
How to get 0-4095 i.e. a resolution at 12bits.
Thanks