2017-02-15 12:59 AM
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:
stm32l4 clock-configuration sai not-working stm322017-02-15 05:01 AM
2017-02-15 01:55 PM
Is your wiring and grounding and port pin setup adequate for 12MHz?
JW
2017-02-16 10:06 AM
Logic analyzer was the problem. I used scope and I can see stable 12MHz