Microchip Technology Explorer 8 Development Board User guide

Explorer 8 Development Board
User’s Guide
2015 Microchip Technology Inc. DS40001812A
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-689-1
EELOQ, KEELOQ logo, Kleer,
32
logo, RightTouch, SpyNIC,
QUALITY MANAGEMENT S
DS40001812A-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
EXPLORER 8 DEVELOPMENT BOARD
USER’S GUIDE

Table of Contents

Preface ...........................................................................................................................5
Chapter 1. Overview
1.1 Introduction ................................................................................................... 11
1.2 Development Kit Contents ............................................................................ 11
1.3 Explorer 8 Development Board .................................................................... 12
1.4 On-Board Jumper Configurations ................................................................. 13
1.5 Sample Devices ........................................................................................... 17
1.6 Sample Programs ......................................................................................... 17
Chapter 2. Getting Started
2.1 Explorer 8 with Pre-Programmed Device ..................................................... 19
2.2 Board with PIM Attached Devices ................................................................ 21
2.3 Programming the Microcontrollers ............................................................... 21
2.3.1 Programming Requirements ...................................................................... 21
2.3.2 Opening the Program in MPLAB
2.3.3 Programming the Microcontroller .............................................................. 23
2.4 Connecting to Host PC for USB Communication ......................................... 24
2.4.1 USB-to-UART Interface ............................................................................. 25
2.4.2 USB-to-I2C Interface ................................................................................. 25
2.5 Powering the Board ...................................................................................... 26
2.5.1 External 9V Power Supply ......................................................................... 26
2.5.2 USB Power ................................................................................................ 26
2.6 Selecting Vdd Values ................................................................................... 27
2.6.1 Varying the Device Voltage ....................................................................... 27
2.6.2 Calculating other Vdd Values .................................................................... 27
®
X IDE ................................................... 22
Chapter 3. Tutorial Program
3.1 Tutorial Program Operation .......................................................................... 29
3.2 Source Code and Data Sheets ..................................................................... 31
Appendix A. Hardware Details
A.1 Hardware Elements ..................................................................................... 33
A.1.1 Processor Sockets .................................................................................... 33
A.1.2 Display ...................................................................................................... 33
A.1.3 Power Supply ............................................................................................ 33
A.1.4 Micro USB Port ......................................................................................... 34
A.1.5 Switches .................................................................................................... 34
A.1.6 Oscillator Options ...................................................................................... 34
A.1.7 Analog Input (Potentiometer) .................................................................... 34
A.1.8 ICD Connector .......................................................................................... 34
A.1.9 PICkit A.1.10 PICtail A.1.11 mikroBUS
2015 Microchip Technology Inc. DS40001812A-page 3
Connector .................................................................................... 34
and PICtail Plus Expansion Connectors ................................... 35
Connectors .......................................................................... 35
Explorer 8 Development Board User’s Guide
A.1.12 Pmod™ Connectors .................................................................................35
A.1.13 Configurable In-line Connector ................................................................35
A.1.14 LCD .........................................................................................................35
A.1.15 Sample Devices .......................................................................................36
A.2 Board Layout and Schematics ..................................................................... 37
Worldwide Sales and Service .....................................................................................41
DS40001812A-page 4 2015 Microchip Technology Inc.
EXPLORER 8 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 p age 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 Explorer 8 Development 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 Explorer 8 Development Board as a tool to emulate and debug firmware on a target board. The document is organized as follows:
• Chapter 1. Overview
Chapter 2. Getting Started
• Chapter 3. Tutorial Program
Appendix A. Hardware Details
2015 Microchip Technology Inc. DS40001812A-page 5
Explorer 8 Development Board User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENT 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
DS40001812A-page 6 2015 Microchip Technology Inc.
WARRANTY REGISTRATION
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 Explorer 8 Development Board. The following documents are available and recommended as supplemental reference resources.
Explorer 8 Development Board Layout and Schematic Quick Start Guide (DS40001805)
This quick start guide provides a brief overview on the Explorer 8 Development Board’s functionalities, features and capabilities.
MPLAB
This document provides all the necessary information on the MPLAB ICD 3 In-Circuit Debugger’s operation, installation, general setup and tutorial details. The MPLAB ICD 3 is a cost-effective, high-speed hardware debugger/programmer developed by Microchip for PIC
MPLAB (DS50002085)
This user’s guide describes how to use the MPLAB REAL ICE In-Circuit Emulator as a development tool to emulate and debug firmware on a target board, as well as how to program devices. It provides details on the emulator’s operation, features, troubleshooting, software, hardware reference and emulator accessories.
PICkit™ 3 In-Circuit Debugger/Programmer User’s Guide for MPLAB (DS52116)
This user’s guide describes the PICkit 3 In-Circuit Debugger/Programmer’s operation, usage, troubleshooting methods and hardware specifications. The PICkit 3 can be implemented as a debugger or development programmer for Microchip PIC MCUs and DSCs that are based on In-Circuit Serial Programming™ (ICSP™) and Enhanced ICSP 2-wire serial interfaces.
®
ICD 3 In-Circuit Debugger User’s Guide (DS51766)
®
REAL ICE™ In-Circuit Emulator User’s Guide for MPLAB X IDE
®
microcontrollers and Digital Signal Controllers (DSCs).
Preface
®
X IDE
2015 Microchip Technology Inc. DS40001812A-page 7
Explorer 8 Development Board User’s Guide
THE MICROCHI P 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.
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.
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 the MPLAB XC Compilers that support all 8-, 16- and 32-bit PIC MCUs and dsPIC
Emulators – The latest information on Microchip in-circuit emulators. This
includes the MPLAB REAL ICE In-Circuit Emulator.
In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes the MPLAB ICD 3 In-Circuit Debugger and the PICkit 3 In-Circuit Debugger.
MPLAB
Integrated Development Environment for development systems tools which can be run on Windows
Programmers – The latest information on Microchip programmers. These include
the device (production) programmers MPLAB REAL ICE in-circuit emulator and MPLAB ICD 3 in-circuit debugger, and the development (non-production) programmer PICkit 3.
®
X IDE – The latest information on Microchip MPLAB X IDE, the
®
, Mac OS® and LINUX® operating systems.
®
DSCs.
DS40001812A-page 8 2015 Microchip Technology Inc.
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.
Technical support is available through the web site at:
http://www.microchip.com/support.
DOCUMENT REVISION HISTORY
Revision A (August, 2015)
Initial release of the document.
Preface
2015 Microchip Technology Inc. DS40001812A-page 9
Explorer 8 Development Board User’s Guide
NOTES:
DS40001812A-page 10 2015 Microchip Technology Inc.

