How to change the falling edge into rising egde in I2S

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

How to change the falling edge into rising egde in I2S

1,149 Views
Prerna_Nibe
Contributor I

Hello,

I am using S32K142 EVM for audio project. For audio transmission I am using I2S through Flexio.  I am able to send the data at the falling edge of the Bit clock. I want to send the data at the rising edge. 

Can you help me in this how to change from falling edge to rising edge?

0 Kudos
Reply
4 Replies

1,043 Views
Prerna_Nibe
Contributor I

Thank you

 

0 Kudos
Reply

1,097 Views
Prerna_Nibe
Contributor I

Thank you @lukaszadrapa for your suggestion.

1. The kind of amplifier we are using that supports the the rising edge only.(The data is presented in 2's-complement form (MSB-first and is valid on the rising edge of bit clock).

2. Could you please suggested which NXP controller will support to changed from falling to rising. Or which type of similar controller will support for rising edge.

Thank you.

 

0 Kudos
Reply

1,085 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Take a look at S32K148 which has SAI module supporting I2S. So, it's not emulation only via FlexIO.
I can see it supports configuration of rising/falling edge:

lukaszadrapa_0-1729861855802.png

There's also an application note:
https://www.nxp.com/docs/en/application-note/AN12202.pdf

Regards,
Lukas

0 Kudos
Reply

1,104 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Prerna_Nibe 

I can see in the SDK that FlexIO I2S driver does not have such configuration. It would be necessary to modify the source code which is not recommended and supported by us.

I2S also says:

lukaszadrapa_0-1729754040322.png

Because I2S is only emulated by FlexIO, this could probably cause some issues. And that's the reason why the driver supports falling edge only.

Regards,

Lukas

 

0 Kudos
Reply