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, MPLAB, PIC, PICmicro,
PICSTART, rfPIC, SmartShunt and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
logo, PowerCal, PowerInfo,
PowerMate, PowerT ool, REAL ICE, rfLAB, Select Mode, Total
Endurance, 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
T empe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memo ry and
analog products. In addition, Microchip’s quality system for the desig n
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.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP3421 SOT23-6 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 MC P34 21 SOT 2 3- 6 Eva lua tio n Boa rd as a
development tool to emulate and debug firmware o n a target board. The manual la yout
is as follows:
• Chapter 1. “Quick Start Instructions” – this chapter provide s an overview of the
MCP3421 SOT23-6 Evaluation Board and instructions on how to obtain the ADC
conversion results using the PICKit Serial Analyzer.
• Appendix A. “Schematic and Layouts” – shows the schematic and layout
diagrams for the MCP3421 SOT23-6 Evaluatio n Boar d.
• Appendix B. “Bill Of Materials (BOM)” – lists the parts used to build the
MCP3421 SOT23-6 Evaluation Board.
This user's guide describes how to use the MCP3421 SOT23-6 Evaluation Board with
the PICkit Serial Analyzer. The following Microchip documents are available and recommended as supplemental reference resources.
PICkit™ Serial Analyzer User’s Guide, DS51647
Consult this document for instructions on how to use the PICkit Serial Analyzer hardware
and software.
MCP3421 Data Sheet, “18-Bit Analog-to-Digital Converter with I
On-Board Reference”, DS22003
This data sheet provides detailed information regarding the MCP3421 product.
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
Preface
2
C Interface and
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. Lo cal 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 following sections provide an overview of the MCP3421 SOT23-6 Evaluation
Board and demonstrate how to use it with the PICkit™ Serial Analyzer
(P/N: DV164122).
The following topics are covered:
• Description of the MCP3421 SOT23-6 Evaluation Board
• Using MCP3421 SOT23-6 Evaluation Board with the PICkit Serial Analyzer to
evaluate the MCP3421 device
1.2DESCRIPTION OF THE MCP3421 SOT23-6 EVALUATION BOARD
The MCP3421 SOT23-6 Evaluation Board (P/N MCP3421EV) contains a MCP3421
18-bit Delta-Sigma Analog-to-Digital Converter (ADC). The MCP3421 is an 18-bit
single channel ADC device with various options. The MCP3421 SOT23-6 Evaluation
Board has analog input connection p ads and V
can connect any sensor input signal to this evaluation board and test the ADC
conversion results. The PICkit Serial Analyzer’s PC graphic user interface (GUI)
provides the user’s interface for writing configuration register bits of the MCP3421 and
displays the ADC conversion values. The PICkit Serial Analyzer links between the GUI
and the MCP3421 SOT23-6 Evaluation Board, and provides the I
PC to the MCP3421 SOT23-6 Evaluation Board. The user also can use this MCP3421
SOT23-6 Evaluation Board without the PICkit Serial Analyzer by providing the I
communication signal to the SDA and SCL test pads on the board.
This evaluation board has the following interface:
• PICkit Serial Analyzer (P/N: DV164122) for writing configuration register bits and
reading the conversion data.
, SDA, and SCL test pads. The user
DD
2
C communication
2
C
Note:The user can use this board without the PICkit Serial Analyzer as long as
the V
does not include MCU.
The user can monitor the I
SDA and SCL test pads. Refer to Appendix A. “Schematic and Layouts”.
, SCL, and SDA are provided to the board. This evaluation board
DD
2C
communications by connecting an oscilloscope to the
1.2.1I2C Address Bits
The I2C device code and address bits of the MCP3421 device on this board are
“1101000”. These bits are programmed at the factory during production.
1.3.1PICkit Serial Analyzer PC Software Set-Up for the MCP3421
SOT23-6 Evaluation Board
The following steps describe how to set up and use the PICkit Serial Analyzer PC
Graphic User Interface (GUI) to write the configuration bits of the MCP3421 on the
Evaluation Board and read the ADC conversion results.
1. Install the PICkit Serial Analyzer software onto your personal computer (PC).
2. Connect the USB cable between the PICkit Serial Analyzer and your PC.
3. Run the PICkit Serial PC Software. The following graphic user interface (GUI) will
appear. Click the Next button and follow the instructions.
FIGURE 1-3:PICkit Serial Analyzer Configuration Wizard Welcome Window.
4. Select the I
FIGURE 1-4:Step 1 - Communication Mode Selection.
2
C Master option as communication mode, and click the Next button.
7. Select the VDD voltage of the MCP3421 SOT23-6 Evaluation Board and click the
Next button.
Case 1: When you use VDD from the PICkit Serial Analyzer:
If you choose PICkit Serial will power my device and 5 Volt as shown below,
the MCP3421 SOT23-6 Evaluation Board is powered by the 5V DC from the
PICkit™ Serial Analyzer through the JP1 jumper. In this case, make sure that the
JP1 jumper on the MCP3421 SOT23-6 Evaluation Board is connected.
Case 2: When you use your own VDD:
Y ou can also provide your own VDD voltage by applying a VDD voltage at the VDD
test point on the board. In this case, make sure the JP1 jumper is disconnecte d.
FIGURE 1-7:Step 4 - Voltage Source Selection Window.
In order to make a communication between the PICkit Serial Analyzer and the
MCP3421 SOT23-6 Evaluation Board, a script file is needed. The following procedure
shows how to create script files and how to use them.
•Select Communication -----> Script ---> Script Builder
FIGURE 1-9:Creating a Script File with Script Builder.
1. To change value:
Click this box and
type a new value.
2. To delete or insert box:
Choose the box and right
3. Make sure the listed
are in the exact order
parameters in “Script Detail”
as shown here.
.
click the mouse button for
options available.
1.3.2.1CREATING A SCRIPT FILE FOR CONFIGURATION BYTE WRITING
1. Click on WriteBlockAddrA8 in “Example I
• This will result in filling in the spaces under the Script Detail column. Now you
can modify the Script Detail column parameters by clicking with the right mouse
button.
Modifying the Script Details parameters:
1. Under the Script Detail box, select the item in the parameter box.
2. Right click the mouse button and an option box appears to the right of your
selection, displaying the options that are available for the parameter selected.
3. Select the desired options (delete or insert the parameter box).
4. Keep the parameters in the same order as shown below.
2
C Scripts” column.
FIGURE 1-10:Modifying Parameters in the Script Builder Window.
------> 1st Write Byte: Address byte with W/R bit = 1101-0000
------> 2nd Write Byte: 1001-1100
*
*
*
5. Change the parameter value.
Note:All 6 parameters above must be listed in the same order as shown here.
The parameter above with * are not modifiable. Address bits
(A2, A1, A0) = (0,0,0) for this evaluation board. See the MCP3421 Data
Sheet for more information on address bit selection.
1.3.2.2SAVING THE SCRIPT FILE AND PROGRAMMING THE
CONFIGURATION REGISTER
1. Change the 2nd and 3rd data bytes you want in the Script Detail.
2. Type in any script name (i.e., MCP3421_Write) in the space below the Script
Name menu.
3. Click the Save Script button.
4. Click the Execute Script button.
2
Note:At this point, the PICkit Serial transmits the I
MCP3421 device. The saved file name will appear in Users I2C Scripts
column and can be re-used any time by selecting the file name.
5. You can also see the SCL and SDA waveforms using the oscilloscope.
Note:When you click on the “Execute Script” menu, the “Busy” LED on the PICkit
Serial Analyzer will momentarily turn on and then turn off. If the LED
remains ON, a communications problem has occurred. Remove the PICkit
Serial Analyzer from your computer and re-check the parameter values
including the order of parameters under the “Script Detail” column. Try
again until the “Busy” LED goes OFF immediately after executing the write
command.
1.3.3Reading the Conversion Data using the PICkit™ Serial Analyzer
You can read back the conversion data by following the next steps.
1.3.3.1CREATING A SCRIPT FILE TO READ THE CONVERSION DATA
1. Click on ReadAddrA8 in “Example I2C Scripts” column.
• This will result in filling in the spaces under the Script Detail column. Now you
can modify the parameter boxes (delete or insert) in the Script Det ail column with
options. The list of options will appear if you click the right mouse button at the
parameter box. You can delete the parameter box or add a new one.
• Make sure you have the “Script Detail” parameters are listed in order as
follows:
Note:All 7 parameters above must be listed in the same order as shown here.
The parameters above with * are not modifiable. Address bits
(A2, A1, A0) = (0,0,0) for the MCP3421 in this evaluation board. See the
MCP3421 Data Sheet for more information on address bit selection.
FIGURE 1-13:Script File Sample to Read Conversion Data.
2. Type in any script name (i.e., MCP3421_Read) in the space below the Script
Name menu.
3. Click Save Script button.
4. Click Execute Script button.
Note:At this point, the PICkit™ Serial transmits the I2C Read Command to the
MCP3421 device. The saved file name will appear in Users I2C Scripts
column and can be re-used any time by selecting the file name.
5. You can also see the SCL and SDA waveforms using the oscilloscope.
Note:When you click on the “Execute Script” menu, the “Busy” LED on the PICkit
Serial Analyzer will momentarily turn on and then turn off. If the LED
remains ON, a communications problem has occurred. Remove the PICkit
Serial Analyzer from your computer and re-check the parameter values
including the order of parameters under the “Script Detail” column. Try
again until the “Busy” LED goes OFF immediately after executin g the read
command.
4th byte: Configuration Byte (note that RDYbit is “0”)
3rd byte: Data Byte
2nd byte: Data Byte
1st byte: Data Byte
Output code: 101AD in hex (= 65965 in decimal)
Output Voltage: 65865 x 15.625 mV (LSB) = 1.0307 V with PGA = 1
Results:
(note that RDY bit returned to “1” after 4th byte)
Note:
* 1 LSB with 18 bit resolution option: 15.625 µV
Reading Conversion
Data
Requesting
5 Bytes
PGA
FIGURE 1-14:Reading Conversion Results: Note that the single ended Inp ut = 1.0307V is applied at
Ch.1. The reading indicates the measured value is 1.0307V. See Figure 1-15 for waveforms.
Configuration Byte and Repeated Configuration Byte
(a) Read command and outputs. The 3 data bytes are zoomed in for better clarity.
(b) Read command and outputs. The last two data bytes are zoomed in for better clarity.
4th Byte
5th Byte
RDY bit
RDY bit
Quick Start Instructions
FIGURE 1-15:Read Command and Data on I2C bus. Note the RDY bit in 4th byte is “0”. This means
the conversion data just read is the latest conversion data . Af ter the RDY
RDY
bit becomes “1” in the 5th byte (repeated byte). This means the device is now in the process of a new
bit is read out at the 4th byte, the
conversion and the latest conversion result is not ready yet.