Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
PICSTART, PRO MA TE, rfPIC and SmartShunt are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, In-Circuit Serial
Programmin g , IC SP, ICEPIC, Mindi, MiW i , MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerT ool, REAL ICE, rfLAB, Select Mode, Total
Endurance, UNI/O, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the p age number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
PICDEM™ PIC18 Explorer Demonstration Board. Items discussed in this chapter
include:
• Document Layout
• Conventions Used in This Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the PICDEM PIC18 Explorer Demonstration
Board as a development tool to emulate and debug firmware on a target board. The
manual layout is as follows:
• Chapter 1. “Introduction” – Overview of the development board and kit
• Chapter 2. “Getting Started” – Description of the different ways to use the board
• Chapter 3. “PICDEM™ PIC18 Explorer Demonstration Board Tutorial Program”
– Explanation of t he tu to ri al prep r ogra mme d o n the sa mpl e d evice s
• Appendix A. “Hardware Details” – Description of the board’s hardware
elements, including layout and schematic drawings
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This user’s guide describes how to use the PICDEM PIC18 Explorer Demonstration
Board. Other useful documents are listed below.
• On the board kit’s CD-ROM:
- Readme file
- Other reference documents
• Other documents, available at http://microchip.com
- “Microchip Development Systems Ordering Guide” (DS 30 177 )
®
ICD 2 In-Circuit Debugger User’s Guide” (DS51331)
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at http://microchip.com. This web
site is used as a means to make files and information easily available to customers.
The web site contains the following information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
PICDEM™ PIC18 Explorer Demonstration Board User’s Guide
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at http://microchip.com
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB C18 and MPLAB C30 C compilers; MPASM™
and MPLAB ASM30 assemblers; MPLINK™ and MPLAB LINK30 object linkers;
and MPLIB™ and MPLAB LIB30 object librarians.
• Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB ICE 2000 and MPLAB ICE 4000.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 2.
• MPLAB
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE project manager
and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 and PRO MATE
Plus and PICkit™ 1 development programmers.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
II device programmers and the PICSTART®
, click on Custome r
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
The PICDEM™ PIC18 Explorer Demonstration Board is the latest demonstration board
for evaluating Microchip Technology’s PIC18FXXXX and PIC18FXXJXX families of
devices.
The board can be used as a stand-alone device or with an in-circuit debugger, such as
the MPLAB
Sample programs are provided to demonstrate the unique features of the supported
devices. Free software development tools are available for application development
and debugging.
1.2DEVELOPMENT KI T CON TEN TS
The PICDEM PIC18 Explorer Demonstration Board Kit comes with the following:
• PICDEM™ PIC18 Explorer Demonstration Board (Figure 1-1)
• Board-mounted PIC18F8722 and an alternate PIC18F87J11 mounted on a
Plug-In Module (PIM)
• CD-ROM that contains:
- Sample programs, source code and Hex files
- “PICDEM™ PIC18 Explorer Demonstration Board User’s Guide”
- Other referenced documents
If you are missing any part of the kit, contact your nearest Microchip sales office listed
in the back of this publication.
The MPLAB
software tool set for application development and debugging. Compilers and other
board-compatible software and hardware tools can be purchased.
To download the MPLAB IDE software and documentation, or get information on the
other tools, visit http://microchip.com
®
ICD 2, and host PC.
®
Integrated Development Environment (IDE) is a free, integrated
PICDEM™ PIC18 Explorer Demonstration Board User’s Guide
1.3PICDEM™ PIC18 EXPLORER DEMONSTRATION BOARD
The PICDEM PIC18 Explorer Demonstration Board has the following hardware
features with each feature’s number corresponding to the number in Figure 1-1 that
shows the feature’s location on the board:
1. PIC18F8722 microcontroller – The sample, primary microcontroller mounted on
the board.
2. Male header pins for connecting Plug-In Modules (PIMs). A PIM enables an
alternate PIC18 device to be connected to the board, as the primary
microcontroller.
3. In-Circuit Debugger (ICD) connector.
4. Six-pin, PICkit™ 2 connector.
5. 10 kΩ potentiometer for analog inputs.
6. Push button switch – For external Reset.
7. USB connector – For RS-232 communication.
8. PIC18LF2450 microcontroller – For converting RS-232 communication to USB
protocol for attachment of a host PC.
9. 12 MHz crystal – For the PIC18LF2450 microcontroller.
10. RS-232 DB9 socket and associated hardware – For direct connection to an
RS-232 int erface.
11. Jumper J13 for routing RS-232 communication through either the USB port or
the RS-232 socket.
12. Jumper J4 – For selecting between programming the main PIC
PIC18LF2450, used for USB to RS-232 communication.
13. Switch S4 – For designating the main microcontroller as either the
board-mounted PIC18F8722 or a PIM-mounted microcontroller.
14. LED – For power-on indication.
15. JP1 – For disconnecting the eight display LEDs.
16. Eight LEDs.
17. 32.768 kHz crystal – For Timer1 clock operation.
18. Two push button switches – For external stimulus.
19. Analog temperature sensor, MPC9701A.
20. 25LC256 SPI EEPROM.
21. JP2 – To enable/disable EEPROM.
22. JP3 – To enable/disable LCD.
23. 10 MHz crystal – For the main microcontroller.
24. PICtail™ daughter board connector socket.
25. SPI I/O expander – For LCD display, MCP23S17.
26. Prototype area – For user hardware.
27. LCD display.
28. J2 three-pin, male header – For selecting between a voltage of 3.3V or 5V.
29. J14 four-pin, male header – For use with a PIM, if required, to connect 3.3V or
5V, V
FIGURE 1-1:PICDEM™ PIC18 EXPLORER DEMONSTRATION BOARD
29
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
18
19
20
21
22
23
24
25
26
27
28
Introduction
1.4SAMPLE DEVICES
The PICDEM PIC18 Explorer Demonstration Board comes with two sample devices
that alternately can be used as the main microcontroller:
• An 18-pin, 5V PIC microcontroller (the PIC18F8722) mounted on the board
• A 3.3V PIC18 device (PIC18F87J11) mounted on an 80-pin PIM that connects to
the demo board via an 80-pin male
1.5SAMPLE PROGRAMS
The PICDEM PIC18 Explorer Demonstration Board Kit includes a CD-ROM with
sample demonstration programs. These programs may be used with the included
sample devices and with an In-Circuit Debugger (ICD).
Also provided on the disc is demonstration source code that includes several assembly
source code (ASM) files and one Hex compiled code file.