Skip to main content
Explorer II
November 3, 2022
Question

Is there a good example for I2S on F0?

  • November 3, 2022
  • 2 replies
  • 1432 views

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.

    This topic has been closed for replies.

    2 replies

    ST Employee
    November 3, 2022

    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

    JSILV.2Author
    Explorer II
    November 3, 2022

    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.

    ST Employee
    November 3, 2022

    Yes, it works as "F0".

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

    Foued

    Super User
    November 3, 2022

    > 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

    JSILV.2Author
    Explorer II
    November 4, 2022

    Thanks.