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.

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: ifft.asm<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

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

Function Profile: System resources usage:<br />

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

plus system resources from FFTComplexIP, and<br />

BitReverseComplex.<br />

DOand REPEATinstruction usage:<br />

no DOinstructions<br />

no REPEATinstructions<br />

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

BitReverseComplex.<br />

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

11<br />

plus program words from FFTComplexIP, and<br />

BitReverseComplex.<br />

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

15<br />

plus cycles from FFTComplexIP, and BitReverseComplex.<br />

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

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

number of actual cycles from FFTComplexIPto add to<br />

IFFTComplexIPis 3 less than whatever number is reported for a<br />

stand alone<br />

FFTComplexIP. In the same way, the number of actual cycles from<br />

BitReverseComplexto add to IFFTComplexIPis 2 less than<br />

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

N<br />

--------- - -<br />

=<br />

WN k () e<br />

j<br />

2πk<br />

N<br />

--------- - =<br />

DSP Thư viện<br />

2004 Microchip Technology Inc DS51456B trang 71<br />

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

Chỉ có các yếu tố N / 2 quay vòng đầu tiên được tạo ra.<br />

Giá trị của conjFlagdetermines dấu trong lập luận của<br />

hàm mũ. Đối với phía trước phép biến đổi Fourier, conjFlag<br />

nên được thiết lập để "0". Đối nghịch đảo phép biến đổi Fourier rời rạc và<br />

Cosin Transforms, conjFlagshould được thiết lập để "1".<br />

Một vector phức tạp có kích thước N / 2 phải đã được phân bổ và<br />

giao cho twidFactorsprior để gọi hàm. Các phức tạp<br />

vector shouldbe phân bổ trong bộ nhớ X-Data.<br />

Các yếu tố tính toán trong số học dấu chấm và chuyển đổi thành 1,15<br />

fractionals phức tạp.<br />

Source File: inittwid.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, phục hồi<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 />

TwidFactorInit (Tiếp theo)<br />

dsPIC<br />

®<br />

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

DS51456B trang 72 2004 Microchip Technology Inc<br />

GHI CHÚ:<br />

dsPIC<br />

®LANGUAGE CÔNG CỤ

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

Saved successfully!

Ooh no, something went wrong!