Page 1 of 1

Change edge for I2S

Posted: Sun Jul 29, 2018 1:54 pm
by joewright
Hi, how do you change between reading data on rising or falling edges for I2S?

The ICS‐43432 is rising edge but looking at the, slightly confusing, SPH0645LM4H-B datasheet, it appears the data is transitioning on the rising edge and should be read on the falling edge (actually, just found some discussions on this on other forums and it does indeed seem to be the case).

Thanks, Joe

Re: Change edge for I2S

Posted: Sun Jul 29, 2018 3:35 pm
by fly135
joewright wrote:The ICS‐43432 is rising edge but looking at the, slightly confusing, SPH0645LM4H-B datasheet, it appears the data is transitioning on the rising edge and should be read on the falling edge (actually, just found some discussions on this on other forums and it does indeed seem to be the case).
Is this an academic question? Because the SPH0645LM4H works fine with the IDF SPI functions.

John A

Re: Change edge for I2S

Posted: Sun Jul 29, 2018 4:21 pm
by joewright
Not academic. Getting a somewhat different bit pattern recorded by the esp32 than my logic analyser. The data transition is happening just after the clock rise which means it is unsafe to read on the rising edge. The falling edge is happening when the data bit is stable so it would be good to read then.