cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a good example for I2S on F0?

JSILV.2
Senior

Greetings Everyone.

I am trying to create a Firmaware based on F0 (library 1.11.3) to MASTER ONLY READING using the I2S protocol.

I have an IC which sends a DATA READY and only waits for a clock pulses to shift-out the complete data (24-bit frame). The speed of this process is around 50k frames by second and the IC do not stop and do not have "chip select"

I had build the Firmware using CUBE IDE and attained successfully build, but inside the CallBack function (called by the DATA READY signal) the I2S Reception HAL function does not issue the Master clock. If I insert forcelly the I2S Reading into MAIN, the HAL funcion works but does not stop the Receiver Master Clock.

Do someone can explain why the differences of the same function if be issued from different places?

Do someone could point out where can I find a Good I2S Receive only routine? OR, a good explanation of STM32's I2S machine?

Regards.

5 REPLIES 5
Foued_KH
ST Employee

Hello @JSILV.2​,

You can review the I2S example available under STM32CubeF1 package:

STM32Cube\Repository\STM32Cube_FW_F1_V1.8.4\Projects\STM3210C_EVAL\Examples\I2S

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Dear Foued.

You pointed out "F1" instead my "F0" using. Therefore, I might infer that the F1's firmware for I2S works as "F0", is not it?

Thanks a lot.

Regards.

Yes, it works as "F0".

I just recommend you an available I2S example which can u inspire ;)

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

> I have an IC which sends a DATA READY and only waits for a clock pulses to shift-out the complete data (24-bit frame).

That's not I2S, I2S uses continuous clock. Try SPI.

JW

Thanks.