What should be the output value of ADC if input is not connected to dedicated pin? I am getting some values (230).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-07 4: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.
- Labels:
-
ADC
-
STM32F3 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-07 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-07 5:40 AM
Yes. Its working.
Thank you..