1.1 INTRODUCTION

EXPLORER 8 DEVELOPMENT BOARD
USER’S GUIDE

Chapter 1. Overview

The Explorer 8 Development Board is one of the latest development boards for evaluating and demonstrating the capabilities and features of Microchip’s 8-bit PIC MCUs. This board supports 8/14/20/28/40-pin DIP and 44/64/80-pin PIM-mounted PIC MCUs.
This board is fully populated with two fixed and one variable power supply, a 16x2 Character LCD module, a pair of mikroBUS™ Click™ board headers to accommodate a variety of plug-in modules, a pair of Digilent Pmod™ connectors, an in-line completely configurable connector, PICtail™ connectors and a USB-to-serial/I converter. The Explorer 8 is fully compatible with the MPLAB MPLAB X v3.00 or later.

1.2 DEVELOPMENT KI T CON TEN TS

The Explorer 8 Development Board comes with the following:
• Explorer 8 Development Board (DM160228)
• Pre-programmed PIC16F1719
• Micro USB cable
If the kit is missing any of these parts, please contact the nearest Microchip sales office listed in the back of this publication.
The MPLAB X Integrated Development Environment (IDE) is a free, integrated software tool set for application development and debugging. Compilers and other board-compatible software and hardware tools can be purchased.
To download the MPLAB X IDE software and documentation, or get information on the other tools, visit www.microchip.com/devtools.
2
®
Code Configurator and
C
®
2015 Microchip Technology Inc. DS40001812A-page 11
Explorer 8 Development Board User’s Guide

1.3 EXPLORER 8 DEVELOPMENT BOARD

The Explorer 8 Development Board has the following hardware features. Each feature’s number corresponds to the number in Figure 1-1, showing the feature’s location on the board:
2
1. MCP2221 USB-to-UART/I
2. 16x2 Character LCD (LCD1)
3. MCP23S17 I/O Expander for LCD Interface (U4)
4. Eight blue LEDs (D1 to D8).
5. Male header pins for attaching Plug-in-Modules (U1A)
6. Socket for attaching 40-pin PIC MCUs (J8)
7. Socket for attaching 28-pin PIC MCUs (J13)
8. Socket for attaching 8/14/20-pin PIC MCUs (J10)
9. mikroBUS headers for attaching mikroBUS compatible boards (J32 and J35)
10. Two push button switches for external stimulus (S1 and S2)
11. PICtail Expansion Connectors for PICtail Daughter Boards (J3, J5, J11 and J28)
12. PICtail Plus Card Edge Modular Expansion Connectors for PICtail Plus Daughter Boards (J19)
13. Test Points for 5.0V (TP1 and TP7), 3.3V (TP6) and V_VAR (TP5). V_VAR is the variable voltage and is equal to the device V
14. 20-pin in-line expansion connector (J33)
15. 8 MHz crystal for device external oscillator (Y1)
16. Digilent Pmod compatible connectors (J17 and J20)
17. 10 k Potentiometer for analog inputs (R25)
18. Variable Power Indicator LED (D9)
19. 3.3V Power Indicator (LD2)
20. 5.0V Power Indicator (LD1)
21. 5.0V (U5), 3.3V (U1) and Variable (U2) power supplies
22. Barrel connector for 9V DC Supply (J1)
23. RJ11 connector for ICSP programming/debugging using REAL ICE and ICD 3 (J26)
24. 6-pin male header for ICSP programming/debugging using PICkit 3 (J12)
25. Push button switch on MCLR
26. Micro USB socket for USB communication and/or USB power (J18)
C serial converter (U3)
DD and its associated logic
for external Reset (S3)
DS40001812A-page 12 2015 Microchip Technology Inc.

FIGURE 1-1: EXPLORER 8 DEVELOPMENT BOARD

1
2
3
4
6
7
8
9
10
11
12
13
14
15
16
17 18
19
20
22
23
24
21
25
26
5
SDA SCL
RC3RB6
RC4RB4
SDASCL
Overview

1.4 ON-BOARD JUMPER CONFIGURATIONS

The Explorer 8 Development Board allows the user to connect or disconnect components from PIC associated jumpers. Table 1-1 and Figure 1-2 provide details and examples for these connections.
TABLE 1-1: ON-BOARD JUMPERS DESCRIPTION AND SAMPLE
Label Jumper/s Description Configuration
MCU Interface to MCP2221 USB-to-I2C/UART Converter
1 J22 Pulls up the configured I2C SCL pin
2 J57 Connects the microcontroller I
J58 Connects the microcontroller I
3 J23 Connects the microcontroller I
MCU pins or from other on-board components through
CONFIGURATION
(see J57) and SDA pin (see J58).
pin to the MCP2221 SCL pin (see Label 3). E.g. RC3 is configured as the microcontroller I
pin to the MCP2221 SDA pin (see Label 3). E.g. RC4 is configured as the microcontroller I
and SDA pins to the MCP2221 SCL and SDA pins, respectively.
2
C SCL pin.
2
C SDA pin.
(1)
2
C SCL
2
C SDA
2
C SCL
2015 Microchip Technology Inc. DS40001812A-page 13
Loading...
+ 28 hidden pages