Datasheet
dsPICDEM™ 80-PIN STARTER
DEVELOPMENT BOARD USER’S GUIDE
© 2006 Microchip Technology Inc. DS51584B-page 25
Chapter 3. Demonstration Program Operation
3.1 INTRODUCTION
The dsPICDEM 80-Pin Starter Development Board is shipped with example
applications programmed into the dsPIC DSC device. These examples exercise
several of the dsPIC DSC peripherals such as the 12-bit Analog-to-Digital Converter
(ADC) and UART interfaces. This chapter provides an overview of the demonstration
code. Detailed information on the dsPICDEM 80-Pin Starter Development Board
hardware is presented in Chapter 4. “dsPICDEM™ Development Board Hardware”
and Appendix A. “Drawings and Schematics”.
3.2 HIGHLIGHTS
Items discussed in this chapter are:
• Demonstration Program Summary
• Demonstration Code Operation
•Board Self-test
3.3 DEMONSTRATION PROGRAM SUMMARY
The preprogrammed demonstration program includes two functionally separate code
modules:
• Demonstration code module
• Board self-test code module
These two code modules have been combined into one composite program and coded
into the device. The board self-test code module has been included on the CD as a
library archive only and is briefly discussed at the end of this section. The following
sections present the operation of each module.
When power is applied to the dsPICDEM 80-Pin Starter Development Board, the dsPIC
DSC device begins executing the demonstration program, which consists of three
distinct functional tasks:
• Interrupt processing
• Analog-to-digital conversion
• Digital-to-analog conversion
3.3.1 Interrupt Processing
To illustrate interrupt processing, the demonstration program uses switches S1 and S2
as signals to drive LEDs RD4 and RD5 (output devices). When switch S1 is pressed
(to represent an interrupt), LED RD4 blinks at a 1 Hz rate (once per second) until switch
S1 is pressed again. Similarly, when switch S2 is pressed, LED RD5 blinks until switch
S2 is pressed again. Timer 1 is set up to interrupt every half second.