IMXRT1052 SPDIF txClkSource tx_clk1 (from SAI1) not work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMXRT1052 SPDIF txClkSource tx_clk1 (from SAI1) not work

ソリューションへジャンプ
1,479件の閲覧回数
vega_sdr
Contributor I

Hi !

With XTALOSC and SPDIF0_CLK_ROOT clock source SPDIF transmitter work fine.

But when I select spdif_config.txClkSource = 2U//txClk from SAI1 for SPDIF, SPDIF not work.

SAI1 clock source - audiopll or ext mclk, I see all clock and data on SAI1 pins.

0 件の賞賛
返信
1 解決策
1,462件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @vega_sdr ,

   Seems my previous understanding is not correct. It is not the SAI ROOT clock, it is the sai rxbclk.

kerryzhou_0-1626846686077.png

kerryzhou_1-1626846700947.png

 

2 is the txclk1, from the above picture, it is the rxbclk.

So, do you check the RXBCLK, whether that have wave or not?

Best Regards,

kerry

 

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
1,455件の閲覧回数
vega_sdr
Contributor I

Thanks a lot !

My mistake was that I didn't activate synchronous mode for sai_rx (I2S_RCR2_SYNC bit), in my project I use only sai_tx.

 

0 件の賞賛
返信
1,450件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Thanks for your updated information.

So, if you don't use SAI rx, it's better your SPDIF still use the SPDIF clock source :SPDIF0_CLK_ROOT.

Best Regards,

Kerry

0 件の賞賛
返信
1,448件の閲覧回数
vega_sdr
Contributor I

SAI1 and SPDIF must use external clock, but on my pcb it traced only to SAI1_mclk pin.

0 件の賞賛
返信
1,470件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @vega_sdr 

  Do you configure the same sai1 clock to your SPDF0_CLK clock?

kerryzhou_0-1626835924686.png

I mean, set your SAI1 clock the same frequency to your working SPDIF0_CLK_ROOT, whether this method works or not?

You can use the mcuxpresso project, cfg tool to configure the clock directly to test it.

Best Regards,

Kerry

 

0 件の賞賛
返信
1,465件の閲覧回数
vega_sdr
Contributor I

I set same clockPLL4_MAIN_CLK for SAI1_CLK and for SPDF0_CLK.

SPDIF work  when spdif_config.txClkSource = 1 and not work when spdif_config.txClkSource = 2

0 件の賞賛
返信
1,463件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @vega_sdr ,

   Seems my previous understanding is not correct. It is not the SAI ROOT clock, it is the sai rxbclk.

kerryzhou_0-1626846686077.png

kerryzhou_1-1626846700947.png

 

2 is the txclk1, from the above picture, it is the rxbclk.

So, do you check the RXBCLK, whether that have wave or not?

Best Regards,

kerry

 

0 件の賞賛
返信