Microchip Technology XLP User Manual

XLP 8-Bit Development Board
User’s Guide
2011 Microchip Technology Inc. DS41581A
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 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.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC, K
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
32
PIC
logo, rfPIC and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL 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, HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, 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.
© 2011, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-61341-170-4
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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS41581A-page 2 2011 Microchip Technology Inc.
XLP 8-BIT DEVELOPMENT BOARD

Table of Contents

Chapter 1. Introduction to the XLP 8-Bit Board
1.1 Introduction ................................................................................................... 11
1.2 Highlights ...................................................................................................... 11
1.3 What’s in the Box ......................................................................................... 12
1.4 Development Board Features ...................................................................... 12
1.5 Using the Development Board Out of the Box ............................................. 13
1.6 Demonstration Program ............................................................................... 13
Chapter 2. The XLP Demonstration Application
2.1 Initial Setup ................................................................................................... 15
2.2 Demonstration Program Operation .............................................................. 16
Chapter 3. XLP 8-Bit Development Board Hardware
3.1 Introduction ................................................................................................... 23
3.2 Hardware Features ....................................................................................... 23
3.3 Current Measurement .................................................................................. 27
USER’S GUIDE
Appendix 1. Development Board Schematics ..........................................................29
2011 Microchip Technology Inc. DS41581A-page 3
XLP 8-Bit Development Board User’s Guide
NOTES:
DS41581A-page 4 2011 Microchip Technology Inc.
XLP 8-BIT 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 “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 XLP 8-Bit 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 XLP 8-Bit Development Board as a develop­ment tool to emulate and debug firmware on a target board. The manual layout is as follows:
Chapter 1. Introduction to the XLP 8-Bit Board provides a brief overview of the
XLP 8-Bit Development Board, its features and its uses
Chapter 2. The XLP Demonstration Application describes the preprogrammed
demonstration program
Chapter 3. XLP 8-B it Deve lop ment Board Hardw ar e provides a more detailed
description of the XLP 8-bit board’s hardware features
Appendix 1. Development Board Schematics provides detailed schematics of
the XLP 8-Bit Development Board
2011 Microchip Technology Inc. DS41581A-page 5
XLP 8-Bit 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
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
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”
any valid filename
[options] errorlevel {0|1}
var_name...] void main (void)
{ ... }
®
IDE User’s Guide
DS41581A-page 6 2011 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 XLP 8-Bit Development Board. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
Readme for XLP 8-Bit Development Board
For the latest information on using the XLP 8-Bit Development Board, refer to the file, readme.pdf, in the “Documentation” subdirectory (inside the “XLP 8-Bit Development Board Demo” directory). This file contains update information and known issues that may not be included in this user’s guide.
PIC16(L)F1947 Family Data Sheet
Consult this document for detailed information on the PIC16LF device that is included with the development board. Reference information found in this data sheet includes:
• Device memory map
• Device pinout and packaging details
• Device electrical specifications
• List of peripherals included on the device
PIC18F87K22 Family Data Sheet
Consult this document for detailed information on the PIC18F device that is pre-installed in the development board. Reference information found in this data sheet includes:
• Device memory map
• Device pinout and packaging details
• Device electrical specifications
• List of peripherals included on the device
PIC16F and PIC18F Family Reference Manuals
This reference manual explains the operation of the PIC18F microcontroller family architecture and peripheral modules. The specifics of each device family are discussed in the individual family’s device data sheet.
This useful manual is online in sections at the Technical Documentation section of the Microchip web site. Refer to these sections for detailed information on PIC18F device operation.
The following documents are also available from Microchip to support the use of the XLP 8-Bit Development Board:
• “25AA256/25LC256 256K SPI Bus Serial EEPROM” Data Sheet (DS21822)
• “MCP9700/9700A/9701/9701A Low-Power Linear Active Thermistor™ ICs” Data Sheet (DS21942)
• “PICkit™ 2 Programmer/Debugger User’s Guide” (DS51553)
• “PICkit™ 3 Programmer/Debugger User’s Guide” (DS51795)
• “Compiled Tips ‘n Tricks Guide” (DS01146)
Preface
2011 Microchip Technology Inc. DS41581A-page 7
XLP 8-Bit 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 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 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 3 and PICkit™ 3.
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, such as the
MPLAB PM3 device programmer.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows
®
C18 and MPLAB C30 C compilers; MPASM™
, click on Customer
®
DS41581A-page 8 2011 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. 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
DOCUMENT REVISION HISTORY
Revision A (May 201 1)
• Initial release of this document.
Preface
2011 Microchip Technology Inc. DS41581A-page 9
XLP 8-Bit Development Board User’s Guide
NOTES:
DS41581A-page 10 2011 Microchip Technology Inc.

