# SPH0645 timing diagram

I am studying this SPH0645 module for use with a STM32.

I started by checking the timing diagram of the I2S and compatibility between this module and the STM32.

The STM32L151 MCU is compatible with Philips mode which is the most used mode according to my research. I found a problem in the change of the pin data, as we see on the time diagram (here), the chagement (for the Philips mode) is done during the falling edge, while for the SPH0645 this change is done at rising edge. This is the SPH0645 datasheet:here

The SPH0645 timing diagram is not compatible with philips mode. But I find in the adafruit site an arduino code with philips mode configuration, I'm confused, and don't know how I can configure the STM32 to be compatible with this module.

You can find also the stm32 timing diagram on figure 257 page 775 in the RM0038 document:here

Can you confirm if the sph0645 module will work or not with stm32 (philips mode configuration), and why?

Thank you

You keep mentioning philips mode, why is that?

Bits 5:4 I2SSTD: I2S standard selection