Chapter 2. Explorer 16 Programming Tutorial; Introduction; Highlights; Tutorial Overview - Microchip Technology Explorer 16 User Manual

Hide thumbs Also See for Explorer 16:
Table of Contents

Advertisement

Chapter 2. Explorer 16 Programming Tutorial

2.1

INTRODUCTION

This chapter is a self-paced tutorial to get you started using the Explorer 16 Development
Board.
2.2

HIGHLIGHTS

Items discussed in this chapter include:

• Tutorial Overview

• Creating the Project

• Building the Code

• Programming the Device
2.3
TUTORIAL OVERVIEW
The tutorial in this chapter demonstrates the main features of the MPLAB IDE and
MPLAB ICD 2 as they are used with the Explorer 16 Development Board. As pre-
sented, it is designed for use with the PIC24FJ128GA010 specifically. However, the
same procedures and toolsuites can also be used with PIC24H or dsPIC33F devices.
The PIC24 tutorial project demonstrated here, PIC24ExplDemo.mcp, is written in C
for MPLAB C30. The program displays PIC24 features on the alphanumeric LCD, and
also displays voltage, temperature and date/time as the various buttons are pressed.
Described with the PIC24 project is the dsPIC device tutorial,
Example1_RTC_LED_ADC.mcp. It is also written in C for MPLAB C30. The program
displays voltage and current time, updating the display on command. Both programs
are described in more detail in Chapter 3. "Explorer 16 Tutorial Programs".
For either project, the source file (PIC24ExplDemo.c or main_rtc.c for PIC24 or
dsPIC33F, respectively) is used with a linker script file (p24fj128ga010.gld or
p33fj256gp710ps.gld) and header file (p24fj128ga010.h or
p33fj256gp710ps.h) to form a complete project. While these simple projects use 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.
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
• Program the chip with the MPLAB ICD 2
There are three steps to this tutorial:
1. Creating a project in MPLAB IDE.
2. Assembling and linking the code.
3. Programming the chip with the MPLAB ICD 2.
© 2005 Microchip Technology Inc.
EXPLORER 16 DEVELOPMENT
BOARD USER'S GUIDE
DS51589A-page 11

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Explorer 16 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents