cancel
Showing results for 
Search instead for 
Did you mean: 

TDM interface with SAI for LIS25BA

Axoul
Associate

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 discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
waclawek.jan
Super User

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

View solution in original post

1 REPLY 1
waclawek.jan
Super User

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