Skip to main content
Visitor II
August 29, 2022
Solved

TDM interface with SAI for LIS25BA

  • August 29, 2022
  • 1 reply
  • 1050 views

Hi,

I try to use a custom board with LIS25BA.

I use SAI with STMF446.

What I know :

MCLK = 12.288 MHz

WCLK = 16kHz

8 slot with 3 active

so BCLK = WCLK * (8 * 16) = 2.048 MHz

What I can do :

I2C works like a charm ;)

What I can't do :

Configure SAI with these values.

Only MCLK is false and depends on Master Clock Divider I guess ...

My actual config :

0693W00000Stzc9QAB.png 

0693W00000StzedQAB.png 

If someone can help me, it would be so great

Thanks in advance

Axoul

    This topic has been closed for replies.
    Best answer by waclawek.jan

    Read out and check SAI registers, or maybe even better, don't use Cube just program the SAI registers directly.

    Make sure you have set a valid clock for SAI in RCC.

    JW

    1 reply

    Super User
    August 29, 2022

    Read out and check SAI registers, or maybe even better, don't use Cube just program the SAI registers directly.

    Make sure you have set a valid clock for SAI in RCC.

    JW