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, Accuron,
dsPIC, K
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
PICSTAR T, rfPIC and SmartShunt are registered trademarks
of Microchip T echnology Incorporated in the U.S.A. and other
countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
logo, PowerCal, PowerInfo,
PowerMate, PowerT ool, REAL ICE, rfLAB, Select Mode, Total
Endurance, UNI/O, 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.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
T empe, 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 memo ry and
analog products. In addition, Microchip’s quality system for the desig n
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
MCP9800 Temperature Sensor 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 MCP9800 Temperature Sensor Demo Board
as a development tool to emulate and debug firmware on a target board. The manual
layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP9800
Temperature Sensor Demo Board.
• Chapter 2. “Installation and Operation” – This chapter includes a detaile d
description of each function of the demo board and instructions for how to begin
using the board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP9800 Temperature Sensor Demo Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP9800 Temperature Sensor Demo Board.
This user's guide describes how to use MCP9800 Temperature Sensor Demo Board.
Other useful documents are listed below . The following Microchip document s are available and recommended as supplemental reference resources.
MCP9800/1/2/3 Data Sheet, “2-Wire High-Accuracy Temperature Sensor“,
DS21909
This data sheet provides detailed information regarding the MCP9800 device.
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
• 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
Preface
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. Lo cal 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
This chapter provides an overview of the MCP9800 Temperature Sensor Demo Board
and covers the following topics:
• What is the MCP9800 Temperature Sensor Demo Board?
• What the MCP9800 Temperature Sensor Demo Board kit includes
1.2WHAT IS THE MCP9800 TEMPERATURE SENSOR DEMO BOARD?
The MCP9800 T emperature Sensor Demo Board demonstrates the sensor’s features.
Users can connect the demo board to a PC with USB interface and evaluate the sensor
performance. The 7-Segment LED displays temperature in degrees Celsius or degrees
Fahrenheit; the temperature alert feature can be set by the users using an on board
potentiometer. An al ert LED is used to indicate an over temperature condition.
In addition, temperature can be datalogge d using the Microchip Thermal Managemen t
Software Graphical User Interface (GUI). The sensor registers can also be
programmed using the GUI.
1.3WHAT THE MCP9800 TEMPERATURE SENSOR DEMO BOARD KIT
INCLUDES
This MCP9800 Temperature Sensor Demo Board Kit includes:
• MCP9800 Temperature Sensor Demo Board (102-0170)
• Microchip Thermal Management Graphical User Interface (GUI)
• Analog and Interface Products Demonstration Boards CD-ROM (DS21912)
- MCP9800 Temperature Sensor Demo Board User’s Guide (DS51758)
- MCP9800/1/2/3 Data Sheet, “2-Wire High-Accuracy Temperature Sensor“,
(DS21909)
The MCP9800 Temperature Sensor Demo Board demonstrates the sensor functions
and features. This demo board is powered from a USB port and it displays temperature
on a 7-Segment LED display. A push button switch is used to display temperature in
degrees F or degrees C. In addition, the sensor overtemperature alert feature can be
evaluated by the user using a rota ry poten tiometer. The temperature Alert and Hysteresis registers are programmed to a preset temperature limit based on the potentiometer wiper position. An LED is used to indicate overtemperature condition.
In addition, temperature can be data logged using the Microchip Thermal Management
Software Graphical User Interface (GUI). The sensor registers can also be
programmed using the GUI.
2.2FEATURES
The MCP9800 Temperature Sensor Demo Board has the following features:
• Graphical User Interface which can be used for temperature data logging
• Small PCB layout
• Standard 100 mil 14-pin header (P1) for easy interface to PICkit™ 1 Flash Starter
Kit or custom application
• 7-segment LED display to display temperature in °C or in °F
MCP9800 Temperature Sensor Demo Board User’s Guide
I2C Interface
PC
USB interface
MCP9800
7-Segment display
PIC18F2550
Display Control-
ler
I2C Interface
Alert Indicator
User Input:
Temperature
Alert/Hysteresis Limit Set
°C / °F
2.3GETTING STARTED
This section describes how to quickly configure the MCP9800 Temperature Sensor
Demo Board and PICkit™ 1 Flash Starter Kit. A block diagram of the configuration is
provided in Figure 2-1.
.
FIGURE 2-1:MCP9800 Temperature Sensor Demo Board Block Diagram.
2.3.1Hardware Setup
1. The MCP9800 Temperature Sensor Demo Board has a mini-USB connector for
a PC interface. Connect the USB cable from the demo board to a PC.
Temperature should be displayed on the 7-Segment LED display.
2. Star t the Thermal Managem ent Software GUI for dat a logging or to e valuate the
sensor features.
The MCP9800 Temperature Sensor Demo Board has the MCP9800 temperature
sensor device, a 7-segment LED display circuit, and a PIC18F2550 Microcontroller
which controls the sensor and PC interface via USB. The controller communicates with
the sensor and displays the temperature on the 7-segmen t LED display. The PIC also
monitors user inputs via a push button switch and a poten tiom e te r, and controls the
sensor and the 7-segment display accordingly. In addition, the PIC supports a full
speed USB protocol which is used to interface with a PC and provide additional user
interface to access all sensor features, such as temperature measurement resolution ,
measurement queue, shutdown/oneshot mode, and temperature alert output polarity.
The software can also be used to data log temperature data.
2.4.2The MCP9800
The MCP9800 comes with user-programmable registers that provide flexibility for temperature sensing applications. The register settings allow user select able 9-bit to 12-bit
temperature measurement resolution, configuration of the power -saving Shutdown and
One-shot (single conversion on command while in the Shutdown) modes and the
specification of both temperature alert output and hysteresis limits. When the temperature changes beyond the specified limits, the MCP9800 device outputs an alert signal.
The user has the option of setting the alert output signal polarity as an active-low or
active-high comparator output for thermostat operation, or as temperature event
interrupt output for microprocessor-based systems.
This device has I
Data Sheet, DS21909, for further details).
2
C/SMBus compatible serial interface (refer to the MCP9800/1/2/3
Installation and Operation
2.4.3User Selectable Features
The demo firmware programs the temperature limit and hysteresis limit registers (TSET
and THYST) according to the position of the RP1 potentiometer. The potentiometer is
connected to the PIC18F2550 analog input pin. The voltage across the pote ntiometer
wiper terminal determines the T
RP1 wiper voltage and the corresponding T
When the ambient temperature exceeds the programmed T
outputs an Alert signal using the ALERT output pin. This pin is an open-drain output pin
which is configured as an active-high output. When th is pin is high, the D1 diode lit s up,
and it remains lit up until the temperature drifts beyond the hysteresis limit, T
This firmware also converts the degree Celsius to degree Fahrenheit using the SW1
switch. When user presses the momentary push-button switch, the 7-segment di splay
shows the ambient temperature in degree Fahrenheit/Celsius.
In addition, the user has the option of changing the MCP9800 temperature
measurement resolution (default resolution is 12-bit). However, this requires the GUI.
The Microchip Thermal Management Graphical User Interface is an easy to use
software tool which allows the users to evaluate the demo board and sensor features,
as displayed in Figure 2-2.
FIGURE 2-2:Microchip Thermal Management GUI.
Once the hardware is connected, the software recognizes the device ID and displays
the corresponding GUI for the demo board. This tool enables the user to evaluate the
sensor’s features and perform temperature datalog. The black “Play”, “Stop”, and
“Reset” icons can be used to perform continuous datalog. And the red “Record” icon
enables the user to datalog to an external file. The logging interval can be adjusted
using the Interval Scroll bar from 100 ms to 1000 ms.
The Real-time Data Acquisition charting tool can be cu stomized by double cl icking the
chart, as shown in Figure 2-3. Additional options are available by right clicking the
chart. Users can also zoom into a specific plot range by clicking and dragging the
section.
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Te chnical Support:
http://support.microchip.com
Web Address:
www.microchip.com
Atlanta
Duluth, GA
Te l: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Te l: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Te l: 630-285-0071
Fax: 630-285-0075
Dallas
Addison, TX
Te l: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Te l: 248-538-2250
Fax: 248-538-2260
Kokomo
Kokomo, IN
Te l: 765-864-8360
Fax: 765-864-8387
Los Angeles
Mission Viejo, CA
Te l: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Te l: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Te l: 905-673-0699
Fax: 905-673-6509
ASIA/PACIFIC
Asia Pacific Office
Suites 3707-14, 37th Floor
To wer 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8528-2100
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Te l: 86-755-8203-2660
Fax: 86-755-8203-1760
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
China - Xiamen
Te l: 86-592-2388138
Fax: 86-592-2388130
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
ASIA/PACIFIC
India - Bangalore
Tel: 91-80-4182-8400
Fax: 91-80-4182-8422
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934