Microchip Technology PICDEM™ Lab II Development Board User’s Guide

PICDEM™ Lab II
Development Board
User’s Guide
2015 Microchip Technology Inc. DS40001814A
Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
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 the like is provided only for your convenience and may be superseded by updates. It is your 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 support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated.

Trademarks

The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, K LANCheck, MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
The Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, 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.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their respective companies.
© 2015, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
ISBN: 978-1-63277-686-0
EELOQ, KEELOQ logo, Kleer,
32
logo, RightTouch, SpyNIC,
QUALITY MANAGEMENT S
DS40001814A-page 2 2015 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
PICDEM™ LAB II DEVELOPMENT
BOARD USER’S GUIDE

Table of Contents

Preface ........................................................................................................................... 5
Chapter 1. Introduction to PICDEM™ Lab II
1.1 PICDEM Lab II Development Board Kit Contents .......................................... 9
1.2 PICDEM Lab II Development Board Layout ................................................. 10
1.3 Power Sources ............................................................................................. 11
1.3.1 USB Connector (J18) ................................................................................ 11
1.3.2 9V External Power Supply (J1) ................................................................. 11
1.3.3 External Supply Connection Points ........................................................... 11
1.4 Connecting the PICkit™ Programmer/Debugger ......................................... 11
1.5 Connecting the USB I
1.6 Installing MikroElektronika Click™ Boards ................................................... 12
1.7 Installing Expansion Boards and an LCD Module ........................................ 13
Chapter 2. Getting Started
2.1 Connecting Power to the PICDEM Lab II ..................................................... 15
2.1.1 USB Connector (J18) ................................................................................ 15
2.1.2 9V External Power Supply (J1) ................................................................. 15
2.1.3 External Supply Connection Points ........................................................... 15
2.2 Connecting a Programmer/In-Circuit Debugger ........................................... 16
2.3 Loading Drivers and Terminal Programs for the USB-ASYNC/I
2.4 Loading MPLAB X IDE and the XC Compiler ............................................... 20
2.5 Loading MCC into MPLAB X ........................................................................ 22
2
C/ASYNC Communications ..................................... 12
2
C Interface 16
Chapter 3. Where to Find the Lab Documentation
3.1 Out-of-the-Box Labs ..................................................................................... 23
3.2 Additional Labs ............................................................................................. 24
3.3 Obtaining Lab Components .......................................................................... 24
Chapter 4. Troubleshooting
4.1 The board will not power-up ......................................................................... 25
4.2 The microcontroller will not program/debug ................................................. 25
4.3 Serial/I
2
C communications do not work ....................................................... 26
Appendix A. Schematics
Worldwide Sales and Service .................................................................................... 29
2015 Microchip Technology Inc. DS40001814A-page 3
PICDEM™ Lab II Development Board User’s Guide
NOTES:
DS40001814A-page 4 2015 Microchip Technology Inc.
PICDEM™ LAB II DEVELOPMENT
BOARD USER’S GUIDE

Preface

NOTICE TO CUSTOMERS
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 page number. The numbering convention for the DS number is “DSXXXXXXXXA”, where “XXXXXXXX” 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 online help files.

INTRODUCTION

®
IDE online help.
This chapter contains general information that will be useful to know before using the PICDEM™ Lab II Development Board. Items discussed in this chapter include:
Document Layout
Conventions Used in this Guide
Recommended Reading
The Microchip Web Site
Development Systems Customer Change Notification Service
Customer Support
Revision History

DOCUMENT LAYOUT

This document describes how to use the PICDEM Lab II Development Board as a development tool to emulate and debug firmware on a target board, as well as how to program devices. The document is organized as follows:
Chapter 1. “Introduction to PICDEM™ Lab II” – This chapter contains general
information regarding the PICDEM Lab II Development Board kit contents, layout and power source.
Chapter 2. “Getting Started” – This chapter offers information on how to
program microcontrollers loaded onto the PICDEM Lab II Development Board, general information on the prototyping area, and how to load the MCP2221
2
I
C/SMBus Terminal program.
Chapter 3. “Where to Find the Lab Documentation” – Consult this chapter for
troubleshooting information.
Appendix A. “Schematics” – This appendix lists the PICDEM Lab II
Development Board schematic.
2015 Microchip Technology Inc. DS40001814A-page 5
PICDEM™ Lab II Development Board User’s Guide

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog A menu selection select Enable Programmer
Quotes A field name in a window or
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the total number of digits, R is the radix and n is a digit.
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
Choice of mutually exclusive arguments; an OR selection
Represents code supplied by user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...] void main (void)
{ ... }
®
IDE User’s Guide

RECOMMENDED READING

This user's guide describes how to use the PICDEM Lab II Development Board. For the latest information on using other tools, refer to the MPLAB
www.microchip.com/mplabx/. This resource page contains updated documentation,
downloads and links to other MPLAB X compatible tools, plug-ins and much more.
DS40001814A-page 6 2015 Microchip Technology Inc.
®
X IDE home page:

THE MICROCHIP WEB SITE

Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, 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. PICDEM Lab II Development Board specific product support can be accessed via the product web-page at
www.microchip.com/PICDEMLABII.
General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program member listing.
Additional Labs – Additional lab materials for the PICDEM Lab II Development
Board are available via the PICDEM Lab II Development Board landing page. These lab materials cover additional hardware applications and labs relating to new and existing products.
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
Preface

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 www.microchip.com, click on Customer Change Notification and follow the registration instructions.
The Development Systems product group categories are:
Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB assemblers (including MPASM™ assembler); all MPLAB linkers (including MPLINK™ object linker); and all MPLAB librarians (including MPLIB™ object librarian).
Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit™ 3 debug express.
MPLAB
Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and MPLAB SIM simulator, as well as general editing and debugging features.
Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction development programmers such as PICSTART PICkit 2 and 3.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
Plus and
2015 Microchip Technology Inc. DS40001814A-page 7
PICDEM™ Lab II Development Board User’s Guide

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://www.microchip.com/support.

REVISION HISTORY

Revision A (August 2015)
Initial release of this document.
DS40001814A-page 8 2015 Microchip Technology Inc.
PICDEM™ LAB II DEVELOPMENT
BOARD USER’S GUIDE

Chapter 1. Introduction to PICDEM™ Lab II

The PICDEM Lab II Development Board supports Microchip's 6-, 8-, 14-, 18-, 20-, 28-, and 40-pin 8-bit PIC microcontroller sockets offer flexibility of connectivity to all pins on the PIC MCUs. This board provides flexibility for experimentation through a large solderless development block, a USB-Serial/I features a USB mini-B connector, two mikroBUS™ footprints to accommodate a variety of plug-in Click™ board sensors, and individual ICSP™/ICD connectors for each microcontroller.
®
MCUs. Dual-row expansion headers on either side of each
2
C interface and external board connectors. Additionally, it

1.1 PICDEM LAB II DEVELOPMENT BOARD KIT CONTENTS

The PICDEM Lab II Development Board kit contains the following (Figure 1-1):
• PICDEM Lab II Development Board
• Out-of-Box Lab Component Kit
• Quick Start Guide

FIGURE 1-1: PICDEM™ LAB II DEVELOPMENT BOARD KIT

2015 Microchip Technology Inc. DS40001814A-page 9
Loading...
+ 20 hidden pages