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.

plus program words from VectorCopy<br />

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

18 + numZeros<br />

plus cycles from VectorCopy.<br />

Note:In the description of VectorCopy, the number of cycles reported<br />

includes 3 cycles of C-function calloverhead. Thus, the number of<br />

actual cycles from VectorCopyto add to VectorCorrelateis 3 less<br />

than whatever number is reported for a stand alone VectorCopy.<br />

VectorZeroPad (Continued)<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

thành<br />

mỗi lần gọi hàm.<br />

d) Kể từ khi chức năng khởi tạo cửa sổ được thực hiện trong C, tham khảo ý<br />

kiến<br />

tài liệu điện tử bao gồm trong bản phát hành cho số cập nhật lên chu kỳ<br />

thông tin.<br />

2.4.2 Chức năng cá nhân<br />

Trong phần tiếp theo, các chức năng cá nhân thực hiện các hoạt động cửa sổ là<br />

mô tả.<br />

BartlettInit<br />

Mô tả: BartlettInitinitializes một cửa sổ Barlett numElems dài.<br />

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

Nguyên mẫu: ở ngoài phân đoạn * BartlettInit (<br />

DS51456B-page 26<br />

2004 Microchip Technology Inc.<br />

int numElems,<br />

2.4 WINDOW FUNCTIONS<br />

A window is a vector with a specific value distribution within its domain (0 ≤n<br />

<<br />

numElems). The particular value distribution depends on the characteristics of<br />

the<br />

window being generated.<br />

Given a vector, its value distribution may be modified by applying a window to<br />

it. In<br />

these cases, the window musthave the same number of elements as the vector to<br />

modify.<br />

Before a vector can be windowed, the window must be created. Window<br />

initialization<br />

operations are provided which generate the values of the window elements. For<br />

higher<br />

numerical precision, these values are computed in floating point arithmetic, and<br />

the<br />

resulting quantities stored as 1.15 fractionals.<br />

To avoid excessive overhead when applying a window operation, a particular<br />

window<br />

could be generated once and used many times during the execution of the<br />

program.<br />

Thus, it is advisable to store the window returned by any of the initialization<br />

operations<br />

in a permanent (static) vector.<br />

2.4.1 User Considerations<br />

a) All the window initialization functions have been designed to generate<br />

window<br />

vectors allocated in default RAM memory space (X-Data or Y-Data).<br />

b) The windowing function is designed to operate on vectors allocated in default<br />

RAM memory space (X-Data or Y-Data).<br />

* phân đoạn cửa sổ<br />

);<br />

Đối số: numElems số phần tử trong cửa sổ<br />

cửa sổ con trỏ đến cửa sổ phải được khởi tạo<br />

Quay trở lại giá trị: Con trỏ trỏ tới địa chỉ cơ sở của cửa sổ khởi tạo.<br />

Chú ý: windowvector mustalready tồn tại, với chính xác numElemsnumber<br />

các yếu tố.<br />

Source File: initbart.c<br />

DSP Thư viện<br />

2004 Microchip Technology Inc DS51456B trang 27<br />

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

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

W8..W14 lưu, sử dụng, không được khôi phục<br />

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

Không<br />

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

Xem các tập tin "Readme cho dsPIC bằng các ngôn ngữ Libraries.txt" cho<br />

thông tin này.<br />

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

Xem các tập tin "Readme cho dsPIC bằng các ngôn ngữ Libraries.txt" cho<br />

thông tin này.<br />

BlackmanInit<br />

Mô tả: BlackmanInitinitializes một Blackman (3 học kỳ) cửa sổ của chiều dài<br />

numElems.<br />

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

Nguyên mẫu: ở ngoài phân đoạn * BlackmanInit (

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

Saved successfully!

Ooh no, something went wrong!