2022-08-03 12:46 AM
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.
Solved! Go to Solution.
2022-10-10 03:07 AM
Hi @Community member ,
Thanks for bringing this issue to our attention.
I confirm the issue.
The correct system formula is:
I reported this issue internally.
Internal ticket number: 136378 (This is an internal tracking number and is not accessible or usable by customers).
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Thank you
Kouthar
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.
2022-08-03 12:53 AM
I don't have answers, just want to point out that the SAI documentation is generally lacking precision and details.
https://community.st.com/s/question/0D50X00009XkaBlSAJ/f446-documentation-sai-clock-generator
JW
2022-08-03 10:16 PM
Thanks Jan!
Maybe some ST pro can say something about that?
It would be nice to know if I got something wrong or the documentation.
2022-08-04 05:49 AM
ST pros rarely come here (note the date of that post of mine and the number of replies from ST pros there). You may want to submit this to ST as a request for support through the web support form.
JW
2022-08-04 06:38 AM
Thanks, I'l try that.
2022-10-10 03:07 AM
Hi @Community member ,
Thanks for bringing this issue to our attention.
I confirm the issue.
The correct system formula is:
I reported this issue internally.
Internal ticket number: 136378 (This is an internal tracking number and is not accessible or usable by customers).
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Thank you
Kouthar
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.