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 Digit al Millennium Copyright Act. If suc h a cts
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 the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications. No
representation or warranty is given and no liability is assumed by
Microchip T echnology Incorporated with respect to the accuracy
or use of such information, or infringement of patents or other
intellectual property rights arising from such use or otherwise.
Use of Microchip’s products as critical components in life
support systems is not authorized except with express written
approval by Microchip. No licenses are conveyed, implicitly or
otherwise, under any intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, K
EELOQ,
MPLAB, PIC, PICmicro, PICSTART, PRO MATE and
PowerSmart are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, microID, MXDEV , MXLAB, PICMASTE R, SEEVAL
and The Embedded Control Solutions Company are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
Accuron, Application Maestro, dsPIC, dsPICDEM,
dsPICDEM.net, ECONOMONITOR, FanSense, FlexROM,
fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC,
microPort, Migratable Memory, MPASM, MPLIB, MPLINK,
MPSIM, PICC, PICkit, PICDEM, PICDEM.net, Powe rCal,
PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC, Select Mode,
SmartSensor, SmartShunt, SmartT el and Total Endurance are
trademarks of Microchip Technology Incorporated in the U.S.A.
and other countries.
Serialized Quick Turn Programming (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 QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999
and Mountain View, California in March 2002.
The Company’s quality system processes and
procedures are QS-9000 compliant for its
PICmicro
devices, Serial EEPROMs, microperipherals,
non-volatile memory and analog products. In
addition, Microchip’s quality system for the
design and manufacture of development
systems is ISO 9001 certified.
®
8-bit MCUs, KEELOQ
®
code hoppin g
DS51337A - page ii 2003 Microchip Technology Inc.
Worldwide Sal e s a nd Se rvice...... .. ... ........................................... .. ... .......24
DS51337A-page iv 2003 Microchip Technology Inc.
1.1WELCOME
Thank you for purchasing the PICDEM 4 demonstration board from Microchip
Technology Incorporated. The PICDEM 4 demonstrates the capabilities of the 8-, 14-,
and 18-pin PIC16XXXX and PIC18XXXX devices.
The PICDEM 4 can be used stand-alone with a programmed part, with an In-Circuit
Emulator (e.g., MPLAB
Sample programs are provided to demonstrate the unique features of the supported
devices.
The PICDEM 4 Kit comes with the following:
1. PICDEM 4 Demonstration Board (Figure 1-1)
2. Sample Devices
3. CD-ROM, which contains:
If you are missing any part of the kit, please contact your nearest Microchip sales office
listed in the back of this publication for help.
PICDEM 4 User’s Guide
Chapter 1. Introduction
®
ICE), or with an In-Circuit Debugger (e.g., MPLAB ICD 2).
a) Sample Programs
b) PICDEM 4 Demonstration Board User’s Guide
c) Application Notes
2003 Microchip Technology Inc.DS51337A-page 1
PICDEM 4 User’s Guide
1.2PICDEM 4 DEMONSTRATION BOARD
The PICDEM 4 demonstration board has the following hardware features:
1. 8-, 14- and 18-pin DIP sockets. (Although 3 sockets are provided, only one
device may be used at a time.)
2. On-board +5V regulator for direct input from 9V, 100 mA AC/DC wall adapter or
9V battery, or hooks for a +5V , 100 mA regulated DC supply.
3. RS-232 connection and associated hardware for direct connection to RS-232
interface.
4. In-Circuit Debugger (ICD) connector.
5. Four 5 k
6. Three push button switches for external stimulus and RESET.
7. Green power-on indicator LED.
8. Eight red LEDs connected to PORTA and PORTB.
9. Jumpers J21 and J22 to disconnect LEDs from PORTA and PORTB.
10. Unpopulated holes provided for crystal connection.
11. 32.768 kHz crystal for Timer1 Real-Time Clock operation.
12. Jumper J14 to disconnect on-board RC oscillator (R20 and C15, approx. 2 MHz).
13. Unpopulated holes for EEPROM.
14. 2 x 16 LCD display.
15. Prototype area for user hardware.
16. PIC16LF72 I/O expander.
17. Supercapacitor circuitry.
18. Unpopulated holes for a LIN transceiver.
19. Unpopulated holes for a motor driver.
Ω pots for devices with analog inputs and comparators.
FIGURE 1-1:PICDEM 4 HARDWARE
2
18
3
4
19
1
6
13
7
17
16
5
14
8
9
10
12
11
15
DS51337A-page 2 2003 Microchip Technology Inc.
1.3SAMPLE DEVICES
Two FLASH devices are included. The device types may change, but will generally
include PIC16XXXX and PIC18XXXX 18-pin DIP devices.
1.4SAMPLE PROGRAMS
The PICDEM 4 Kit includes a CD-ROM with sample demonstration programs. These
programs may be used with the included sample devices, with an In-Circuit Emulator
(ICE), or with an In-Circuit Debugger (ICD). For each type of device (PIC16XXXX or
PIC18XXXX), demo source code (several ASM files) and compiled code (one HEX file)
are provided.
1.5PICDEM 4 USER’S GUIDE
This document describes the PICDEM 4 demonstration board, tutorial and demonstration software. Detailed information on individual microcontrollers may be found in the
device’s respective data sheet. Detailed information on In-Circuit Emulator (ICE) or
In-Circuit Debugger (ICD) systems may be found in the respective tool’s user’s guide.
Chapter 1: Introduction – This chapter introduces the PICDEM 4 and provides a brief
description of the hardware.
Chapter 2: Getting Started – This chapter goes through a basic step-by-step process
for getting your PICDEM 4 up and running as a stand-alone board, or with an ICE or
ICD.
Chapter 3: Tutorial – This chapter provides a detailed description of the tutorial
program.
Appendix A: Hardware Detail – This appendix describes in detail the hardware of the
PICDEM 4 board.
Introduction
1.6REFERENCE DOCUMENTS
Reference Documents may be obtained by contacting your nearest Microchip sales
office (listed in the back of this document), or by download from the Microchip web site
(www.microchip.com).
• Technical Library CD-ROM (DS00161) or individual data sheets:
- PIC16F627A/628A/648A Data Sheet (DS40044)
- PIC18F1220/1320 Data Sheet (DS39605)
- PICmicro
- PICmicro
• MPLAB
• MPASM User’s Guide with MPLINK and MPLIB (DS33014)
The PICDEM 4 may be used as a stand-alone board with a preprogrammed device,
with an In-Circuit Emulator (ICE), or with an In-Circuit Debugger (ICD). For a list of
PICmicro microcontroller compatible ICEs or ICDs, please refer to the Development Systems Ordering Guide or the Microchip Third Party Guide.
2.1PICDEM 4 AS A STAND-ALONE BOARD – PREPROGRAMMED DEVICE
The PICDEM 4 may be demonstrated immediately by following the steps listed below:
• Place the preprogrammed sample device in the appropriate socket on the
PICDEM 4 board.
• Apply power to the PICDEM 4. For information on acceptable power sources,
see Appendix A.
Note:In the event that the preprogrammed PICDEM 4 demonstration board does
not operate, check the following conditions:
- J8/J10 must be connected for the appropriate device
- J3, J4, J7, J9, and J24 - J27 must be ON
- J23 and J28 must be OFF
The status of all other jumpers will not affect the preprogrammed
demonstration.
To reprogram the sample device, the following will be necessary:
1. Program source code.
User source code may be used to program the device or, if this has previously been
done, the sample program may be restored from the file on the included CD-ROM.
2. An assembler, such as MPASM
compiler, such as MPLAB C18 (PIC18XXXX devices only).
Source code must be assembled or compiled into a HEX file before it can be programmed into the device. Microchip Technology’s MPASM assembler or MPLAB
C18 C compiler may be used. Both are compatible with MPLAB IDE; however,
other assemblers/compilers may be used. For a list of these PICmicro MCU
compatible language tools, please refer to the Microchip Third Party Guide.
3. A device programmer, such as PRO MATE II, PICSTAR T Plus, or MPLAB ICD 2
(programmer functionality available with MPLAB IDE v6.00 or greater).
Once the sample program is in HEX file format, a programmer may be used to program a FLASH device. Microchip T echnology’s PRO MATE II device programmer,
PICSTART Plus development programmer, or MPLAB ICD 2 may be used. All are
compatible with MPLAB IDE. However, other programmers may be used. For a list
of these PICmicro MCU compatible programmers, please refer to the Microchip
Third Party Guid e.
If the code protection bit(s) have not been programmed, the on-chip program
memory can be read out for verification purposes.
TM
assembler (available with MPLAB IDE), or a
2003 Microchip Technology Inc.DS51337A-page 5
Loading...
+ 19 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.