2024-01-23 06:24 AM
In STM32L4Q5VGT6, GPIOx-> ASCR register is missing in reference manual of RM0432 Rev 9.
ASCR GPIO analog switch control register, Address offset: 0x2C (GPIO_TypeDef)
To enable the GPIO to ADC switch using the register ASCR is LL_GPIO_EnablePinAnalogControl is missing in STM32L4Q5VGT6.
But it is STM32L475VGT6 ASCR register is available, why in STM32L4Q5VGT6 it is left out. Is it any alternate register available for the same purpose.
Solved! Go to Solution.
2024-01-23 07:23 AM
That is what the reference manual says. I have no reason to doubt it.
2024-01-23 06:41 AM
Are you sure it exists on that chip? Reference manual suggests it exists only on the L47x and L48x.
On most STM32s, setting the GPIO pin to analog connects it to the ADC. No other register required. Have you checked if this is true on the STM32L4Q5VGT6?
2024-01-23 07:07 AM
yes, correct only exists in L47x and L48x.
Am mentioning it is missed out in STM32L4Q5x.
So, for STM32L4Q5x no separate register is required to connect the GPIO to ADC.
Is it Right?
2024-01-23 07:23 AM
That is what the reference manual says. I have no reason to doubt it.