AnsweredAssumed Answered

PDM Filter problem

Question asked by bai.yongchen on Jan 22, 2014
Latest reply on Jan 23, 2014 by bai.yongchen
Hi, can someone help me solve a problem on PDM Filter Init function:
PDM_Filter_Init() cannot return from it in second invoke.
How can we reset the function and call it again?
Thanks!
  ..........
  RCC->AHB1ENR |= RCC_AHB1ENR_CRCEN;
  Filter.LP_HZ = 8000;
  Filter.HP_HZ = 10;
  Filter.Fs = 16000;
  Filter.Out_MicChannels = 1;
  Filter.In_MicChannels = 1;
  PDM_Filter_Init((PDMFilter_InitStruct *)&Filter);
  ...........
  RCC->AHB1ENR |= RCC_AHB1ENR_CRCEN;
  Filter.LP_HZ = 8000;
  Filter.HP_HZ = 10;
  Filter.Fs = 32000;
  Filter.Out_MicChannels = 1;
  Filter.In_MicChannels = 1;
  PDM_Filter_Init((PDMFilter_InitStruct *)&Filter);//will dead loop here
 .................

Outcomes