Microchip Technology MCP9800 Temperature Data Logger Demo Board 2 User guide

MCP9800 Temperature
Data Logger Demo Board 2
User’s Guide
© 2007 Microchip Technology Inc. DS22027A
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 Digit al Millennium Copyright Act. If suc h a c t s 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 t he lik e is provided only for your convenience and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless M icrochip from any and all dama ges, claims, suits, or expenses re sulting from such use. No licens es 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, PICmicr o, PICST A RT,
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, MXDEV, MXLAB, 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, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzy LAB, In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active Thermistor, Mindi, MiWi, MPASM, MPLIB, MPLINK, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel, 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 T echnology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their respective companies.
© 2007, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona, Gresham, Oregon and Mountain View, California. The Company’s quality system processes and procedures are for its PIC MCUs and dsPIC DSCs, KEELOQ 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.
®
code hopping devices, Serial
DS22027A-page ii © 2007 Microchip Technology Inc.
®
MCP9800 TEMPERATURE DATA LOGGER
DEMO BOARD 2 USER’S GUIDE
Table of Contents
Preface........................................................................................................................... 1
Chapter 1. Product Overview
1.1 Introduction..................................................................................................... 5
1.2 What is the MCP9800 Temperature Data Logger Demo Board 2?................ 5
1.3 What does the MCP9800 Temperature Data Logger Demo Board 2
Kit Include?........................ ............................................................................ 5
Chapter 2. Installation and Operation
2.1 Introduction .................................................................................................... 7
2.2 Features .......................................... .. .. ........................... .. .. ............................ 7
2.3 Getting Started............................................................................................... 7
2.3.1 Programming the PIC10F202.......................................................... 8
2.3.2 Reading Data from the MCP9800 Temperature Data Logger
Demo Board 2.................................................................................. 9
2.3.3 Storing yo u r Da ta.............. ............................................................. 10
2.3.4 Displaying Temperature Data........................................................ 10
2.4 Functional Description............. ......................................................................11
2.4.1 The MCP9800 Temperature Data Logger Demo Board 2............. 11
2
2.5 I
C™ Subroutin e s ............. ........................................................................... 11
2.5.1 The MCP9800................................................................................ 13
2.5.2 The 24LC16B................................................................................. 13
2.5.3 The MCP1 0 1..... .. ........................................................................... 13
Appendix A. Schematic and Bill of Materials (BOM) ............................................... 15
© 2007 Microchip Technology Inc. DS22027A-page iii
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide
NOTES:
DS22027A-page iv © 2007 Microchip Technology Inc.
MCP9800 TEMPERATURE DATA LOGGER
DEMO BOARD 2 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 “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.
INTRODUCTION
®
IDE on-line help.
This chapter contains general information that will be useful to know before using the MCP9800 Temperature Data Logger Demo Board 2. 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 Data Logger Demo Board 2. The manual layout is as follows:
Chapter 1. “Product Overview” – Important information about the MCP9800 Temperature Data Logger Demo Board 2.
Chapter 2. “Installation and Operation” – Demonstrates what programs need to be installed and how to program the microcontroller on the PCB, as well as reading the data out and displaying the data in an Excel
Appendix A. – “Schematic and Bill of Materials (BOM)”
®
spreadsheet.
© 2007 Microchip Technology Inc. DS22027A-page 1
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following docum entat io n conven tion s:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB
Emphasized text ...is the only comp ile r...
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 Sam ple 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 r epeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the tota l number of digits, R is th e radi x 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
DS22027A-page 2 © 2007 Microchip Technology Inc.
RECOMMENDED READING
The following Microchip documents are available and recommended as supplemental reference resources.
MCP9800 Data Sheet, “2-Wire High-Accuracy Temperature Sensor” (DS21909) 24LC16B Data Sheet, “16K I PIC10F202 Data Sheet, “PIC10F200/202/204/206 Data Sheet” (DS41239) MCP100/101 Data Sheet, “Microcontroller Supervisory Circuit with Push-Pull
Output” (DS11187) SEEVAL
®
32 User’s Guide, “SEEVAL® 32 Quick Start Guide” (DS51338)
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, list ings of Microchip sales offices, distributors and factory representatives
2
C™ Serial EEPROM” (DS21703)
Preface
© 2007 Microchip Technology Inc. DS22027A-page 3
Loading...
+ 15 hidden pages