2024-10-11 10:27 PM
Hello,
I am currently working on a sound acquisition project using the STM32G473VET6 microcontroller and IMP34DT05TR microphone. I am encountering an issue while trying to configure the Serial Audio Interface (SAI) clock frequency. My target frequency is 2.048 MHz, but CubeMX is not allowing me to set this value. Currently, the clock frequency is set at 12 MHz.
I would appreciate any guidance on how to configure the SAI clock to 2.048 MHz or any potential workarounds to achieve this configuration.
Best,
AiROT
Solved! Go to Solution.
2024-10-13 06:13 AM
2024-10-11 11:14 PM
> My target frequency is 2.048 MHz, but CubeMX is not allowing me to set this value
Show.
JW
2024-10-13 02:36 AM
Here's the screenshots for the same!
2024-10-13 05:38 AM
SAI uses integer divider. You can't divide 24MHz to 2.048MHz. 2MHz should be viable though.
JW
2024-10-13 05:53 AM - edited 2024-10-13 05:53 AM
We are getting error "PLLQ output frequency is currently set to 2Mhz, must be >= 8Mhz and =<150Mhz." Please see the screenshot.
How do we modify this limit?
2024-10-13 06:13 AM
Use the MCKDIV divider in SAI.
JW
2024-10-13 06:15 AM
Will try and update you!
2024-10-19 06:04 AM
@waclawek.jan thanks, it worked!