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.

data section. The alternate startup module (crt1) performs no data initialization.<br />

For more on startup code, see the MPLAB ASM30, MPLAB LINK30 and<br />

Utilities User’s<br />

Guideand, for C applications, the MPLAB C30 C Compiler User’s Guide.<br />

1.4 DSP LIBRARY<br />

The DSP library (libdsp-omf.a) provides a set of digital signal processing<br />

operations to a program targeted for execution on a dsPIC30F digital signal<br />

controller (DSC).<br />

In total, 49 functions are supported by the DSP Library.<br />

1.5 dsPIC PERIPHERAL LIBRARIES<br />

The dsPIC (software and hardware) peripherallibraries provide functions and<br />

macros<br />

for setting up and controlling dsPIC30F DSC peripherals. Examples of use are<br />

also<br />

provided in each related chapter of this book.<br />

These libraries are processor-specific and of the form libpDevice-omf.a, where<br />

Device= dsPIC device number (e.g., libp30F6014-coff.afor the dsPIC30F6014<br />

device.)<br />

1.6 STANDARD C LIBRARIES (WITH MATH FUNCTIONS)<br />

A complete set of ANSI-89 conforming libraries are provided. The standard C<br />

library<br />

files are libc-omf.a(written by Dinkumware, an industry leader) and libm-omf.a<br />

(math functions, written by Microchip.)<br />

Additionally, some dsPIC standard C library helper functions, and standard<br />

functions<br />

that must be modified for use with dsPIC devices, are in libpic30-omf.a.<br />

A typical C application will require all three libraries.<br />

1.7 MPLAB C30 BUILT-IN FUNCTIONS<br />

The MPLAB C30 C compiler contains built-in functions that, to the developer,<br />

work like<br />

library functions.<br />

dsPIC<br />

®LANGUAGE TOOLS<br />

LIBRARIES<br />

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

Chapter 2. DSP Library<br />

2.1 INTRODUCTION<br />

The DSP Library provides a set of digital signal processing operations to a<br />

program targeted for execution on a dsPIC30F digital signalcontroller (DSC).<br />

The library has been<br />

designed to provide you, the C software developer, with efficient<br />

implementation of the<br />

most common signal processing functions. In total, 49 functions are supported<br />

by the<br />

công nghiệp) và libm-omf.a<br />

(Chức năng toán học, được viết bởi Microchip.)<br />

Ngoài ra, một số tiêu chuẩn dsPIC chức năng trợ giúp thư viện C, và các chức<br />

năng tiêu chuẩn<br />

đó phải được sửa đổi để sử dụng với các thiết bị dsPIC, trong libpic30-omf.a.<br />

Một ứng dụng điển hình C sẽ yêu cầu tất cả ba thư viện.<br />

1,7 MPLAB C30 chức năng được xây dựng-IN<br />

Trình biên dịch MPLAB C30 C có tích hợp chức năng đó, để phát triển, làm<br />

việc như thế<br />

chức năng thư viện.<br />

dsPIC<br />

®LANGUAGE CÔNG CỤ<br />

THƯ VIỆN<br />

2004 Microchip Technology Inc DS51456B trang 9<br />

Chương 2 DSP Thư viện<br />

2.1 GIỚI THIỆU<br />

Thư viện DSP cung cấp một tập hợp các hoạt động xử lý tín hiệu kỹ thuật số để<br />

một chương trình mục tiêu để thực hiện trên một số signalcontroller dsPIC30F<br />

(DSC). Các thư viện đã được<br />

được thiết kế để cung cấp cho bạn, các nhà phát triển phần mềm C, với việc<br />

thực hiện có hiệu quả các<br />

hầu hết các chức năng xử lý tín hiệu thông thường. Tổng cộng, 49 chức năng<br />

được hỗ trợ bởi<br />

Thư viện DSP.<br />

Mục tiêu hàng đầu của thư viện là để giảm thiểu thời gian thực hiện từng chức<br />

năng. Để<br />

đạt được mục tiêu này, Thư viện DSP chủ yếu viết bằng lắp ráp tối ưu hóa<br />

ngôn ngữ. Bằng cách sử dụng thư viện DSP, bạn có thể nhận ra lợi ích quan<br />

trọng trong thực hiện<br />

tốc độ trên mã tương đương viết bằng ANSI C.Additionally, kể từ khi Thư viện<br />

DSP có<br />

được thử nghiệm chặt chẽ, sử dụng thư viện DSP sẽ cho phép bạn rút ngắn ứng<br />

dụng của bạn<br />

thời gian phát triển.<br />

2.1.1 ứng dụng Mã hội<br />

Một phiên bản miễn phí của thư viện này và tập tin tiêu đề liên quan của nó có<br />

sẵn từ<br />

Trang web của Microchip. Mã nguồn được bao gồm.<br />

2.1.2 ứng dụng C Mã<br />

Trình biên dịch MPLAB C30 C thư mục cài đặt (C: \ pic30_tools) chứa các<br />

thư mục con với các tập tin thư viện liên quan sau đây:<br />

• thư viện DSP lib- / lưu trữ các tập tin<br />

• src \ dsp- mã nguồn cho các chức năng thư viện và một tập tin thực thi để xây<br />

dựng lại thư viện<br />

• Hỗ trợ \ h- tập tin tiêu đề cho thư viện DSP

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

Saved successfully!

Ooh no, something went wrong!