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.

The twiddle factors mustbe initialized with conjFlagset to a value<br />

different than zero.<br />

Output is scaled by the factor .<br />

Source File: dctoop.asm<br />

12N () ⁄<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

Để tránh bão hòa (overflow) duringcomputation, tầm quan trọng của<br />

giá trị của các nguồn phức tạp vector shouldbe trong khoảng [-0.5, 0.5].<br />

Chỉ có các yếu tố N / 2 quay vòng đầu tiên là cần thiết.<br />

Nếu các yếu tố quay vòng được lưu trữ trong không gian X-Data,<br />

twidFactorspoints<br />

đến địa chỉ thực tế mà các yếu tố được phân bổ. Nếu quay vòng<br />

yếu tố được lưu trữ trong bộ nhớ chương trình, twidFactorsis bù đắp từ<br />

ranh giới trang chương trình mà các yếu tố được phân bổ. Sau này<br />

giá trị có thể được tính bằng cách sử dụng toán tử lắp ráp nội tuyến<br />

DS51456B-page 64<br />

2004 Microchip Technology Inc.<br />

psvoffset ().<br />

Function Profile: System resources usage:<br />

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

W8..W13 saved, used, restored<br />

ACCA used, not restored<br />

CORCON saved, used, restored<br />

PSVPAG saved, used, restored (only if<br />

coefficients in P memory)<br />

DOand REPEATinstruction usage:<br />

1 level DOinstructions<br />

1 level REPEATinstructions<br />

plus DO/REPEATinstructions from<br />

IFFTComplexIP.<br />

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

92<br />

plus program words from IFFTComplexIP.<br />

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

71 + 10N, or<br />

73 + 11N if factors in program memory,<br />

plus cycles from IFFTComplexIP<br />

Note:In the description of IFFTComplexIPthe number of cycles<br />

reported includes 4 cycles of C-function call overhead. Thus, the<br />

number of actual cycles from IFFTComplexIPto add to DCTIPis 4<br />

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

IFFTComplexIP.<br />

FFTComplex<br />

Description: FFTComplexcomputes the Discrete Fourier Transform of a source<br />

complex vector, and stores the results in the destination complex<br />

vector.<br />

Include: dsp.h<br />

Prototype: extern fractcomplex*FFTComplex (<br />

Nếu các yếu tố quay vòng được lưu trữ trong không gian X-Data, factPagemust<br />

được<br />

thiết lập để 0xff00 (được định nghĩa COEFFS_IN_DATA giá trị). Nếu chúng<br />

được lưu trữ trong<br />

bộ nhớ chương trình, factPageis số trang có chứa chương trình<br />

các yếu tố. Giá trị sau này có thể được tính toán bằng cách sử dụng nội tuyến<br />

hành lắp ráp psvpage ().<br />

Các yếu tố quay vòng mustbe khởi tạo với conjFlagset không.<br />

Kết quả sẽ được thu nhỏ lại bởi yếu tố 1 / N.<br />

Source File: fftoop.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 />

cộng với tài nguyên hệ thống từ VectorCopy, FFTComplexIP, và<br />

BitReverseComplex.<br />

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

không DOinstructions<br />

không REPEATinstructions<br />

cộng với DO / REPEATinstructions từ VectorCopy, FFTComplexIP,<br />

và BitReverseComplex.<br />

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

17<br />

cộng thêm từ chương trình từ VectorCopy, FFTComplexIP, và<br />

BitReverseComplex.<br />

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

23<br />

cộng với chu kỳ từ VectorCopy, FFTComplexIP, và<br />

BitReverseComplex.<br />

Lưu ý: Trong các mô tả về số VectorCopythe chu kỳ báo cáo<br />

bao gồm 3 chu kỳ của C-chức năng calloverhead. Như vậy, số lượng<br />

chu kỳ thực tế từ VectorCopyto thêm vào FFTComplexis 3 ít hơn<br />

bất cứ số được báo cáo cho một đứng một mình VectorCopy. Trong

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

Saved successfully!

Ooh no, something went wrong!