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, microID, MPLAB, PIC, PICmicro, PICSTART,
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, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, 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 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
Tempe, Arizona, Gresham, Oregon and Mountain View, California. The
Company’s quality system processes and procedures are for its
PICmicro
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.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
TC1047A Temperature-to-Voltage 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 TC1047A Temperature-to-Voltage Converter
PICtail™ Demo Board as a development tool. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the TC1047A
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)
{ ...
}
RECOMMENDED READING
This user's guide describes how to use TC1047A Temperature-to-Voltage Converter
PICtail™ Demo Board. The following Microchip documents are available and
recommended as supplemental reference resources.
TC1047A Data Sheet, “Precision Temperature-to-Voltage Converter” (DS21498)
This data sheet provides detailed information regarding the TC1047A device.
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
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
Preface
DOCUMENT REVISION HISTORY
Revision B (July 2006)
• Add disclaimer to Bill of Materials regarding RoHS-Compliant part numbers.
This chapter provides an overview of the TC1047A Temperature-to-Voltage Converter
PICtail™ Demo Board. and covers the following topics:
• What is the TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board?
• What the TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board Kit
includes
1.2WHAT IS THE TC1047A TEMPERATURE-TO-VOLTAGE CONVERTER
PICTAIL™ DEMO BOARD?
The TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board demonstrates
how to interface the TC1047A 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 PICkit 1
Flash Starter Kit, along with firmware that provides the interface to the TC1047A and
the voltage-to-temperature conversion routines.
The TC1047A 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 TC1047A TEMPERATURE-TO-VOLTAGE CONVERTER PICTAIL™
DEMO BOARD KIT INCLUDES
This TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board Kit includes:
• The TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board
The TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board demonstrates
how to interface the TC1047A device 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 TC1047A 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
TC1047A TEMPERATURE-TO-VOLTAGE
CONVERTER PICtail™ DEMO BOARD
USER’S GUIDE
PC
This section describes how to quickly set up the TC1047A 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 Application Note 938, “Interfacing a TC1047A
Analog Output Temperature Sensor to a PICmicro
detailed information on the TC1047A Temperature-to-Voltage Converter PICtail™
Demo Board and the TC1047A PICtail.HEX firmware.
1. Connect the P1 header of the TC1047A 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 TC1047A
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 the PICkit 1 Flash Starter Kit board. +5V power is supplied
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 TC1047A PICtail.HEX file, supplied on the CD that came with this
kit, to your PC.
3. When 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 “TC1047A PICtail.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 TC1047A PICtail.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 when device power is turned on. Some of
the red LEDs (D7-D0) will turn on as well.
At this point, the PIC16F676 device is reading the temperature data from the TC1047A
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 Fahrenheit or Celsius. The board
defaults to the temperature being displayed in Fahrenheit. To display the temperature
in Celsius, depress the SW1 push button switch on the PICkit 1 Flash Starter Kit board.
The display will change back to Fahrenheit 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
KIT LEDS
Binary
00000OFFOFFOFFOFF
00011OFFOFFOFFON
00102OFFOFFONOFF
00113OFFOFFONON
01004OFFONOFFOFF
01015OFFONOFFON
01106OFFONONOFF
01117OFFONONON
10008ONOFFOFFOFF
10019ONOFFOFFON
BCD
Number
D7
D3
D6
D2
D5
D1
D4
D0
For example, a temperature reading of 75°F will be displayed by turning on LEDs D6,
D5, D4, D2 and D0 (LEDs D7, D3 and D1 will be turned off), as indicated in Figure 2-5.
FIGURE 2-5:PICkit™ 1 Flash Starter Kit LED Display of 75°F.
The temperature display will change when the temperature of the TC1047A is varied.
A simple example of this can be seen by pressing your finger on the TC1047A device
(U1) on the TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board. More
dramatic changes can be seen by applying heat to the TC1047A with a hair dryer or
hot air gun, or by cooling the device down.
Refer to the TC1047A Data Sheet, “Precision Temperature-to-Voltage Converter”
(DS21498), for more information on the TC1047A, and Application Note 938,
“Interfacing a TC1047A Analog Output Temperature Sensor to a PICmicro
®
Microcontroller”, for more information on the TC1047A Temperature-to-Voltage Converter PICtail™ Demo Board and the TC1047A PICtail.HEX firmware.