S32K Serial Audio Interface (SAI) interface with STM FDA903D Audio Amplifier

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

S32K Serial Audio Interface (SAI) interface with STM FDA903D Audio Amplifier

2,443件の閲覧回数
Learner
Contributor III

Hi, I am a newbie with S32K148.
I am trying to interface ST microelectronics Audio Amplifier EVK(FDA903D) with S32K148 but unfortunately I am not able to read I2C registers. In the data sheet of Audio Amplifier I came across that if 12S clock would not be present, then I2C registers cannot be accessible.
I am using SAI0 API’s for interfacing Audio Amplifier.
I request please help me to configure SAI0 in transmit mode for FDA903D audio amplifier.
If anyone can provide some reference code to interface audio amplifier, it would be a great help.
Thanks in Advance

Learner_0-1602436098944.png

 

Learner_1-1602436182326.pngLearner_2-1602436276756.pngLearner_3-1602436394383.pngLearner_4-1602436464109.png

 

0 件の賞賛
返信
5 返答(返信)

1,691件の閲覧回数
turkmani_11
Contributor III

im also trying to communicate with FDA903D, if you were able to do it can you please share your code

0 件の賞賛
返信

2,389件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You need to configure the DMA component in the Processor Expert UI.

And then call the EDMA_DRV_Init() function.

 

Regards,

Daniel

0 件の賞賛
返信

2,404件の閲覧回数
Learner
Contributor III

Thanks @danielmartynek 

Appreciate your response. Now i am able to interface SAI with FDA903D (Audio Amp)

I am using SAI with interrupts but now i want to change to DMA. Following changes i made: 1) Initialize DMA  2) Selection of DMA channel from DMA component 3) Selection of DMA from SAI component as mentioned in snapshot:

Learner_0-1602831367341.png

Anything else i need to configure?

Learner_1-1602831441831.png

 

 

0 件の賞賛
返信

2,415件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

We don't have any demo that would work with the FDA903D Audio Amplifier, and both the SAI module and the amplifier support many formats.
I would recommend you to start with the sai_transfer_s32k148 SDK example, scope the bus and modify it as per the FDA903D datasheet.
But the I2S clock stays active between transfers.

To get better understanding of the SAI module, please refer to

AN12202 Using Synchronous Audio Interface (SAI) on S32K148.

https://www.nxp.com/docs/en/application-note/AN12202.pdf


BR, Daniel

 

0 件の賞賛
返信

2,384件の閲覧回数
Learner
Contributor III

Thanks @danielmartynek  Appreciate your support.

0 件の賞賛
返信