cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0 minimum ADC frequency

danielbathtub
Associate III

Hi, 

 

I don't understand why CubeMX is limiting me through their IOC file to select an ADC clock below 2MHz. The datasheet says 140 kHz is the minimum ADC clock frequency for the STM32G07. Anyone has any answers or help ?. 

8 REPLIES 8
mƎALLEm
ST Employee

Hello,

Could you please tell in which datasheet and on which page you found that 140kHz?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
danielbathtub
Associate III

danielbathtub_0-1756897036771.png

danielbathtub_1-1756897070901.png

 

You need also to show how CubeMx doesn't prevent you to select that. 

Preferably to attach the ioc file with that config.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
danielbathtub
Associate III

I can't do that because it doesn't allow me to set it in that way. Just select a general ADC pin and go under clock settings and you will see 

 


@danielbathtub wrote:

I can't do that because it doesn't allow me to set it in that way.

 


Do you mean the community doesn't allow you to upload your ioc file?

At least provide a screenshot of your clock config from your ioc file.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Just to tell that CubeMx is shoiwng this warning message:  "ADC clock source must be >= 0,14MHz...." which is inline with the datasheet.

mALLEm_0-1756899202761.png

So you need to provide your exact clock configuration so I could reproduce the same behavior as it could be something else..

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
danielbathtub
Associate III

Hi okay, here is my IOC file. I want a 32 MHz Asynchronous clock input into the ADC. 

Then I want to have the prescaler at 128. I then later at a different stage in my application want a high ADC clock speed, so I want to keep the same clock input and then just change the prescaler. 

Here is my IOC file, try and select a prescaler of 128 with my clock settings

Ok thank you for the sharing.

I'm escalating the issue internally for further analysis. Internal ticket number 216840 (not accessible by the community users)

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.