30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIRDelayInit<br />

Description: FIRDelayInitinitializes to zero the delay values in an FIRStruct<br />

filter structure.<br />

Include: dsp.h<br />

Prototype: extern void FIRDelayInit (<br />

FIRStruct* filter<br />

);<br />

Arguments: filter pointer to FIRStructfilter structure.<br />

Remarks: See description of FIRStructstructure above.<br />

Note:FIR interpolator's delay is initialized by function<br />

FIRInterpDelayInit.<br />

Source File: firdelay.asm<br />

Function Profile: System resources usage:<br />

W0..W2 used, not restored<br />

DOand REPEATinstruction usage:<br />

no DOinstructions<br />

1 level REPEATinstructions<br />

Program words (24-bit instructions):<br />

7<br />

Cycles (including C-function call and return overheads):<br />

11 + M<br />

FIRDecimate (Continued)<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

DS51456B-page 44 2004 Microchip Technology Inc.<br />

FIRInterpolate<br />

Description: FIRInterpolateinterpolates the sequence of source samples at a<br />

rate of 1 to R; or equivalently, it upsamples the signal by a factor of R.<br />

Effectively,<br />

y[n] = x[n/R].<br />

To diminish the effect of aliasing, the source samples are first<br />

upsampled and then filtered. The interpolated results are stored in the<br />

sequence of destination samples,and the delay values updated.<br />

Include: dsp.h<br />

Prototype: extern fractional* FIRInterpolate (<br />

int numSamps,<br />

fractional* dstSamps,<br />

fractional* srcSamps,<br />

CORCON lưu, sử dụng, phục hồi<br />

PSVPAG lưu, sử dụng, phục hồi (nếu<br />

hệ số P trong bộ nhớ)<br />

DOand REPEATinstruction sử dụng:<br />

2 DOinstructions cấp<br />

1 REPEATinstructions cấp<br />

Từ chương trình (hướng dẫn 24-bit):<br />

63<br />

Chu kỳ (bao gồm cả cuộc gọi C-chức năng và trả các chi phí):<br />

45 + 6 (M / R) + N (14 + M / R + 3M + 5R), hoặc<br />

48 + 6 (M / R) + N (14 + M / R + 4M + 5R) nếu hệ số P trong bộ nhớ.<br />

DSP Thư viện<br />

2004 Microchip Technology Inc DS51456B trang 45<br />

FIRInterpDelayInit<br />

Mô tả: FIRInterpDelayInitinitializes bằng không các giá trị chậm trễ trong một<br />

Cấu trúc FIRStructfilter, tối ưu hóa để sử dụng với một nội suy FIR<br />

bộ lọc.<br />

Bao gồm: dsp.h<br />

Prototype: ngoài void FIRDelayInit (<br />

FIRStruct * bộ lọc,<br />

int tỷ lệ<br />

);<br />

Đối số: lọc con trỏ đến cấu trúc FIRStructfilter<br />

tỷ lệ tỷ lệ nội suy (upsampling yếu tố, cũng R)<br />

Bình luận: Delay, d [m], được định nghĩa trong 0 ≤m<br />

hệ số trong xen vào.<br />

Xem mô tả các FIRStructstructure trên.<br />

Source File: firintdl.asm<br />

Chức năng thông tin: sử dụng nguồn tài nguyên của hệ thống:<br />

W0..W4 sử dụng, không được khôi phục<br />

DOand REPEATinstruction sử dụng:<br />

không DOinstructions<br />

1 REPEATinstructions cấp<br />

Từ chương trình (hướng dẫn 24-bit):<br />

13<br />

Chu kỳ (bao gồm cả cuộc gọi C-chức năng và trả các chi phí):<br />

10 + 7M / R<br />

FIRLattice<br />

Mô tả: FIRLatticeuses thực hiện một cấu trúc mạng tinh thể áp dụng một FIR

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!