View previous topic :: View next topic |
Author |
Message |
sajjadonline
Joined: 07 Sep 2011 Posts: 5 Location: Banned - spammer
|
fir filter for remove 50hz frequency of ecg signal |
Posted: Wed Sep 14, 2016 11:44 pm |
|
|
I need a fir filter for remove 50hz frequency of ecg signal.
plz help me |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Sep 15, 2016 4:56 am |
|
|
Normally you'd use hardware to remove MOST of the 'noise'. To do it in software you need to tell us the PIC you want to use. ANY SW filter requires a lot of resources... memory, speed, etc. Obviously if the pIC doesn't need to do anything else, a SW filter is easy...but when you add stuff like sensor capture, display of data, HMI, etc. then it can get complicated.
You should try the 'search' feature of this forum and see what others have posted in the meantime.
Jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Sep 15, 2016 7:09 am |
|
|
I'd not try to implement an FIR filter in a PIC16. On a PIC18, at a low sample rate, it can be done. Look at Microchip AN852. The free code this mentions allows the coefficients to be calculated. The PIC24 and up are much better suited, and for this, CCS supply an example (EX_FIR.C). This is configured to reject a square wave, but it is only a matter of changing the coefficients to reject 50Hz sine. |
|
|
|