IIR filter for C language

這是篇參考PSoC Application Note所記錄的留檔

Single-Pole Infinite Impulse Response (IIR) Filters

int32 LowPassFilter(int32 input) 
 {
  int32 k; 

 input <<= 8;  filt = filt + ((input-filt) >> 4); 
 k = (filt>>8) + ((filt & 0x00000080) >> 7); 
 return k; 
 } 

IIR simulation in excel

IIR Filter Excel

  iirFilterExcel (45.6 KiB, 238 次下載)

AN-2099 PSoC® 1, PSoC 3, PSoC 4, and PSoC 5LP - Single-Pole Infinite Impulse Response (IIR) Filters

3 thoughts on “IIR filter for C language

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料