Microchip Technology MPLAB Starter Kit for PIC18F MCU DM180021 DM180021 User Manual
Product codes
DM180021
Developing an Application
© 2009 Microchip Technology Inc.
DS51852A-page 21
3.4
PROGRAMMING THE DEBUGGED APPLICATION
When the program is successfully debugged and running, the next step is to program
the device for stand-alone operation in the finished design. When doing this, the
resources reserved for debug are released for use by the application. To program the
application, use the following steps:
the device for stand-alone operation in the finished design. When doing this, the
resources reserved for debug are released for use by the application. To program the
application, use the following steps:
1.
Disable the starter kit as a debug tool by selecting Debugger>Select Tool>None.
2.
Select the starter kit as the programmer in the Programmer>Select Programmer
menu.
menu.
3.
Select Programmer>Program.
Now, the starter kit will run independently.
3.5
CREATING OTHER APPLICATIONS
This starter kit is just one way to use Microchip PIC18 microcontrollers in an
application. Other tools and resources exist to support these devices:
application. Other tools and resources exist to support these devices:
• PIC18 Demo Boards, such as the Low Pin Count USB Development Kit, PICDEM
FS USB, PIC18F87J50 FS USB Demonstration Plug-In Module, PIC18F46J50 FS
USB Demonstration Plug-In Module
USB Demonstration Plug-In Module
• MPLAB C Compiler for PIC18 MCUs, Full Version: More optimization options than
the student version for full-scale development.
• Application Notes: Libraries and example applications with source code for using
the PIC18 family of microcontrollers.
For more information on demo boards on application notes, see the design center at
the Microchip web site (www.microchip.com). For additional information on the full ver-
sion of the MPLAB C Compiler for PIC18 MCUs, go to http://www.microchip.com/c18.
For additional information on Microchip USB software and tools, go to
http://www.microchip.com/usb.
the Microchip web site (www.microchip.com). For additional information on the full ver-
sion of the MPLAB C Compiler for PIC18 MCUs, go to http://www.microchip.com/c18.
For additional information on Microchip USB software and tools, go to
http://www.microchip.com/usb.
3.6
DETERMINING DEVICE SUPPORT
Due to the built-in in-circuit debugging capability of ICD devices and the In-Circuit Serial
Programming™ (ICSP™) function offered by the debugger, the starter kit uses some
on-chip resources when debugging. It also uses program memory and file register loca-
tions in the target device during debugging. These locations are not available for use
by user code. In the MPLAB IDE; registers marked with an “R” in the register displays
represent reserved registers.
Programming™ (ICSP™) function offered by the debugger, the starter kit uses some
on-chip resources when debugging. It also uses program memory and file register loca-
tions in the target device during debugging. These locations are not available for use
by user code. In the MPLAB IDE; registers marked with an “R” in the register displays
represent reserved registers.
3.7
RESERVED RESOURCES
For information on device resources that are needed for in-circuit debugging, please
refer to the MPLAB ICD 2 Help, found in the MPLAB IDE under Help>Topics. The
device reserved resource information found under “Resources Used By MPLAB ICD 2”
is the same for the starter kit.
refer to the MPLAB ICD 2 Help, found in the MPLAB IDE under Help>Topics. The
device reserved resource information found under “Resources Used By MPLAB ICD 2”
is the same for the starter kit.
3.8
DEBUG VERSION INFORMATION
Selecting either Debugger>Settings or Programmer Settings from the menu bar opens
the Starter Kit Settings dialog. Currently, there is only one (Info) tab on this dialog,
displaying the following information:
the Starter Kit Settings dialog. Currently, there is only one (Info) tab on this dialog,
displaying the following information:
• Firmware Version: The version of firmware on the starter kit board.
• Debug Exec Version: The version of the debug executive that is loaded into the
PIC18 device program memory to enable debug operation.