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.

Language Tools Libraries<br />

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

Remarks: N mustbe an integer power of 2.<br />

This function operates out of place.A complex vector, large enough to<br />

receive the results of the operation, mustalready have been allocated<br />

and assigned to dstCV.<br />

The dstCVvector must be allocated at a modulo alignment of N.<br />

The elements in source complex vector are expected in natural order.<br />

The elements in destination complex vector are generated in natural<br />

order.<br />

To avoid saturation (overflow) during computation, the magnitude of the<br />

values of the source complex vector shouldbe in the range [-0.5, 0.5].<br />

If the twiddle factors are stored in X-Data space, twidFactorspoints<br />

to the actual address where the factors are allocated. If the twiddle<br />

factors are stored in program memory, twidFactorsis the offset from<br />

the program page boundary where the factors are allocated. This latter<br />

value can be calculated using the inline assembly operator<br />

psvoffset().<br />

If the twiddle factors are stored in X-Data space, factPagemust be<br />

set to 0xFF00 (defined value COEFFS_IN_DATA). If they are stored in<br />

program memory, factPageis the program page number containing<br />

the factors. This latter value can be calculated using the inline<br />

assembly operator psvpage().<br />

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

other than zero.<br />

Only the first N/2 twiddle factors are needed.<br />

Source File: ifftoop.asm<br />

Function Profile: System resources usage:<br />

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

plus system resources from VectorCopy, and IFFTComplexIP.<br />

trong vector nguồn)<br />

srcCV con trỏ đến nguồn vector phức tạp<br />

địa chỉ twidFactors cơ sở các yếu tố quay vòng<br />

trang bộ nhớ factPage cho chuyển đổi các yếu tố<br />

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

Bình luận: N mustbe một sức mạnh nguyên 2.<br />

Các yếu tố trong nguồn vector phức tạp được dự kiến trong bit ngược<br />

trật tự. Các kết quả chuyển đổi được lưu trữ trong trật tự tự nhiên.<br />

Các srcCVvector phải được phân bổ tại một liên kết modulo N.<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 />

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

psvoffset ().<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 đến một giá trị<br />

khác hơn không.<br />

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

Source File: ifft.asm<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

DOand REPEATinstruction usage:<br />

DS51456B trang 70<br />

2004 Microchip Technology Inc<br />

no DOinstructions<br />

no REPEATinstructions<br />

plus DO/REPEATinstructions from VectorCopy, and<br />

IFFTComplexIP.<br />

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

12<br />

plus program words from VectorCopy, and IFFTComplexIP.<br />

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

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

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

cộng với tài nguyên hệ thống từ 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ừ FFTComplexIP, và

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

Saved successfully!

Ooh no, something went wrong!