MCP3221
MCP3221
• 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.
Table of Contents
Preface ........................................................................................................................... 1
Chapter 1. Product Overview ....................................................................................... 5
1.1 Introduction ..................................................................................................... 5
1.2 What is the MCP3221 PICtail™ Demo Board? .............................................. 5
1.3 What the MCP3221 PICtail™ Demo Board Kit Includes ................................ 5
Chapter 2. Installation and Operation ......................................................................... 7
2.1 Introduction ..................................................................................................... 7
2.2 Features ......................................................................................................... 7
2.3 Getting Started ............................................................................................... 7
2.4 MCP3221 PICtail™ Demo Board description ................................................. 8
Appendix A. Schematic and Layouts ........................................................................ 11
A.1 Introduction .................................................................................................. 11
A.2 Schematics and PCB Layout ....................................................................... 11
A.3 Schematic ................................................................................................. 12
A.4 Board Layout – Top Layer ........................................................................ 13
A.5 Board Layout – Bottom Layer .................................................................. 14
Appendix B. Bill Of Materials (BOM) ......................................................................... 15
Worldwide Sales and Service .................................................................................... 16
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.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP3221 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 MCP3221 PICtail™ Demo Board as a devel-
opment tool. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP3221
PICtail™ Demo Board.
• Chapter 2. “Installation and Operation” – Includes instructions on how to get
started with this demo board, with a detailed description of each function.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP3221 PICtail Demo Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP3221 PICtail Demo Board.
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Emphasized text ...is the only compiler...
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 “Save project before build”
dialog
Underlined, italic text with A menu path File>Save
right angle bracket
Bold characters A dialog button Click OK
A tab Click the Power tab
N‘Rnnnn A number in verilog format, 4‘b0010, 2‘hF1
where N is the total number of
digits, R is the radix and n is a
digit.
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Filenames autoexec.bat
File paths c:\mcc18\h
Keywords _asm, _endasm, static
Command-line options -Opa+, -Opa-
Bit values 0, 1
Constants 0xFF, ‘A’
Italic Courier New A variable argument file.o, where file can be
any valid filename
Square brackets [ ] Optional arguments mcc18 [options] file
[options]
Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1}
character: { | } arguments; an OR selection
RECOMMENDED READING
This user's guide describes how to use the MCP3221 PICtail™ Demo Board. The
following Microchip documents are available and recommended as supplemental
reference resources.
MCP3221 Data Sheet, “Low Power 12-Bit A/D Converter with I2C™ Interface”,
DS21732
This data sheet provides detailed information regarding the MCP3221 device.
AN845, "Communicating with the MCP3221 using PICmicro® Microcontrollers”,
DS00845
This application note provides the necessary firmware for interfacing to the MCP3221
device.
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
2.2 FEATURES
The MCP3221 PICtail™ Demo Board has the following features:
• Allows simple evaluation of device performance using USB interface and
DataView software
• On-board PIC16C745 USB for DataView communication
• Data is displayed in an easy-to-read format complete with data-logging
• Easy to interface to PICkit™ 1 Flash Starter Kit evaluation system
• Simple DC signal generation using mechanical potentiometer
J1
J2
TP1
PIC16C745
MCP3221
JP1
U1
U2
FIGURE 2-1: MCP3221 PICtail™ Demo Board Block Diagram.
2.4.4 Reading the MCP3221 Output Using the DataView Software GUI
The DataView software displays the digital output of the MCP3221 ADC in a graphical
format on any Windows® compatible PC. Through the USB port, each 12-bit word is
transferred from the MCP3221 to the PC, converted to decimal and then plotted on the
graph shown in Figure 2-2. Each consecutive conversion is added to the right side of
the graph. The y-axis of the graph displays the output codes that have been collected
and automatically scales for any given output code range.The x-axis of the graph
automatically scrolls to the left once the entire graph has been filled with samples.
Top Layer
Bottom Layer
A.3 SCHEMATIC
07/21/06