- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a problem of gain with a fir_lp (value < expected value )!!!
config : filtre_type : low pass sample rate :10khz cutoff freq :500hz coeff : 15 input number system : unsigned binary ast_sink_data :INPUT data width 16 bits ( data signal 50hz ampl : 2.5V --> 65535 ) ast_source_data :OUTPUT width 27 bits full resolution when i calculate RMS (value < expected value) : { data in for RMS : lp_out(lp_out'high downto lp_out'high-15) } thinks for helpLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cutoff freq is 1/20 of sample frequency, it's impossible to design a good FIR filter with 15 or 30 taps. A first or second order IIR filter will perform much better in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for replying,
Can i generate irr filter from megawizard or i should design it ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no Altera IP for IIR filters as far as I know. MatLab or special filter tools can be used to calculate the difference equation coefficients.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok thanks,
So it's impossible to use altera FIR compiler with Cutoff freq 1/20 of sample frequency even if i change coeff?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fir attenuation image (http://img3.imageshack.us/img3/4210/firlp.jpg)
in this image udat : input signal 16hz (16 bits) fir_lp : width 37 bits coeff : 100 (i have always an attenuation even with others coeff)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we should start with specifications.
sampling rate: pass band: stop band: in band ripple: stop band attenuation: then we can define how many taps you need, how many bits to use, etc.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page