Skip to main content
Associate
January 23, 2024
Solved

In STM32L4Q5x, ASCR  GPIO analog switch control register is missing

  • January 23, 2024
  • 3 replies
  • 1287 views

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.

This topic has been closed for replies.
Best answer by TDK

That is what the reference manual says. I have no reason to doubt it.

3 replies

TDK
January 23, 2024

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?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
January 23, 2024

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?

TDK
TDKBest answer
January 23, 2024

That is what the reference manual says. I have no reason to doubt it.

"If you feel a post has answered your question, please click ""Accept as Solution""."