Change edge for I2S

joewright
Posts: 6
Joined: Sat Jul 14, 2018 6:12 pm

Change edge for I2S

Postby joewright » Sun Jul 29, 2018 1:54 pm

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

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Change edge for I2S

Postby fly135 » Sun Jul 29, 2018 3:35 pm

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

joewright
Posts: 6
Joined: Sat Jul 14, 2018 6:12 pm

Re: Change edge for I2S

Postby joewright » Sun Jul 29, 2018 4:21 pm

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.

Who is online

Users browsing this forum: No registered users and 78 guests