30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

W8..W14 saved, used, not restored<br />

DOand REPEATinstruction usage:<br />

None<br />

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

See the file “readme.txt” in pic30_tools\src\dsp for this information.<br />

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

See the file “readme.txt” in pic30_tools\src\dsp for this information.<br />

HanningInit<br />

Description: HanningInitinitializes a Hanning window of length numElems.<br />

Include: dsp.h<br />

Prototype: extern fractional* HanningInit (<br />

int numElems,<br />

fractional* window<br />

);<br />

Arguments: numElems number of elements in window<br />

window pointer to window to be initialized<br />

Return Value: Pointer to base address of initialized window.<br />

Remarks: The windowvector mustalready exist, with exactly numElemsnumber<br />

of elements.<br />

Source File: inithann.c<br />

Function Profile: System resources usage:<br />

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

W8..W14 saved, used, not restored<br />

DOand REPEATinstruction usage:<br />

None<br />

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

See the file “readme.txt” in pic30_tools\src\dsp for this information.<br />

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

See the file “readme.txt” in pic30_tools\src\dsp for this information.<br />

DSP Library<br />

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

KaiserInit<br />

Description: KaiserInitinitializes a Kaiser window with shape determined by<br />

argument betaValand of length numElems.<br />

Include: dsp.h<br />

Prototype: extern fractional* KaiserInit (<br />

int numElems,<br />

fractional* window,<br />

float betaVal<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 />

betaVal tham số hình cửa sổ<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: initkais.c<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 file "readme.txt" trong pic30_tools \ src \ DSP cho 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 file "readme.txt" trong pic30_tools \ src \ DSP cho thông tin này.<br />

VectorWindow<br />

Mô tả: VectorWindowapplies một cửa sổ để một vector nguồn được đưa ra, và<br />

các cửa hàng<br />

vector cửa sổ kết quả trong một vector đích.<br />

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

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

int numElems,<br />

phân đoạn * DSTV,<br />

phân đoạn * srcV,<br />

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

);<br />

Đối số: numElems số phần tử trong vector nguồn<br />

DSTV con trỏ tới vector điểm đến<br />

srcV con trỏ tới vector nguồn<br />

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

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

Chú ý: musthave windowvector đã được khởi tạo, với chính xác<br />

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

Chức năng này có thể được tính tại chỗ.<br />

Chức năng này có thể tự áp dụng.<br />

Chức năng này sử dụng VectorMultiply.<br />

Source File: dowindow.asm<br />

dsPIC<br />

®

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

Saved successfully!

Ooh no, something went wrong!