User manual

dsPICDEM™ 2
DEVELOPMENT BOARD
USERS GUIDE
© 2005 Microchip Technology Inc. DS51558A-page 13
Chapter 2. Getting Started
2.1 INTRODUCTION
The dsPICDEM™ 2 Development Board provides both a hardware and software base-
line capability to help jump start your application. The board is pre-configured for and
populated with a dsPIC30F4011 Digital Signal Controller (DSC). The dsPIC30F4011 is
preprogrammed with a sample application program ready to run out of the box.
This chapter describes how to run the application and evaluate the program to take
advantage of the sample software.
2.2 HIGHLIGHTS
Items discussed in this chapter include:
Getting Started
Out-of-the-Box Demo
Device Programming Process
In-Circuit Debugging Process
Summary
2.3 GETTING STARTED
The dsPICDEM 2 sample application program demonstrates key functionality of the
dsPIC30F devices. This sample application program processes analog data from a
temperature sensor and potentiometer provided on the board. It also processes
interrupts generated from pushbutton switches on the board. Based on the input data,
the program creates output in the form of LED indicators, which blink in response to the
pushbutton switches, and an LCD screen, which displays the temperature and
potentiometer values. The program also uses the dsPIC30F’s UART module to mirror
LCD information (via RS-232 connection) to a remote terminal.
The sample application is written in C language and tailored specifically for each
dsPIC30F device supported by the dsPICDEM™ 2 Development Board. Figure 2-1
outlines helpful processes to get you started using the dsPICDEM 2 board.
FIGURE 2-1: GETTING STARTED PROCESSES
Open the MPLAB
®
IDE
workspace for selected
dsPIC30F device (see
Setting up MPLAB IDE)
Build project and program
the dsPIC30F device
(see Build the Project)
Release device from reset
& observe application (see
Run the Application)
Select MPLAB ICD 2 as
Debugger, build project and
program device
Evaluate program for
applicability to your need
Set breakpoint and
examine application
program code
Apply power to board and
run application
(see Observe Sample
Application)
Out-of-the-Box Demo Device Programming In-Circuit Debugging
Connect your PC to the
dsPICDEM™ 2 board
(see Figure 2-2)
Launch HyperTerminal
®
(see Connect PC and Start
HyperTerminal Session)