dsPICDEM™ 1.1 PLUS
DEVELOPMENT BOARD
USER’S GUIDE
©
2006 Microchip Technology Inc.
DS70099D-page 13
Chapter 2. Using dsPIC30F Devices
2.1
INTRODUCTION
This chapter is a self-paced tutorial to get you started using the dsPICDEM™ 1.1 Plus
Development Board with dsPIC30F devices. The tutorial demonstrates the main fea-
tures of MPLAB IDE Integrated Development Environment and the MPLAB ICD 2
In-Circuit Debugger as they are used with the dsPICDEM™ 1.1 Plus Development
Board. Upon completing this tutorial, you should be able to:
• Create a project using the Project Wizard.
• Assemble and link the code and set the Configuration bits.
• Set up MPLAB IDE to use the MPLAB ICD 2 In-Circuit Debugger.
• Program the chip with the MPLAB ICD 2.
• View the code execution in program memory and source code.
• View registers in a Watch window.
• Set a breakpoint and make the code halt at a chosen location.
• Use the function keys to Reset, Run, Halt and Single Step the code.
2.2
HIGHLIGHTS
Items discussed in this chapter include:
• Tutorial Overview
• Creating the Project
• Building the Code
• Programming the Chip
• Debugging the Code
2.3
TUTORIAL OVERVIEW
The tutorial program in
Tut6014a.s
(included with the CD-ROM) is written in
assembly code. This program displays text on the LCD and flashes an LED. The
source file is used with a linker script file (
p30f6014a.gld
) and an include file
(
p30f6014a.inc
) to form a complete project. The tutorial is a simple project that uses
a single source code file. More complex projects might use multiple assembler and
compiler source files as well as library files and precompiled object files. For simplicity,
this tutorial uses only one source file.
There are four steps to this tutorial:
1.
Create a project in MPLAB IDE.
2.
Assemble and link the code.
3.
Program the chip with the MPLAB ICD 2.
4.
Debug the code with the MPLAB ICD 2.