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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,646 Views
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 Kudos
5 Replies

894 Views
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 Kudos

1,592 Views
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 Kudos

1,607 Views
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 Kudos

1,618 Views
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 Kudos

1,587 Views
Learner
Contributor III

Thanks @danielmartynek  Appreciate your support.

0 Kudos