User manual

MPLAB
®
PM3 User’s Guide
DS51464C-page 36 © 2006 Microchip Technology Inc.
3.13 PROGRAMMING THE DEVICE
Now that you have your data in program memory, you can program the device. Make
sure your PIC18F452 device is inserted in the appropriate socket on MPLAB PM3.
Then, select Programmer>Program
. The MPLAB IDE window will indicate the progress
and, when finished, the Output window will display the results (see Figure 3-17).
FIGURE 3-17: PROGRAMMING RESULTS
3.14 VERIFYING THE PROGRAMMING
Select Programmer>Verify to double-check the programming in the device. If any
address locations on the device do not match program memory, an error log will display
the discrepancies. If the bad data in the error log is 0000, try reseating the socket
module.
3.15 TUTORIAL SUMMARY
By completing this tutorial, you have performed the major steps for creating, building
and programming a simple project. Tasks completed include:
Selecting the device – the PIC18F452.
Using the Project Wizard to create a project, and using the wizard to:
select MPLAB IDE built in MPASM assembler and MPLINK linker language tools,
add files for the project: a template file for the device selected, and a linker script
to build it properly.
Writing some simple code to send a changing value out an I/O port.
Building the project.
And finally, programming the PIC18F452 device.
These are the essential steps for programming a device with MPLAB IDE and
MPLAB PM3.