cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube Creates Invalid I2S Configuration

niels
Associate II
Posted on April 22, 2015 at 11:24

STM32Cube fails to calculate the correct register values for I2S3. The clock system provides 96MHz as I2C clock and the selected sample frequency is 8kHz and 16 bit data format. Therefore the I2S3 settings should be (as shown in the data sheet):

I2SDIV: 187

I2SODD: 1

The sample rate can be calculated as: 96MHz / (2*187+1) / (2*16) = 8000

But STM32Cube calculates:

I2SDIV: 183

I2SODD: 0

which gives a sample rate on: 96M / (2*183+0) / 2*16 = 8196,72

#stm32f4 #i2s #cubemx
0 REPLIES 0