STM32F767 SAI SPDIF Output, NODIV and Clock Generator
STM32F767 SAI SPDIF Output, NODIV and Clock Generator
When NODIV bit is set in SAIx->CR1, the SPDIF output frequency is as it should be.
Example:
clock in is 25.6 MHz, sampling rate is 200 kHz, factor is 128, as it should with "symbol rate" (2 channels with 32 bit -> 64) times 2 (biphase mark code).
But when the NODIV bit is cleared (MCLK divider is ON), and MCKDIV[3:0] is set to 0000, the clock is divided by 4. (clock in 25M6 -> sampling rate 50k)
Why's that so?
And why is that not documented? (RM0410, latest)
Or what am I mssing?
Thanks in advance.
