FIR bandpass filter taps
8 views (last 30 days)
Show older comments
I am using the PIC33 DSC microcontroller, example CE005_FIR_DSP_lib_Filter, I do not understand how filter taps are generated. Taking the bandpass example for instance.
Files from the demo:
FILTER SPECIFICATION FILE
FILTER TYPE: BAND PASS 3H
PASSBAND RIPPLE IN -dB -.1000E-01
STOPBAND RIPPLE IN -dB -.6000E+02
PASSBAND CUTOFF FREQUENCIES 0.900000E+03 0.180000E+04 HERTZ
STOPBAND CUTOFF FREQUENCIES 0.300000E+03 0.240000E+04 HERTZ
SAMPLING FREQUENCY 0.200000E+05 HERTZ
Generated bandpass example Taps:
.hword 0x0006, 0x000A, 0x000C, 0x000C, 0x0008, 0x0002, 0xFFFF, 0xFFFE, 0x0002
.hword 0x000C, 0x0017, 0x001A, 0x0012, 0xFFFD, 0xFFDE, 0xFFBF, 0xFFAD, 0xFFAE
.hword 0xFFC3, 0xFFE3, 0xFFFD, 0x0000, 0xFFE6, 0xFFB3, 0xFF7D, 0xFF5E, 0xFF70
.hword 0xFFB8, 0x0028, 0x009E, 0x00F0, 0x00FE, 0x00C6, 0x0065, 0x0010, 0xFFFF
.hword 0x004F, 0x00F8, 0x01C2, 0x0257, 0x0268, 0x01D0, 0x00A8, 0xFF4D, 0xFE37
.hword 0xFDCF, 0xFE3B, 0xFF41, 0x0050, 0x00B3, 0xFFD6, 0xFD90, 0xFA4F, 0xF708
.hword 0xF4F6, 0xF531, 0xF847, 0xFDF7, 0x0526, 0x0C2F, 0x114E, 0x132D, 0x114E
.hword 0x0C2F, 0x0526, 0xFDF7, 0xF847, 0xF531, 0xF4F6, 0xF708, 0xFA4F, 0xFD90
.hword 0xFFD6, 0x00B3, 0x0050, 0xFF41, 0xFE3B, 0xFDCF, 0xFE37, 0xFF4D, 0x00A8
.hword 0x01D0, 0x0268, 0x0257, 0x01C2, 0x00F8, 0x004F, 0xFFFF, 0x0010, 0x0065
.hword 0x00C6, 0x00FE, 0x00F0, 0x009E, 0x0028, 0xFFB8, 0xFF70, 0xFF5E, 0xFF7D
.hword 0xFFB3, 0xFFE6, 0x0000, 0xFFFD, 0xFFE3, 0xFFC3, 0xFFAE, 0xFFAD, 0xFFBF
.hword 0xFFDE, 0xFFFD, 0x0012, 0x001A, 0x0017, 0x000C, 0x0002, 0xFFFE, 0xFFFF
.hword 0x0002, 0x0008, 0x000C, 0x000C, 0x000A, 0x0006
I tried using MATLAB but failed to generate the same data (probably due to incorrect parameter settings in MATLAB).


0 Comments
Answers (0)
See Also
Categories
Find more on Get Started with DSP System Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!