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 comm itted t o 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 Micro chip’s products as c ritical componen ts in
life support systems is not authorized except with express
written approval by Microchip. No licenses are conveyed,
implicitly or otherwise, under any Microchip intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, microID, MPLAB, PIC, PICmicro, PICST ART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXD EV, MXLAB,
PICMASTER, 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, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, MPASM, MPLIB, MPLINK,
MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel, Total
Endurance and WiperLock are trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip T echnology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in
October 2003. The Company’s quality system processes and
procedures are for its PI Cmicro
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 page 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
MCP9700 Temperature-to-Volt age Converter PICtail™ Demo Board. Items discussed
in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP9700 T emperature-to-Voltage Converter
PICtail™ Demo Board User’s Guide. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP9700
Temperature-to-Voltage Converter PICtail™ Demo Board.
• Chapter 2. “Installation and Operation” – This chapter includes instructions on
how to get started, with a detailed description of each of the board’s functions.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo
Board.
• Appendix B. “Bill-Of-Materials (BOM)” – Lists the parts used to build the
MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board.
Choice of mutually exclus ive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
any valid filename
file [options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
RECOMMENDED READING
This user's guide describes how to use the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board. Other useful documents are listed below. The following
Microchip documents are available and recommended as supplemental reference
resources.
MCP9700 Data Sheet (DS21942)
This data sheet provides detailed information regarding the MCP9700 decive.
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
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
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
In addition, there is a Development Systems Information Line which lists the latest
versions of Microchip's development systems software products. This line also
provides information on how customers can receive currently available upgrade kits.
The Development Systems Information Line numbers are:
1-800-755-2345 – United States and most of Canada
1-480-792-7302 – Other Interna tio nal Loca tio ns
This chapter provides an overview of the MCP9700 T emperature-to-Voltage Converter
PICtail™ Demo Board and covers the following topics:
• What is the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board?
• What the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board Kit
includes
1.2WHAT IS THE MCP9700 TEMPERA TURE-TO-VOLTAGE CONVERTER
PICTAIL™ DEMO BOARD?
The MCP9700 T emperature-to-Voltage Converter PICtail™ Demo Board demonstrates
how to interface the MCP9700 to a PICmicro
Flash Starter Kit as a platform. A PIC16F676 14-pin, Flash-based, 8-bit CMOS
microcontoller device is included with the demo board that can be used with the
PICkit™ 1 Flash Starter Kit, along with firmware that provides the interface to the
MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board and the
voltage-to-temperature conversion routines.
The MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board can also be
used as a “stand-alone” module to quickly add thermal sensing capablity to any existing
application. This basic sensor functionality is implemented on a small Printed Circuit
Board (PCB) and an interface via a standard 100 mil header.
®
microcontroller using the PICkit™ 1
1.3WHAT THE MCP9700 TEMPERATURE-TO-VOLTAGE CONVERTER
PICTAIL™ DEMO BOARD KIT INCLUDES
This MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board Kit includes:
• The MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board
The MCP9700 T emperature-to-Voltage Converter PICtail™ Demo Board demonstrates
how to interface the MCP9700 to a microcontroller, for use by the system designer as
an example of how to integrate an analog temperature sensor into their system.
2.2FEATURES
The MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board has the
following features:
•Small PCB layout
• Standard 100 mil 14-pin header (P1) for easy interface to PICkit™ 1 Flash Starter
Kit or custom application
2.3GETTING STARTED
MCP9700 TEMPERATURE-TO-VOLTAGE
CONVERTER PICtail™ DEMO BOARD
USER’S GUIDE
PC
This section describes how to quickly set up the MCP9700 Temperature-to-Voltage
Converter PICtail™ Demo Board and PICkit 1 Flash Starter Kit. A block diagram of the
setup is presented in Figure 2-1. Refer to AN981, “Interfacing a MCP9700 Analog
Output Temperature Sensor to a PICmicro
information on the MCP9700 T emperature-to-Voltage Converter PICtail™ Demo Board
and the 00059R1.HEX firmware.
1. Connect the P1 header of the MCP9700 Temperature-to-Voltage Converter
PICtail™ Demo Board to the J3 connector on the PICkit 1 Flash Starter Kit
board. Refer to Figure 2-2 for proper orientation of the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo Board and Figure 2-3 for the
simplified board schematic.
2. Insert the PIC16F676 into the Evaluation socket of the PICkit 1 Flash Starter Kit
board.
3. Connect the PICkit 1 Flash Starter Kit USB cable from the USB port of the PC to
the USB port (J1) on t he PIC kit 1 Fl ash Starter K it boa rd. +5V p ower is suppli ed
to the PICkit 1 Flash Starter Kit board via the USB cable. The green POWER
LED and the red BUSY LED will turn on, indicating that power is being supplied
to the board.
1. Download and install the PICkit 1 Flash Starter Kit software to your PC.
2. Copy the 00059R1.HEX file, supplied on the CD that came with this kit, to your
PC.
3. Once the PICkit 1 Flash Starter Kit is started, the main window will be displayed
on the PC, as indicated in Figure 2-4.
FIGURE 2-4:PICkit™ 1 Flash Starter Kit GUI Window on the PC.
4. Toggle device power to off by unchecking the Device Power box under Board
Controls in the PICkit 1 Flash Starter Kit window (Figure 2-4). The BUSY LED
on the PICkit 1 Flash Starter Kit board will turn off once the device power is turned
off.
5. Click on the Erase button in the window to ensure that the PIC16F676 device has
been erased.
6. From the File pull down menu, select Import HEX. A file window will appear.
Select and open “00059R1.HEX”.
7. Click on the Write Device button in the PICkit 1 Flash Starter Kit window. The
PIC16F676 device will be written to with the 00059R1.HEX firmware. When
completed, the status bar at the bottom of the window will indicate Write Successful.
8. Toggle the device power on by checking the Device Power box under Board
Controls in the PICkit 1 Flash Starter Kit window . The BUSY LED on the PICkit
1 Flash Starter Kit board will turn on once the device power is turned on. Some
of the red LEDs (D7-D0) will turn on as well.
At this point, the PIC16F676 is reading the temperature data from the MCP9700 and
displaying the temperature on the eight red LEDs (D7-D0) on the PICkit 1 Flash Starter
Kit board. The ten’s digit of the temperature data is represented by bits D7-D4, with D7
being defined as the Most Significant bit (MSb). The one’s digit is defined by bits
D3-D0, with D3 serving as the MSb.
The temperature can be displayed in degrees Celsius or Fahrenheit. The board
defaults to the temperature being displayed in Celsius. To display the temperature in
Fahrenheit, press the SW1 push button switch on the PICkit 1 Flash Starter Kit board.
The display will change back to Celsius once the SW1 push button switch is released.
Table 2-1 provides a list of the LED patterns that correspond to the BCD coding
representation of the temperature measurement.
TABLE 2-1:BCD CODE REPRESENTATION ON PICkit™ 1 FLASH STARTER
FIGURE 2-5:PICkit™ 1 Flash Starter Kit LED Display of 75°F.
The temperature display will change when the temperature of the MCP9700 is varied.
A simple example of this can be seen by pressing your finger on the MCP9700 device
(U1) mounted on the MCP9700 Temperature-to-Voltage Converter PICtail™ Demo
Board. More dramatic changes can be seen by applying heat to the MCP9700 with a
hair dryer, hot air gun or by cooling the device down.
Refer to the MCP9700 data sheet, “Low-Power Voltage Output Temperature Sensor”
(DS21942), for more information on the MCP9700 and AN981, “Interfacing a MCP9700
Analog Output Temperature Sensor to a PICmicro
information on the MCP9700 T emperature-to-Voltage Converter PICtail™ Demo Board
and 00059R1.HEX firmware.