Microchip Technology DM300019 Data Sheet
dsPICDEM™ 80-Pin Starter Development Board User’s Guide
DS51584B-page 16
© 2006 Microchip Technology Inc.
2.5
BUILDING THE CODE
In this project, building the code consists of assembling the Eg1_BlinkLed.s file to
create an object file Eg1_BlinkLed.o and then linking the object file to create the
Eg1_BlinkLed.hex
create an object file Eg1_BlinkLed.o and then linking the object file to create the
Eg1_BlinkLed.hex
and Eg1_BlinkLed.cof output files. The HEX file contains the
data necessary to program the device, and the .cof file contains additional information
that lets you debug the code at the source code level.
Before building, there are settings required to tell MPLAB IDE where to find the include
files and to reserve space for the extra debug code when the MPLAB ICD 2 is used.
The following line is near the top of the Eg1_BlinkLed.s file:
that lets you debug the code at the source code level.
Before building, there are settings required to tell MPLAB IDE where to find the include
files and to reserve space for the extra debug code when the MPLAB ICD 2 is used.
The following line is near the top of the Eg1_BlinkLed.s file:
.include "p30f6014a.inc"
This line causes a standard include file to be used. Microchip provides these files with
all the Special Function Register (SFR) labels already defined for convenience.
To build the code, select Build Options>Project from the Project menu. The Build
Options dialog displays (see Figure 2-7).
all the Special Function Register (SFR) labels already defined for convenience.
To build the code, select Build Options>Project from the Project menu. The Build
Options dialog displays (see Figure 2-7).
FIGURE 2-7:
BUILD OPTIONS
Browse to the location of the
Assembler Include file
Assembler Include file