STM32F105 I2S作为从设备,PCM标准,逻辑分析仪截图如下:
目前使用的配置如下
/* CODEC_I2S peripheral configuration */
SPI_I2S_DeInit(SPI2);
I2S_InitStructure.I2S_AudioFreq = I2S_AudioFreq_8k;
I2S_InitStructure.I2S_Standard = I2S_Standard_PCMShort;
I2S_InitStructure.I2S_DataFormat = I2S_DataFormat_32b;
I2S_InitStructure.I2S_CPOL = I2S_CPOL_Low;
I2S_InitStructure.I2S_Mode = I2S_Mode_SlaveRx;
I2S_InitStructure.I2S_MCLKOutput = I2S_MCLKOutput_Disable;
但是输出数据不对,请教下应该怎么设置?
一周热门 更多>