STM32F411RE6: Analog input on PB5 and PB6 is always 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-30 1:53 AM - last edited on ‎2024-03-30 8:29 AM by STOne-32
Hi, I'm working with a STM32F411RE6 on a pcb and i've noticed that trying to read an input from PB5 and PB6 just returns 0. I've tried fiddling with the registers eg. setting them to analog input mode, pullup, pulldown and left floating but none of it seems to make a difference. my guess is that is has to do with the ADC. for reference below is a screenshot of my teleplot grah showing various pin analog input
 I've also included a copy of my code and kicad schematic/board
- Labels:
-
ADC
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-30 2:43 AM
PB5 and PB6 on STM32F411 are not connected to ADC. See "pin definitions" table in STM32F411 datasheet.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-30 8:28 AM
 
Thanks @waclawek.jan for the contribution, Indeed
 changed the label used from L4 to F4 series .
Let us know @Vandi @if you will be able to get it working now ?
Ciao
ST1
