??? 09/02/08 07:06 Modified: 09/02/08 07:44 Read: times |
#157900 - Depends. Responding to: ???'s previous message |
Would I get enough information from the Grover book to code a comb filter?
It depends on how familiar you are with turning filter structure diagrams or written descriptions of algorithms into actual assembly/C/etc code. The book does not contain ready-made code that you can just copy. It might also require some calculations to get the filter work the way you want it to. In case of a comb filter, these calculations are simple enough to do by hand. A few more bits of advice: - If you want to eliminate 60 Hz and it higher harmonics with a comb filter, the sampling rate must be a multiple (4-...) of 60 Hz. If the multiple is a power of two, several optimizations are possible that reduce the CPU cycle count of the filter. - The comb filter may not be sufficient to suppress the higher harmonics if the possible deviation from 60 Hz is too high (if the noise is really, say, 59.8 Hz, then the tenth harmonic is 598 Hz and not 600 Hz, and the attenuation will be much lower than for a perfect 60 Hz signal. To deal with this problem, it might be useful to combine the comb filter with another simple lowpass filter that attenuates all frequencies above the highest frequency you need for your application. - Be aware that the comb filter is essentially a lowpass. It will significantly attenuate all frequencies above about 25 Hz. This may or may not be a problem for your application. |
Topic | Author | Date |
Dale Grover's DSP Microcontroller Book | 01/01/70 00:00 | |
I've read it a while ago ... | 01/01/70 00:00 | |
MAC is nice, but good multiply often enough | 01/01/70 00:00 | |
Sure but ... | 01/01/70 00:00 | |
Not manufacturers but books. | 01/01/70 00:00 | |
Is really MAC so nice for 8bit MCU? | 01/01/70 00:00 | |
It\'s nicer than not having one, ... | 01/01/70 00:00 | |
Yes, need for MAC depends on processor size | 01/01/70 00:00 | |
Yes, a MAC is nice for 8 Bit MCU![]() | 01/01/70 00:00 | |
Comb Filter | 01/01/70 00:00 | |
Depends. | 01/01/70 00:00 | |
Bucket Brigade Comb Filter | 01/01/70 00:00 | |
Any further questions ? | 01/01/70 00:00 |