Final Project Hardware Synthesis Laboratory

Assigment

Using board STM32F4DISCOVERY that have following IC in it.

  1. LIS302DL: 3-axis accelerometer
  2. MP45DT02: digital microphone
  1. CS43L22: audio DAC, speaker driver

###TO DO 1. I2S_AUDIOFREQ_32K -> Sample frequency 16K - Sample-rate: 48 KHz - Channel-size: 16 bit - Channel(s): 2 (stereo) - STM provides MCK ```c static PDMFilter_InitStruct pdm_filter;

RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE); pdm_filter.LP_HZ=8000; pdm_filter.HP_HZ=10; pdm_filter.Fs=FS; pdm_filter.Out_MicChannels=1; pdm_filter.In_MicChannels=1; PDM_Filter_Init(&pdm_filter);

PS. just work only CS43L22 without using UART.