cancel
Showing results for 
Search instead for 
Did you mean: 

In STM32L4Q5x, ASCR  GPIO analog switch control register is missing

SaravananDurai
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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".

View solution in original post

3 REPLIES 3
TDK
Guru

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".

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?

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".