MCP9800 Temperature Data Logger Demo Board 2 User’s Guide © 2007 Microchip Technology Inc.
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.
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.
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.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE
Preface RECOMMENDED READING The following Microchip documents are available and recommended as supplemental reference resources.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide 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.
MCP9800 TEMPERATURE DATA LOGGER DEMO BOARD 2 USER’S GUIDE Chapter 1. Product Overview 1.1 INTRODUCTION This chapter contains an overview of the MCP9800 Temperature Data Logger Demo Board 2 and covers the following topics: • What is the MCP9800 Temperature Data Logger Demo Board 2? • What does the MCP9800 Temperature Data Logger Demo Board 2 include? 1.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide NOTES: DS22027A-page 6 © 2007 Microchip Technology Inc.
MCP9800 TEMPERATURE DATA LOGGER DEMO BOARD 2 USER’S GUIDE Chapter 2. Installation and Operation 2.1 INTRODUCTION The MCP9800 Temperature Data Logger Demo Board 2, once programmed, will log temperature measurements for a predetermined amount of time until the 24LC16B is fully programmed with temperature data (i.e., 2,048 temperature readings). Each sample uses one byte of memory. The intervals can be changed in the firmware we have provided by changing the TIMEOUTVAL variable.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide FIGURE 1-1: Block Diagram MCP9800 Temperature Data Logger Demo Board 2 Functional Status LED (D2) MCP101 Voltage Supervisor (U5) PIC10F202 (U3) PICkit™ 2 Programmer Header (J1) 24LC16B Serial EEPROM (U2) Power Supply 3.3 VDC (Battery) 2.3.1 MCP9800 Temp. Sensor (U4) SEEVAL® 32 Evaluation Tool Header (U1) Battery Jumper (JP1) Programming the PIC10F202 1. Download and Install the PICkit™ 2 programmer software onto your PC. 2.
Installation and Operation FIGURE 1-2: PICkit™ 2 Programmer GUI Window on the PC 7. Select Device Family>Baseline. 8. Select PIC10F202 from the Device pull-down menu. 9. Select File>Import Hex from the File pull-down menu. A file window will appear. Locate, select, and open SEEVALDM-DL.hex from your PC. 10. Click on the Write Device Button in the PICkit™ 2 Programmer window. The PIC10F202 will be written to with the SEEVALDM-DL.hex firmware.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide 5. Insert the MCP9800 Temperature Data Logger Demo Board 2 into to SEEVAL® 32 evaluation board. To do this, flip the board upside down making sure the ICSP pins are facing the right side of the SEEVAL® 32 evaluation board. Place the 8 header pins in the rear (right side) of the ZIF socket. Close the socket. 6. Select Read>Entire Device to read the 24LC16B. 7. Your data (hexadecimal) will be displayed on the SEEVAL® 32 evaluation tool software GUI.
Installation and Operation 2.4 FUNCTIONAL DESCRIPTION 2.4.1 The MCP9800 Temperature Data Logger Demo Board 2 This demo board was originally developed for the use in a class to teach people the basics of the I2C™ protocol. The code is formatted in such a manner that it is easy to read and modify should one need to. Table 1-1 and Table 1-2 show some of the basic subroutines and constant definitions used in the code. The TIMEOUTVAL variable may be modified to put longer delays between measurements.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide BSTOP Output: None. Return Value: 0 Code Example: call BSTOP ; Generate Stop SEND_ACK Description: Generate an I2C bus Acknowledge condition. Arguments: None. Output: None. Return Value: 0 Code Example: call SEND_ACK ; Send ACK to continue reading SEND_NACK Description: Generate an I2C bus Not Acknowledge condition. Arguments: None. Output: None.
Installation and Operation 2.5.1 The MCP9800 The MCP9800 comes with user-programmable registers that provide flexibility for temperature-sensing applications. The register settings allow user-selectable 9-bit to 12-bit temperature measurement resolution, configuration of the power-saving Shutdown and One-Shot (single conversion on command while in Shutdown) modes and the specification of both temperature alert output and hysteresis limits.
MCP9800 Temperature Data Logger Demo Board 2 User’s Guide NOTES: DS22027A-page 14 © 2007 Microchip Technology Inc.
MCP9800 TEMPERATURE DATA LOGGER DEMO BOARD 2 USER’S GUIDE Appendix A. Schematic and Bill of Materials (BOM) MCP9800 Temp Sensor SEEVAL® 32 Data Logger Schematic 1 2 M FIGURE 1-1: © 2007 Microchip Technology Inc.
DS22027A-page 16 1 1 1 1 3 1 1 1 1 2 1 10 11 12 13 14 15 16 17 18 1 6 9 1 5 1 1 4 5 1 3 7 1 2 8 1 1 Label, AIPD Assembly and Serial Numbers, Very Small RoHS Compliant Bare PCB, MCP9800 SEEVAL Based Temperature Data Logger MCP9800 SEEVAL Based Temperature Data Logger Test Procedure SCHEMATIC, MCP9800 SEEVAL Based Temperature Data Logger PCB FABRICATION DRAWING, MCP9800 SEEVAL Based Temperature Data Logger Gerber Files, 105-00128R1.
© 2007 Microchip Technology Inc. 1 1 1 1 1 19 20 21 22 Microchip Microchip Microchip Microchip 16K I2C™ Serial EEPROM 6-Pin, 8-Bit Flash Microcontrollers 2-Wire High-Accuracy Temperature Sensor Microcontroller Supervisory Circuit with Push-Pull Output U2 U3 U4 U5 Mfgr.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.