Как с помощью DSP Builder через компонент SingleRateFIR реализовать ФНЧ
Fдискретизации = 5e5 Hz
Fpass = 10.5e3 Hz
Fstop = 12e3 Hz
Apass = 1 dB
Astop = 20 dB
//--------------
Вопросы по компоненту SingleRateFIR в библиотеке
(Altera DSP Builder Advansed Blockset->Filters)
Параметр: Number of channels
Specifies the number of unique channels to process.
Вопрос : Для чего нужен этот параметр. Зачем нужны каналы в фильтре и как они связаны с параметрами фильтра, от чего зависят?
//-------
Параметр: Coefficients
You can specify the filter coefficients using a Simulink fixed-point object fi(0). The data type of the fixed-point object determines the width and format of the coefficients. The length of the array determines the length of the filter. For example, fi(fir1(49, 0.3),1,18,19)
функция Matlab a = fi(v,s,w,f) returns a fixed-point object with value v, Signed property value s, word length w, and fraction length f.
Вопрос : word length w - длина слова, если 18, то это означает 18 цифр до запятой?
fraction length f - длина плавающей части, если 19 то это означает 19 цифр после запятой?
//-------
функция Matlab b = fir1(n,Wn) returns row vector b containing the n+1 coefficients of an order n lowpass FIR filter. This is a Hamming-window based, linear-phase filter with normalized cutoff frequency Wn. The output filter coefficients, b, are ordered in descending powers of z.
Wn is a number between 0 and 1, where 1 corresponds to the Nyquist frequency.
Wn - Nyquist frequency lowpass FIR filter
Вопрос : Как расчитать Wn - правильно ли я понимаю Wn = Fstop/(Fдискретизации/2)
Что такое нормализированная частота и как ее расчитывать?
//-------
Пробовал реализовывать по примеру demo_firs
Не понятно для компонента компонент SingleRateFIR
как рассчитывать входной сигнал V
в примере [ones(1,ChanCycleCount) zeros(1,Period-ChanCycleCount)]
и входной сигнал C
в примере [0:ChanCycleCount-1 zeros(1,Period-ChanCycleCount)]
Если есть свободное время подскажите пожалуйста. Я в этом новичек и в теории цифровой обработки не очень разбираюсь.
Привожу мою программу на Simulink DspBuilder
Сообщение отредактировал adddd_f - Sep 29 2011, 06:15