2019-05-07 04:17 AM
Hello, As I am working on analog inputs I require ADC. STM32F334 Nucleo board has 12-bit ADC (2) with 21 channels, I am using ADC1 Channel 1.
After programming without applying any input to the pin (PA0) I am getting some values through USART2.
Can anybody help me out.
Thanks in advance.
2019-05-07 04:31 AM
Check the schematic, is anything connected to this pin ?
If not, pull it to GND with a resistor (say, 1k to 10k), value should be about zero.
Apply other voltages up to Vref, and check values for consistency.
Never let an ADC input floating.
Always check Discovery/Nucleo board schematics when deciding about pin usage.
2019-05-07 05:40 AM
Yes. Its working.
Thank you..