Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
resources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderwithcoeffcalc [26 Apr 2016 15:13] Mazher Khanresources:tools-software:sigmastudio:toolbox:filters:generaleq2ndorderwithcoeffcalc [23 Aug 2016 11:44] Venkatesan Krishnamoorthy
Line 3: Line 3:
 [[resources:tools-software:sigmastudio:toolbox:filters|Click here to return to the Filters page]]\\ [[resources:tools-software:sigmastudio:toolbox:filters|Click here to return to the Filters page]]\\
 ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------
- +This algorithm is Obsolete. [[resources:tools-software:sigmastudio:toolbox:filters: general2ndorder#coefficient_calculations_on_dsp|Click here to return to wiki page of the recent version of the module]]\\
-{{ coeffcalc.jpg}} +
- +
-The General (2nd-Order) block gives access to a wide variety of 2nd-order (biquad)filter algorithms. +
- +
-   +
-  * The available filter types are: +
-  * Parametric +
-  * Shelving +
-  * General High-Pass +
-  * General Low-Pass +
-  * General Band-Pass +
-  * General Band-Stop +
-  * Butterworth Low-Pass / High-Pass  +
-  * Bessel Low-Pass / High-Pass +
-  * All-pass +
-  * Peaking +
-  * Notch +
-  * Chebyshev Low-Pass / High-Pass +
- +
-The coefficient calculation for these filters are done in the SigmaDSP itself. The coefficient calculation is done in the background when there is no processing happening +
- +
-**To open the filter control window, click on the icon button:** +
- +
-Select the desired filter type from the drop-down combo-box list.  The filter controls and the icon button image will change to reflect the selected filter type.\\ +
-\\ +
-{{coeffcalc2.jpg}}\\ +
-\\ +
- +
--------------------------------------------------------------------------------- +
- +
-This block's algorithms use biquad filter designs ([[http://ez.analog.com/message/16011#16011|Direct Form II]]) based on Robert Bristow-Johnson's work in this field.\\ +
-\\ +
-<m>H(z)={b_0 + b_1 z^-1 + b_2 z^-2}/{1 + a_1 z^-1 + a_2 z^-2}</m> +
-\\ +
- +
-common variables: +
-  * <m>omega_0 = {2 pi f_0}/{F_s}</m> +
-  * <m>gainLinear = 10^{gain/20}</m> +
-\\ +
-{{generalfilters.jpg}}\\ +
-\\ +
- +
-\\ +
-Note that the b0 and b2 coefficients for the high pass filter below are inverted from what is stored in RAM. The correct equations for b0, b1, and b2 for a high pass filter are as follows:\\ +
-b0 = -(1 + cos(ω0)) * gainLinear / 2\\ +
-b1 = -(1 + cos(ω0)) * gainLinear\\ +
-b2 = -(1 + cos(ω0)) * gainLinear / 2\\ +
- +
-\\ +
- +
-===GUI Control=== +
-^GUI Control Name^Default Value^Range^Function Description^ +
-|Filter Type |Lowpass|LowPass/Highpass/BandPass/BandStop|Type of the filter| +
-|Frequency|1000 Hz|0-96000 Hz|The cut off frequency of the filter| +
-|Gain|0 dB| -15 to 15| Filter Gain| +
-|Q Factor|0| 0 to 16| Q Factor of the filter| +
-|Enable|1 | 0 t0 1| Enable or disable filter| +
-|Phase Shift|0| 0 to 1| Phase shift by 180 deg| +
-===DSP parameter Information=== +
-^GUI Control Name^Compiler Name^Function Description^ +
-|Frequency|FREQ_DSP_CALC0_ _|The cut off frequency of the filter| +
-|Gain|GAIN_DSP_CALC0_ _|Filter Gain| +
-|Q Factor|Q_DSP_CALC0_ _|Q Factor of the filter| +
-|Filter Type|FILTER_TYPE0_ _|Type of the filter| +
-|NA|INVERT__|Negate the Coefficients corresponding to the input | +
-|NA|ONE_BY_FS_DSP_CALC0_ _|1/ Sample Rate| +
-|NA|ADDRESS_DSP_CALC0_ _|Starting Address of the filter coefficients.| +
-|NA|MEM_SELECTION_DSP_CALC0_ _|Memory section the filter coefficients are located (DM0/DM1) | +
resources/tools-software/sigmastudio/toolbox/filters/generaleq2ndorderwithcoeffcalc.txt · Last modified: 23 Aug 2016 11:46 by Venkatesan Krishnamoorthy