cancel
Showing results for 
Search instead for 
Did you mean: 

What should be the output value of ADC if input is not connected to dedicated pin? I am getting some values (230).

sagar
Associate II

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.

2 REPLIES 2
Ozone
Lead

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.

Yes. Its working.

Thank you..