PINC = 2^accumulator_bits * desired_frequency / sample_rate
% Given the FIR filter taps, calculate and plot the frequency response.
coeff = hex2dec(['001'; 'ff7'; 'ffe'; '014'; 'fff'; 'fd7'; '009'; '04b'; ...
'fe3'; 'f81'; '04a'; '0d5'; 'f50'; 'e6f'; '21c'; '76b'; ...
'76b'; '21c'; 'e6f'; 'f50'; '0d5'; '04a'; 'f81'; 'fe3'; ...
'04b'; '009'; 'fd7'; 'fff'; '014'; 'ffe'; 'ff7'; '001']);
coeff = coeff - 4096 * (coeff >= 2048);
[h w] = freqz(coeff); % frequency response of filter
f = 250 * w / (2 * pi); % frequency values
a = abs(h); % gain values
plot(f, a); grid on; xlim([0 125]); ylim([0 4500]); xlabel('Frequency [MHz]'); ylabel('Gain');
set(gca,'XTick',0:10:125,'YTick',0:500:5000,'XMinorGrid','on','YMinorGrid','on');
HOw do u see? Hmm, i'm not quite sure about this.Notice that it2 updates every 4ns instead of 2ns.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?