Chapter 1. Introduction to the XLP 8-Bit Board

1.1 INTRODUCTION

Thank you for purchasing Microchip Technology’s XLP 8-Bit Development Board.
The board provides a low-cost, highly configurable development system for Microchip’s new line of 64 and 80-pin Extreme Low-Power (XLP) microcontrollers, including the PIC16(L)F1947 and PIC18F87K22 families.
The XLP 8-bit board permits users to explore and evaluate extreme low-power features, and learn low-power software and hardware techniques. Various headers are available to measure the power consumption of both the microcontroller and development board. It is flexible, supporting five different power sources over a wide voltage range. It is highly configurable, equipped with a variety of common peripheral components that can be selectively enabled. Finally, it is expandable through its modular interface, providing for the addition of advanced interfaces and connectivity methods.
As provided, the XLP 8-Bit Development Board functions as a demonstration platform on initial power-up. The included demonstration software takes a temperature measurement, datalogs information to the serial data EEPROM, and displays information to the on-board LCD. Additional software is provided to demonstrate low-power techniques and IC interface routines.
XLP 8-BIT DEVELOPMENT BOARD
USER’S GUIDE

1.2 HIGHLIGHTS

The XLP 8-Bit Development Board includes these features:
• Support for both 64-pin and 80-pin versions of both PIC16 (L)F-series and PIC18 K-series Flash microcontrollers via Plug-In Modules (PIMs)
• Built-in capability for separately measuring microcontroller and board current con­sumption
• Multiple oscillator options
• Accommodations for five different power source options
• Configurability for a wide range of operating voltages (1.8V to 3.3V)
• Configuration selection jumpers to disable board components
• A hardware switchable option to control power to board components with port pin
• Three push buttons
• Seven LEDs
• Potentiometer for analog input
• 16x2 character LCD with controller
• Serial EEPROM storage
• PICtail™ interface for connection to various application daughter boards
• Serial Accessory Port (SAP)
• Temperature sensor
• Prototyping Area
• Support for all Microchip compatible programmers and emulators
2011 Microchip Technology Inc. DS41581A-page 11
XLP 8-Bit Development Board User’s Guide

1.3 WHAT’S IN THE BOX

The XLP 8-Bit Development Board includes the following:
• XLP 8-Bit Development Board
• PIC16(L)F1947 Plug-In Module
• PIC18F87K22 Plug-In Module
•USB mini-B cable
• Power Analyzer cable

1.4 DEVELOPMENT BOARD FEATURES

A layout of the XLP 8-Bit Development Board is shown in Figure 1-1.
The board includes these specific features, as indicated in the diagram:
1. Connector for Plug-In Modules (PIM)
2. Oscillator circuits (10 MHz and 32.768 kHz) for microcontroller on PIM
3. Power supply area (battery holders, external power supply input, LDO regulator and power supply select jumper) interface headers for the energy harvester demonstration board
4. Power LED
5. LDO regulator
6. IC power-select jumpers
7. Microcontroller Master Clear switch
8. Push buttons
9. Potentiometer
10. LEDs
11. 2x16 character LCD
12. Serial EEPROM
13. Temperature sensor
14. PICkit™ programmer/debugger 6-pin interface
15. Modular 28-pin riser interface for daughter boards
16. Serial Accessory Port
17. Prototype area with supply voltage and I
18. Current measurement jumpers and access point
A more detailed discussion of each feature and its configuration is provided in Chapter
3. “XLP 8-Bit Development Board Hardware”.
2
C™ signal access
DS41581A-page 12 2011 Microchip Technology Inc.
Loading...
+ 27 hidden pages