AnsweredAssumed Answered

STM32L4 SAI2 clock configuration

Question asked by Def on Feb 15, 2017
Latest reply on Feb 16, 2017 by Def

Hi,

 

I'm having toruble with configuring SAI clock. For 48kHz sampling rate I need 12,288MHz MCLK but I'm confused with settings in CubeMX clock configuration tab. To SAI2 clock to arbitrary 24MHz but what should be the right value? For 24MHz clock looks terrible. I can't set it to multiple of 12,288MHz or just 12,288MHz because there is no prescallers that meets this configuration. I'm using MSI as my clock source.

 

Clock configuration:

 

12MHz clock:

Outcomes