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.

• Development Systems Information Line<br />

Customers should contact their distributor, representative or field application<br />

engineer<br />

(FAE) for support. Local sales offices are also available to help customers. A<br />

listing of<br />

sales offices and locations is included in the back of this document.<br />

Technical support is available through the web site at:<br />

http://support.microchip.com<br />

In addition, there is a Development Systems Information Line which lists the<br />

latest<br />

versions of Microchip's development systems software products. This line also<br />

provides information on how customers can receive currently available upgrade<br />

kits.<br />

The Development Systems Information Line numbers are:<br />

1-800-755-2345 – United States and most of Canada<br />

1-480-792-7302 – Other International Locations<br />

dsPIC<br />

®LANGUAGE TOOLS<br />

LIBRARIES<br />

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

Chapter 1. Library Overview<br />

1.1 INTRODUCTION<br />

A library is a collection of functions grouped for reference and ease of linking.<br />

See the<br />

MPLAB ASM30, MPLAB LINK30 and Utilities User's Guidefor more<br />

information about<br />

making and using libraries.<br />

1.1.1 Assembly Code Applications<br />

Free versions of the dsPIC language tool libraries are available from the<br />

Microchip web<br />

site. DSP and dsPIC peripheral libraries are provided with object files and<br />

source code.<br />

A math library containing functionsfrom the standard C header file is<br />

provided as an object file only. The completestandard C library is provided with<br />

the<br />

MPLAB C30 C compiler.<br />

1.1.2 C Code Applications<br />

The dsPIC language tool libraries are included in the c:\pic30_tools\lib<br />

directory, where c:\pic30_toolsis the MPLAB C30 C compiler install directory.<br />

These can be linked directly into an application with MPLAB LINK30.<br />

1.1.3 Chapter Organization<br />

This chapter is organized as follows:<br />

• OMF-Specific Libraries/StarTup Modules<br />

Chương 1 Thư viện Tổng quan<br />

1.1 GIỚI THIỆU<br />

Một thư viện là một tập hợp các chức năng được nhóm lại để tham khảo và dễ<br />

dàng liên kết. Xem<br />

MPLAB ASM30, MPLAB LINK30 và Guidefor tiện ích của người sử dụng<br />

thêm thông tin về<br />

lập và sử dụng thư viện.<br />

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

Phiên bản miễn phí của các thư viện công cụ ngôn ngữ dsPIC có sẵn từ các<br />

trang web Microchip<br />

trang web. DSP và dsPIC thư viện ngoại vi được cung cấp với các tập tin đối<br />

tượng và mã nguồn.<br />

Một thư viện toán học có chứa functionsfrom tiêu chuẩn tập tin C tiêu đề là<br />

cung cấp như một tập tin duy nhất đối tượng. Thư viện completestandard C<br />

được cung cấp cùng với<br />

Trình biên dịch MPLAB C30 C.<br />

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

Các thư viện công cụ ngôn ngữ dsPIC có trong c: \ pic30_tools \ lib<br />

thư mục, trong đó c: \ pic30_toolsis trình biên dịch MPLAB C30 C thư mục cài<br />

đặt.<br />

Đây có thể được liên kết trực tiếp vào một ứng dụng với MPLAB LINK30.<br />

1.1.3 Tổ chức Chương<br />

Chương này được tổ chức như sau:<br />

• OMF-cụ thể thư viện / khởi động mô-đun<br />

• Startup Mã<br />

• Thư viện DSP<br />

• Thư viện ngoại vi dsPIC<br />

• Tiêu chuẩn C Thư viện (với các hàm toán học)<br />

• MPLAB C30 Built-in chức năng<br />

THƯ VIỆN 1.2 OMF-CỤ THỂ / MODULES STARTUP<br />

Tập tin thư viện và mô-đun khởi động là OMF specificto (Object Định dạng<br />

Module). Một OMF<br />

có thể là một trong các cách sau:<br />

• COFF - Đây là mặc định.<br />

• ELF - Các định dạng được sử dụng để gỡ lỗi các tập tin đối tượng là ELF lùn<br />

2.0.<br />

Có hai cách để chọn OMF:<br />

1 Đặt biến môi trường được gọi là PIC30_OMFfor tất cả các công cụ.<br />

2. Chọn OMF trên dòng lệnh khi envoking công cụ, ví dụ, -omf = omfor<br />

-momf = OMF.<br />

công cụ dsPIC đầu tiên sẽ tìm kiếm tập tin thư viện chung khi xây dựng ứng<br />

dụng của bạn (không OMF<br />

đặc điểm kỹ thuật). Nếu những điều này không thể được tìm thấy, công cụ sẽ<br />

xem xét chi tiết kỹ thuật của bạn OMF

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

Saved successfully!

Ooh no, something went wrong!