User manual
MPLAB
®
REAL ICE
™
IN-CIRCUIT
EMULATOR USER’S GUIDE
© 2008 Microchip Technology Inc. DS51616B-page 31
Chapter 4. Tutorial
4.1 INTRODUCTION
This tutorial walks you through the process of developing a simple project using the
sample programs counter.c and timer.c. This is an implementation of the
PIC24FJ128GA010 device using the Explorer 16 Demo Board (DM240001). The
program counter.c is a simple counting program. The incremental count, delayed by
using Timer 1 (timer.c), is displayed via Port A on the demo board’s LEDs.
Topics covered in this chapter:
• Setting Up The Environment
• Creating the Application Code
• Running the Project Wizard
• Viewing the Project
• Creating a Hex File
• Viewing Debug Options
• Setting Up the Demo Board
• Loading Program Code For Debugging
• Running Debug Code
• Debugging Code Using Breakpoints
• Debugging Code Using A Runtime Watch
• Debugging Code Using Native Trace
• Programming the Application
• Other Trace Methods – SPI or I/O Port Trace
• Other Trace Methods – PIC32 Instruction Trace
4.2 SETTING UP THE ENVIRONMENT
Before beginning this tutorial, follow the steps in Chapter 3. “Installation” to set up the
MPLAB IDE software and MPLAB REAL ICE system hardware. Double-click on the
MPLAB IDE icon to launch the application. Once launched, the MPLAB IDE desktop
should appear.