Datasheet

PICkit™ 3 DEBUG EXPRESS
© 2009 Microchip Technology Inc. DS41370C-page 11
Chapter 3. PICkit™ 3 Debug Express Lessons
Connect the PICkit™ 3 Programmer/Debugger to a PC USB port, and connect the
demo board to the PICkit via header P1, labeled ICSP™.
3.1 LESSON 1: HELLO LED
This first lesson shows how to create a MPLAB C compiler project in the MPLAB
®
IDE
and turn on a demo board LED using the PIC18F45K20.
3.1.1 Creating the Lesson 1 Project in the MPLAB
®
IDE
Begin by opening the MPLAB IDE from the desktop shortcut icon:
To create project, use the MPLAB IDE Project Wizard by selecting the menu Project >
Project Wizard. The Project Wizard “Welcome!” dialog is shown. Click Next to
continue.
3.1.1.1 STEP ONE: SELECT A DEVICE
In the Project Wizard dialog, select PIC18F45K20 as the target device in the dropdown
box, as shown in Figure 3-1, and click Next to continue.
Key Concepts
- Use the MPLAB IDE Project Wizard to create a new project for a microcon-
troller.
- The TRISx Special Function Registers (SFRs) are used to set microcon-
troller port I/O pin directions as inputs or outputs.
- The LATx SFRs are used to set microcontroller port output pins to a high or
low state.