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’s products as critical components in
life support systems is not authorized except with express
written approval by Microchip. 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,
PICMASTER, 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,
MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM,
PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo,
PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode,
Smart Serial, SmartTel, Total Endurance and WiperLock 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 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in
October 2003. The Company’s quality system processes and
procedures are for its PICmicro
devices, Serial 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
MCP402X Digital Potentiometer Evaluation 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 MCP402X Digital Potentiometer Evaluation
Board. The manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP402X
Digital Potentiometer Evaluation Board.
• Chapter 2. “Installation and Operation” – Includes instructions on how to get
started with this evaluation board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP402X Digital Potentiometer Evaluation Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP402X Digital Potentiometer Evaluation Board.
• Appendix C. “Using the BFMP Programmer to Power the Board” – Shows
how to interface the BFMP board with the MCP402X Digital Potentiometer Evaluation Board.
• Appendix D. “Potential Programming Issue of the MCP402XEV” – Discusses
possible programming issues with Rev 1 and Rev 2 of the MCP402X Digital
Potentiometer Evaluation Board.
• Appendix E. “00066_MCP402XEV.ASM Source Code” – Provides information
about the application firmware, as well as the location of the source code.
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
MPLAB® IDE User’s Guide
“Save project before build”
File>Save
‘b00100, ‘b10
any valid filename
0xFFFF, 0x007A
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
only
compiler...
RECOMMENDED READING
This user's guide describes how to use the MCP402X Digital Potentiometer Evaluation
Board. The following Microchip documents are available and recommended as
supplemental reference resources.
“Low-Cost, 64-Step Volatile Digital POT in SOT-23”
Data Sheet
“Low-Cost NV Digital POT in SOT-23 with WiperLock™ Technology”
“6-Pin, 8-Bit Flash Microcontrollers”
Data Sheet (DS41239)
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
• Development Systems Information Line
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.
Technical support is available through the web site at: http://support.microchip.com
Preface
DOCUMENT REVISION HISTORY
Revision B (December 2005)
• Updated to include MCP401X devices
• Enhancement of Operation Description
• Added Appendix C. “Using the BFMP Programmer to Power the Board” -
Programming the MCP402X Digital Potentiometer Evaluation Board
• Added Appendix D. “Potential Programming Issue of the MCP402XEV”- A
description of potential programming issues (and their solutions) with the
MCP402X Digital Potentiometer Evaluation Board
This chapter provides an overview of the MCP402X Digital Potentiometer Evaluation
Board and covers the following topics:
• What is the MCP402X Digital Potentiometer Evaluation Board?
• What the MCP402X Digital Potentiometer Evaluation Board includes
1.2WHAT IS THE MCP402X DIGITAL POTENTIOMETER EVALUATION BOARD?
The MCP402X Digital Potentiometer Evaluation Board (MCP402XEV) allows the
system designer to quickly evaluate the operation of Microchip Technology’s
MCP401X/2X Digital Potentiometer products.
The MCP402X Digital Potentiometer Evaluation Board PCB was designed to support:
• 8-pin, 150 mil SOIC MCP4021-XXX/SN devices
• SOT-23-6 MCP4022-XXX/OT devices
• SOT-23-6 MCP4023-XXX/OT devices
• SOT-23-5 MCP4024-XXX/OT devices
• 8-pin, 150 mil SOIC MCP4011-XXX/SN devices
• SOT-23-6 MCP4012-XXX/OT devices
• SOT-23-6 MCP4013-XXX/OT devices
• SOT-23-5 MCP4014-XXX/OT devices
In addition to supporting the MCP401X/2X, the MCP402XEV also utilizes the SOT-23-6
PIC10F20X microcontroller.
The PIC10F20X is supplied with example firmware that debounces the INCR and
DECR push buttons and generates the simple U/D
MCP401X/2X to increment and decrement the potentiometer’s wiper. It also generates
the simple U/D
potentiometer’s wiper.
protocol required by the MCP402X to lock and unlock the
The MCP402X Digital Potentiometer Evaluation Board provides a tested,
out-of-the-box example of a MCP401X/2X application. The circuit description is
described in Section 2.2 “PCB Description”, while the test and operating instructions
are described in Section 2.3 “Test and Operating Instructions”. A supplied blank
PCB allows rapid prototyping of the designer’s specific MCP401X/2X device, along
with other desired passive components (resistor and capacitors) and connection posts.
2.2PCB DESCRIPTION
The MCP402X Digital Potentiometer Evaluation Board has the following features:
• 150 mil, 8-pin SOIC pinout (U1) supports the MCP4021 and MCP4011 devices
• SOT-23-6 pinout (U2) supports the MCP4022/23/24 and MCP4012/13/14 devices
• SOT-23-6 pinout (U3) supports the PIC10F20X devices
• Connection terminals can be left unpopulated for easy connection using small
alligator clip leads (clamped across the edge of the board) or populated with either
through-hole or surface-mount terminals
• Footprints for optional passive components for:
- Power supply filtering
- Device bypass capacitor
- Terminal “A” pull-up resistor
- Terminal “B” pull-down resistor
• Footprints for two switches:
- INCR button operation can be detected by the PIC10F20X to generate
Increment commands (move wiper toward terminal A)
- DECR button operation can be detected by the PIC10F20X to generate
Decrement commands (move wiper toward terminal B)
• Button sequence instructions are printed on the back of the PCB
Appendix A.2 “Schematic” illustrates the schematic for the MCP402XEV.
MCP401X/2X EVALUATION
BOARD USER’S GUIDE
Note:The PIC10F20X firmware (00066_MCP402XEV.HEX) must be
programmed into the microcontroller before the MCP402XEV is functional.
The MCP4021/11-XXXI/SN is an 8-pin digital potentiometer device with terminals A, B
and W available on the device pins. Footprint U1 supports the 150 mil SOIC package.
Resistors R2 and R3 are 2.5 k
MCP4021-103I/SN digital potentiometer. This creates a “windowed” voltage divider
with a transfer function illustrated in Equation 2-1.
EQUATION 2-1:WINDOWED POTENTIOMETER – VOLTAGE DIVIDER
CALCULATION
V
wiper
Note 1:DO NOT populate U2 if using U1.
2:The MCP4011 has high-voltage tolerant pins and, therefore, accepts
high-voltage Increment and Decrement commands. Since this device is
nonvolatile, the WiperLock™ Technology feature is not present.
The MCP4022/12-XXXI/OT is a 6-pin, stand-alone digital rheostat with terminals A and
W available on the device pins. Footprint U2 supports the SOT-23-6 package. An
“INCR” command moves the wiper toward terminal A, thus causing the resistance
across the rheostat to decrease. A “DECR” command moves the wiper toward terminal
B, thus causing the resistance across the rheostat to increase.
Note 1:DO NOT populate U1 if using U2.
2:The included MCP4021 digital potentiometer samples could be used to
evaluate the MCP4022 simply by not populating R3 and letting terminal
B float.
3:The MCP4012 has high-voltage tolerant pins and, therefore, accepts
high-voltage Increment and Decrement commands. Since this device is
nonvolatile, the WiperLock™ Technology feature is not present.
The MCP4023/13-XXXI/OT is a 6-pin, grounded digital potentiometer with terminals A
and W available on the device pins. Footprint U2 supports the SOT-23-6 package.
Populating R2 will create a voltage divider with a transfer function illustrated in
Equation 2-2.
EQUATION 2-2:GROUNDED POTENTIOMETER – VOLTAGE DIVIDER
CALCULATION
V
wiper
VDDRwb⋅
-------------------------R2 R
+
5.0V d 10k
-----------------------------------------------
==
nom
Where:
d = the wiper setting (0 to 63)
Note 1:DO NOT populate U1 if using U2.
2:The included MCP4021 digital potentiometer samples could be used to
evaluate the MCP4023 simply by shorting terminal B to GND.
3:The MCP4013 has high-voltage tolerant pins and, therefore, accepts
high-voltage Increment and Decrement commands. Since this device is
nonvolatile, the WiperLock™ Technology feature is not present.
⋅63⁄
()
⋅
2.5k10k+
2.2.4Evaluating the MCP4024 and MCP4014
The MCP4024/14-xxxI/OT is a 5-pin, grounded digital rheostat with the W terminals
available on the device pins. Footprint U2 supports the SOT-23-5 package. An “INCR”
command moves the wiper toward terminal A, thus causing the resistance across the
rheostat to increase. A “DECR” command moves the wiper toward terminal B, thus
causing the resistance across the rheostat to decrease.
Note 1:DO NOT populate U1 if using U2.
2:The included MCP4021 digital potentiometer samples could be used to
evaluate the MCP4024 simply by not populating R
float and by shorting terminal B to GND.
3:The MCP4014 has high-voltage tolerant pins and, therefore, accepts
high-voltage Increment and Decrement commands. Since this device is
nonvolatile, the WiperLock™ Technology feature is not present.
The populated PCB is configured to create a voltage divider from VDD to VSS using a
2.5 kΩ pull-up resistor (R2), the MCP4021-103I/SN (10 kΩ) and a 2.5 kΩ pull-down
resistor (R3). To quickly evaluate the digital potentiometer’s performance, the following
test equipment is required:
• 2.7V to 5.5V power supply
• Voltmeter or Digital Multimeter (DMM)
Figure 2-1 shows the Digital Potentiometer Evaluation Board PCB, components and
the connection points that will be used in the step-by-step demonstration.