PICkit™ 3 STARTER KIT USER’S GUIDE
2012 Microchip Technology Inc. DS41628B-page 39
Chapter 3. Lessons
All of the following 13 lessons will include important code snippets, as well as new reg-
isters and instructions for each PIC MCU. Each lesson introduces either a new periph-
eral or feature. There may be slight differences between the PIC16 and PIC18 in each
lesson, but the differences are pointed out and explained. The enhanced PIC16 is
explained first, followed by the PIC18. There are sometimes minimal differences
between the two and, when none exist, a statement of “none” will appear in the PIC18
section(s).
Subsequent lessons inherit these differences, however they are explained only in their
first appearance. This is why it will be vital that the lessons are done in sequence.
These differences are mostly in the assembly, not in the ‘C’ programs due to the nature
of the language. It is strongly recommended that the assembly be done alongside the
‘C’ version for each lesson.
The lessons follow this folder structure:
For example:
A single source file is shared between both projects, meaning that any changes to the
file while using MPLAB
®
X will be reflected in the MPLAB
®
8 project as well. It is encour-
aged that the new IDE, MPLAB
X, be used. Only the source file should be edited and
nothing else in the project folders.
Please see the getting started videos that are linked to on the Start Page inside of the
MPLAB X IDE. Refer to the MPLAB
®
IDE Quick Start Guide (DS51281)
(http://ww1.microchip.com/downloads/en/DeviceDoc/51281d.pdf
) as a getting started
guide for MPLAB 8.XX.
1. <architecture>
a. <language>
i. <lesson>
1. <lesson>.X (MPLABX project)
2. Mplab8 (MPLAB 8.x project)
3. <lesson> . <language> (source file)
2. PIC16
a. Assy
i. 01 Hello World
1. Hello_world.X (MPLABX project)
2. Mplab8 (MPLAB 8.x project)
3. Hello_world.asm
b. C
i. 01 Hello World
1. Hello_world.X (MPLABX project)
2. Mplab8 (MPLAB 8.x project)
3. Hello_world.c