07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.1 INTRODUCTION<br />

1.2 HIGHLIGHTS<br />

<strong>MPLAB</strong> ® C COMPILER FOR<br />

<strong>PIC24</strong> <strong>MCUs</strong> AND <strong>dsPIC</strong> ® <strong>DSCs</strong><br />

USER’S GUIDE<br />

Chapter 1. <strong>Compiler</strong> Overview<br />

The <strong>dsPIC</strong> ® family of Digital Signal Controllers (<strong>dsPIC</strong>30F <strong>and</strong> <strong>dsPIC</strong>33F <strong>DSCs</strong>) combines<br />

the high per<strong>for</strong>mance required in DSP applications with st<strong>and</strong>ard microcontroller<br />

features needed <strong>for</strong> embedded applications. <strong>PIC24</strong> <strong>MCUs</strong> are identical to the <strong>dsPIC</strong><br />

<strong>DSCs</strong> with the exception that they do not have the digital signal controller module or<br />

that subset of instructions. They are a subset <strong>and</strong> are high-per<strong>for</strong>mance microcontrollers<br />

intended <strong>for</strong> applications that do not require the power of the DSC<br />

capabilities.<br />

All of these devices are fully supported by a complete set of software development<br />

tools, including an optimizing C compiler, an assembler, a linker <strong>and</strong> an archiver/<br />

librarian.<br />

This chapter provides an overview of these tools <strong>and</strong> introduces the features of the<br />

optimizing C compiler, including how it works with the assembler <strong>and</strong> linker. The<br />

assembler <strong>and</strong> linker are discussed in detail in the “<strong>MPLAB</strong> ® Assembler, Linker <strong>and</strong><br />

Utilities <strong>for</strong> <strong>PIC24</strong> <strong>MCUs</strong> <strong>and</strong> <strong>dsPIC</strong> ® <strong>DSCs</strong> User’s Guide” (DS51317).<br />

Items discussed in this chapter are:<br />

• <strong>Compiler</strong> Description <strong>and</strong> Documentation<br />

• <strong>Compiler</strong> <strong>and</strong> Other Development Tools<br />

• <strong>Compiler</strong> Feature Set<br />

1.3 COMPILER DESCRIPTION AND DOCUMENTATION<br />

There are three compilers that support <strong>Microchip</strong> 16-bit devices. The first compiler,<br />

previously called <strong>MPLAB</strong> C30, is now called:<br />

1. <strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> <strong>PIC24</strong> <strong>MCUs</strong> <strong>and</strong> <strong>dsPIC</strong> ® <strong>DSCs</strong> – supports all 16-bit<br />

devices<br />

Two additional compilers, subsets of the first, are:<br />

2. <strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> <strong>dsPIC</strong> <strong>DSCs</strong> - supports <strong>dsPIC</strong>30F/33F DSC devices<br />

3. <strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> <strong>PIC24</strong> <strong>MCUs</strong> - supports <strong>PIC24</strong>F/H MCU devices<br />

Each compiler is an ANSI x3.159-1989-compliant, optimizing C compiler. Each compiler<br />

is a Windows ® console application that provides a plat<strong>for</strong>m <strong>for</strong> developing C code.<br />

Each compiler is a port of the GCC compiler from the Free Software Foundation.<br />

The first <strong>and</strong> second compilers include language extensions <strong>for</strong> <strong>dsPIC</strong> DSC<br />

embedded-control applications.<br />

This manual describes the first compiler, as the second <strong>and</strong> third compilers are subsets<br />

of the first. Features that are unique to specific devices, <strong>and</strong> there<strong>for</strong>e specific compilers,<br />

are noted in the text with a star in the column (see Preface) <strong>and</strong> text identifying the<br />

devices to which the text applies.<br />

© 2008 <strong>Microchip</strong> Technology Inc. DS51284H-page 7

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

Saved successfully!

Ooh no, something went wrong!