AnsweredAssumed Answered

What pins can I use for Analog Input/Output? STM32CubeMX allows every GPIO to be set to "GPIO_Analog"?

Question asked by Matt Roybal on Feb 21, 2018
Latest reply on Feb 21, 2018 by Clive One

Hello, I am currently using an STM32F301K6U. STM32CubeMX allows me to set pretty much any GPIO as a "GPIOP_Analog". However, when I go into the ADC1 under "Peripherals" every single item is red because there is some conflict with another pin. The ST Micro rep told me I could set any GPIO as an analog input or output, so I am not understanding how this is supposed to work. How do I do an analog read on the GPIO I set as "GPIO_Analog"? And similarly, do an analog out on these pins as well?

 

Thanks and any help/advice is greatly appreciated.

Outcomes