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, 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, Linear Active Thermistor, Migratable
Memory, MXDEV, MXLAB, PS logo, 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, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi,
MPASM, MPLAB Certified logo, 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 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.
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
PICkit™ Serial I
• 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 PICkit™ Serial I2C™ Demo Board as a
development tool. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the PICkit™
Serial I
• Chapter 2. “Installation and Operation” – Includes instructions on how to use
the PICkit™ Serial I
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the PICkit™ Serial I
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
PICkit™ Serial I
2
C™ Demo Board. Items discussed in this chapter include:
This user's guide describes how to use PICkit™ Serial I2C™ Demo Board. Other useful
documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
24AA02/24LC02B Data Sheet, "2K I
This data sheet provides detailed information regarding the 24LC02B family.
MCP9800/1/2/3 Data Sheet, "2-Wire High-Accuracy Temperature Sensor"
(DS21909)
This data sheet provides detailed information regarding the MCP9801 product.
MCP3221 Data Sheet, "Low Power 12-Bit A/D Converter w/I
(DS21732)
This data sheet provides detailed information regarding the MCP3221 product.
TC1321 Data Sheet, "10-Bit Digital-to-Analog Converter w/Two-Wire Interface"
(DS21387)
This data sheet provides detailed information regarding the TC1321 product.
MCP23008/MCP23S08 Data Sheet, "8-Bit I/O Expander with Serial Interface"
(DS21919)
This data sheet provides detailed information regarding the MCP23008/MCP23S08
product.
MCP1525/41 Data Sheet, “2.5V and 4.096V Voltage Reference” (DS21653)
This data sheet provides detailed information regarding the MCP1525/41 product.
2
C Serial EEPROM" (DS21709)
2
C Interface"
Preface
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
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
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
The PICkit™ Serial I2C™ Demo Board demonstrates I2C serial communications and
operation of the following devices:
• 24LC02B - 2Kbit Serial EEPROM
• MCP9801 - High-Accuracy Temperature Sensor
• MCP3221 - Low-Power 12-Bit A/D Converter
• TC1321 - 10-Bit Digital-to-Analog Converter
• MCP23008 - 8-Bit I/O Expander
The PICkit™ Serial I
Serial Analyzer (DV164122). The PICkit Serial Analyzer provides the I
serial communications and power. The PICkit™ Serial I
operate in the I
connected to virtually any demo or development board by connecting the communications lines to connector P1.
PICkit™ SERIAL I2C™ DEMO
BOARD USER’S GUIDE
2
C™ Demo Board was designed to easily connect to the PICkit
2
2
C slave mode. The PICkit™ Serial I2C™ Demo Board can easily be
C™ Demo Board devices all
2
C master mode
1.2HIGHLIGHTS
This chapter discusses:
2
•I
C Serial Communications
2
•I
C Demo Board Operation
2
•I
C Demo Board Devices
FIGURE 1-1:PICkit™ Serial I
Note:Figure 1-1 shows the Rev. 1 board with an ECO (Engineering Change
Notice) applied to it. The Rev. 1 board with ECO and the Rev. 2 board are
electrically the same. Refer to Appendix A. “Schematic and Layouts” for
Rev. 2 schematics and board layouts.
It is assumed that the user is familiar with I2C Serial Communications. For more information see:
•The I
•An I
• Several application notes are available on the Microchip Technology website.
1.4WHAT THE PICkit™ SERIAL I2C™ DEMO BOARD KIT INCLUDES
This PICkit™ Serial I2C™ Demo Board Kit includes:
• PICkit™ Serial I
• Analog and Interface Products Demonstration Boards CD-ROM (DS21912)
2
C-Bus Specification Version 2.1 January 2000 is available from NXP
Semiconductor (formally Philips Semiconductor) website at
http://www.nxp.com/acrobat_download/literature/9398/39340011.pdf
2
C Master Communications tutorial is available on the Microchip Technology
website. Click on the links: Support --> Getting Started --> PIC MCU Tutorials -->
2
I
C Master Mode
Click on links: Design --> App Notes --> Function: Communications --> I
The PICkit™ Serial I2C™ Demo Board was designed to easily connect to the PICkit
Serial Analzyer (DV164122). Refer to the PICkit Serial Analyzer User’s Guide
(DS51647) chapter on I
operation information of the PICkit Serial Analyzer.
The PICkit Serial Analyzer provides the I
power. The PICkit™ Serial I
mode. Figure 2-1 shows the PICkit™ Serial I
Pull-up resistors R2 and R3 are not populated. The PICkit Serial Analyzer can be
configured to enable internal pull-up resistors. When using the PICkit Serial Analyzer,
enable internal pull-up resistors. Or resistors R2 and R3 can be populated by the user
for use with other development boards or the PICkit Serial Analyzer internal pull-up
resistors disabled.
2
C Master Communications mode for configuration and
PICkit™ SERIAL I2C™ DEMO
BOARD USER’S GUIDE
2
2
C™ Demo Board devices all operate in the I2C slave
C master mode serial communications and
2
C™ Demo Board block diagram.
FIGURE 2-1:PICkit™ Serial I
Connector P1 connects to the PICkit Serial Analyzer or virtually any demo or
development board. Connector P1 pin assignments are listed in Table 2-1.
TABLE 2-1: I
PinLabelTypeDescription
1——No Connection
2+VPowerPower
3GNDGroundGround
4SDAInput/OutputSerial Data
5SCLInputSerial Clock
6——No Connection
The 24LC02B is a 2Kbit Serial EEPROM. Refer to the 24AA02/24LC02B Data Sheet
(DS21709) for complete information. The slave address is 0xAX (where x = any value).
Data can be read or written to the 24LC02B.
2.2.2MCP9801 High-Accuracy Temperature Sensor
The MCP9801 is a High-Accuracy Temperature Sensor. Refer to the
MCP9800/MCP9801 Data Sheet (DS21909) for complete information. The slave
address is 0x92.
The temperature can be read from the MCP9801. Test points ALERT and GND provide
signals that can be read using a voltmeter or oscilloscope.
2.2.3MCP3221 Low-Power 12-Bit A/D Converter
The MCP3221 is a Low Power 12-Bit A/D Converter. Refer to the MCP3221 Data Sheet
(DS21732) for complete information. The slave address is 0x9A.
Potentiometer R1 is configured as a voltage divider (see schematic in Appendix A. “Schematic and Layouts”). The wiper is connected to the input. The voltage can
be read by the MCP3221 and can be verified using an volt meter on test points A
GND.
IN
and
2.2.4TC1321 10-Bit Digital-to-Analog Converter
The TC1321 is a 10-Bit Digital-to-Analog Converter. Refer to the TC1321 Data Sheet
(DS21387) for complete information. The slave address is 0x90.
The V
voltage swing (V
The output of the TC1321 can be measured using a volt meter at test points VDAC-OUT, and GND.
signal is generated by a MCP1525 2.5 Voltage Reference. The DAC output
REF
) will be between 0 - 2.5V.
SW
OUT
,
2.2.5MCP23008 8-Bit I/O Expander
The MCP23008 is an 8-bit I/O Expander. Refer to the MCP23008/MCP23S08 Data
Sheet (DS21919) for complete information. The slave address is 0x40.
The output of the MCP23008 drives LEDs DS1 through DS8. The LEDs provide an
easy to see indication of the MCP23008 operation. Jumper JP1 must be closed using
a 2-pin shunt for the LEDs to operate. The LEDs can be disabled by removing JP1.
The output of the MCP23008 is connected to test points GP0 through GP7 and GND.
These test points can be monitored by a volt meter or connected to an external device.
LEDs DS1 through DS8 can be used to monitor the output by closing JP1 with a 2-pin
shunt or disable by removing JP1.