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.

twidFactorspoint to the actual address where the factors are<br />

allocated. If the transform factors are stored in program memory,<br />

cosFactorsand twidFactorsare the offset from the program page<br />

boundary where the factors are allocated. This latter value can be<br />

calculated using the inline assembly operator psvoffset().<br />

If the transform 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 />

different than zero.<br />

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

Output is scaled by the factor<br />

Source File: dctoop.asm<br />

Function Profile: System resources usage:<br />

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

plus system resources from VectorZeroPad, and DCTIP.<br />

DOand REPEATinstruction usage:<br />

no DOinstructions<br />

no REPEATinstructions<br />

plus DO/REPEATinstructions from VectorZeroPad, and DCTIP.<br />

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

nguồn vector shouldbe trong khoảng [-0.5, 0.5].<br />

Chỉ có các yếu tố N / 2 cos đầu tiên là cần thiết.<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ố chuyển đổi được lưu trữ trong không gian X-Data,<br />

cosFactorsand<br />

twidFactorspoint đến địa chỉ thực tế nơi mà các yếu tố này<br />

phân bổ. Nếu các yếu tố chuyển đổi được lưu trữ trong bộ nhớ chương trình,<br />

cosFactorsand twidFactorsare bù đắp từ trang chương trình<br />

ranh giới nơi các yếu tố được phân bổ. Giá trị sau này có thể<br />

tính bằng cách sử dụng psvoffset hành lắp ráp nội tuyến ().<br />

Nếu các yếu tố chuyển đổi được lưu trữ trong không gian X-Data, factPagemus<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 nhau hơn không.<br />

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

Source File: dctoop.asm<br />

12N () /<br />

dsPIC<br />

®<br />

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

16<br />

DS51456B trang 64<br />

2004 Microchip Technology Inc<br />

plus program words from VectorZeroPad, and DCTIP.<br />

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

22<br />

plus cycles from VectorZeroPad, and DCTIP.<br />

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

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

number of actual cycles from VectorZeroPadto add to DCTis 4 less<br />

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

In the same way, the number of actual cycles from DCTIPto add to DCT<br />

is 3 less than whatever numberis reported for a stand alone DCTIP.<br />

DCT (Continued)<br />

12N () ⁄<br />

DSP Library<br />

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

DCTIP<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..W13 lưu, sử dụng, phục hồi<br />

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

CORCON lưu, sử dụng, phục hồi<br />

PSVPAG lưu, sử dụng, phục hồi (nếu<br />

hệ số P trong bộ nhớ)<br />

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

1 DOinstructions cấp<br />

1 REPEATinstructions cấp<br />

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

IFFTComplexIP.<br />

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

92<br />

cộng thêm từ chương trình từ IFFTComplexIP.

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

Saved successfully!

Ooh no, something went wrong!