2024-03-30 01:53 AM - last edited on 2024-03-30 08: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
2024-03-30 02:43 AM
PB5 and PB6 on STM32F411 are not connected to ADC. See "pin definitions" table in STM32F411 datasheet.
JW
2024-03-30 08: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