I created a coefficent file .flt from dspic lite. In this file that has two parts. From 0.3540039062500000E and below are obviously coefficients, but what are they from 116 74 /* coefficient of tap 0 */ to 116 74 /* coefficient of tap 63 */? How can I define them from coeffiecients? Here is my .flt file FILTER COEFFICIENT FILE FIR DESIGN SAMPLING FREQUENCY 0.800000E+04 HERTZ 64 /* number of taps in decimal */ 40 /* number of taps in hexadecimal */ 16 /* number of bits in quantized coefficients (dec) */ 10 /* number of bits in quantized coefficients (hex) */ 0 /* shift count in decimal */ 0 0.100000000E+01 /* shift count (hex), gain multiplier */ 116 74 /* coefficient of tap 0 */ 143 8F /* coefficient of tap 1 */ 170 AA /* coefficient of tap 2 */ 198 C6 /* coefficient of tap 3 */ ... 116 74 /* coefficient of tap 63 */ 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 0 */ 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 1 */ 0.5187988281250000E-02 3F75400000000000/* coefficient of tap 2 */ 0.6042480468750000E-02 3F78C00000000000/* coefficient of tap 3 */ .. 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 62 */ 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 63 */
tap of fir filter
Started by ●June 16, 2009
Reply by ●June 16, 20092009-06-16
On Jun 16, 2:06�pm, "zidean007" <zidean...@yahoo.com> wrote:> I created a coefficent file .flt from dspic lite. In this file that has two > parts. > From 0.3540039062500000E and below are obviously coefficients, but what > are they from 116 74 /* coefficient of tap 0 */ to 116 74 /* coefficient of > tap 63 */? How can I define them from coeffiecients? > Here is my .flt file > > FILTER COEFFICIENT FILE > FIR DESIGN > SAMPLING FREQUENCY 0.800000E+04 HERTZ > 64 /* number of taps in decimal */ > 40 /* number of taps in hexadecimal */ > 16 /* number of bits in quantized coefficients (dec) */ > 10 /* number of bits in quantized coefficients (hex) */ > 0 /* shift count in decimal */ > 0 0.100000000E+01 /* shift count (hex), gain multiplier */ > 116 74 /* coefficient of tap 0 */ > 143 8F /* coefficient of tap 1 */ > 170 AA /* coefficient of tap 2 */ > 198 C6 /* coefficient of tap 3 */ > ... > 116 74 /* coefficient of tap 63 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 0 */ > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 1 */ > 0.5187988281250000E-02 3F75400000000000/* coefficient of tap 2 */ > 0.6042480468750000E-02 3F78C00000000000/* coefficient of tap 3 */ > .. > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 62 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 63 */Zidean, For 116 74 /* coefficient of tap 0 */, the 16-bit coefficient for tap 0 is decimal 116, the 74 looks like a hex memory location. Note that 0.3540039062500000E-02=116/32768 0.4364013671875000E-02=143/32768 The rest is done the same way. Dirk
Reply by ●June 16, 20092009-06-16
On Jun 16, 2:06�pm, "zidean007" <zidean...@yahoo.com> wrote:> I created a coefficent file .flt from dspic lite. In this file that has two > parts. > From 0.3540039062500000E and below are obviously coefficients, but what > are they from 116 74 /* coefficient of tap 0 */ to 116 74 /* coefficient of > tap 63 */? How can I define them from coeffiecients? > Here is my .flt file > > FILTER COEFFICIENT FILE > FIR DESIGN > SAMPLING FREQUENCY 0.800000E+04 HERTZ > 64 /* number of taps in decimal */ > 40 /* number of taps in hexadecimal */ > 16 /* number of bits in quantized coefficients (dec) */ > 10 /* number of bits in quantized coefficients (hex) */ > 0 /* shift count in decimal */ > 0 0.100000000E+01 /* shift count (hex), gain multiplier */ > 116 74 /* coefficient of tap 0 */ > 143 8F /* coefficient of tap 1 */ > 170 AA /* coefficient of tap 2 */ > 198 C6 /* coefficient of tap 3 */ > ... > 116 74 /* coefficient of tap 63 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 0 */ > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 1 */ > 0.5187988281250000E-02 3F75400000000000/* coefficient of tap 2 */ > 0.6042480468750000E-02 3F78C00000000000/* coefficient of tap 3 */ > .. > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 62 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 63 */Zidean, For 116 74 /* coefficient of tap 0 */, the 16-bit coefficient for tap 0 is decimal 116, the 74 is 116 in hexadecimal. Note that 0.3540039062500000E-02=116/32768 0.4364013671875000E-02=143/32768 The rest is done the same way. Dirk
Reply by ●June 16, 20092009-06-16
zidean007 wrote:> I created a coefficent file .flt from dspic lite. In this file that has two > parts. > From 0.3540039062500000E and below are obviously coefficients, but what > are they from 116 74 /* coefficient of tap 0 */ to 116 74 /* coefficient of > tap 63 */? How can I define them from coeffiecients? > Here is my .flt file > > FILTER COEFFICIENT FILE > FIR DESIGN > SAMPLING FREQUENCY 0.800000E+04 HERTZ > 64 /* number of taps in decimal */ > 40 /* number of taps in hexadecimal */ > 16 /* number of bits in quantized coefficients (dec) */ > 10 /* number of bits in quantized coefficients (hex) */ > 0 /* shift count in decimal */ > 0 0.100000000E+01 /* shift count (hex), gain multiplier */ > 116 74 /* coefficient of tap 0 */ > 143 8F /* coefficient of tap 1 */ > 170 AA /* coefficient of tap 2 */ > 198 C6 /* coefficient of tap 3 */ > ... > 116 74 /* coefficient of tap 63 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 0 */ > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 1 */ > 0.5187988281250000E-02 3F75400000000000/* coefficient of tap 2 */ > 0.6042480468750000E-02 3F78C00000000000/* coefficient of tap 3 */ > .. > 0.4364013671875000E-02 3F71E00000000000/* coefficient of tap 62 */ > 0.3540039062500000E-02 3F6D000000000000/* coefficient of tap 63 */ > >Hi, The first list is also the coefficients, given in signed 16-bit hexadecimal. Regards, John