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
MCP3425 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 25 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
MCP3425 SOT23-6 Evaluation Board and instructions on how to program the
DAC register and EEPROM of the MCP4725 device.
• Appendix A. “Schematic and Layouts” – shows the schematic and layout
diagrams for the MCP3425 SOT23-6 Evaluatio n Boar d.
• Appendix B. “Bill Of Materials (BOM)” – lists the parts used to build the
MCP3425 SOT23-6 Evaluation Board.
This user's guide describes how to use the MCP3425 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.
MCP3425 Data Sheet, “16 bit Analog-to-Digital Converter with I
On-Board Reference”, DS22072
This data sheet provides detailed information regarding the MCP3425 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 MCP3425 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 MCP3425 SOT23-6 Evaluation Board
• Using MCP3425 SOT23-6 Evaluation Board with the PICkit Serial Analyzer to
evaluate the MCP3425 device.
1.2DESCRIPTION OF THE MCP3425 SOT23-6 EVALUATION BOARD
The MCP3425 SOT23-6 Evaluation Board (P/N MCP3425EV) contains a MCP3425
16-bit Delta-Sigma Analog-to-Digital Converter (ADC). The MCP3425 is an 16-bit
single channel ADC device with various options. The MCP3425 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 configuration register bits of the MCP3425 and
displays the ADC conversion values. The PICkit Serial Analyzer links between the GUI
and the MCP3425 SOT23-6 Evaluation Board and provides the I
the MCP3425 SOT23-6 Evaluation Board. The user also can use this MCP3425
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 interfaces:
• 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 to
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”.
Figure 1-1 shows the MCP3425 SOT23-6 Evaluation Board, while Figure 1-2 shows
the evaluation board and the PICkit Serial Analyzer co nn ec tio n.
The following instructions show how to use them together:
1. Connect the MCP3425 SOT23-6 Evaluation Board’s J1 pin socket to the PICkit
Serial Analyzer, as shown in Figure 1-2.
2. Connect oscilloscope probes to SCL and SDA test pins (optional).
3. V
selection: You can use the VDD from the PICkit Serial Analyzer or your own
DD
external V
(a) Connect JP1, if using V
(b) Disconnect JP1 and apply V
. You can select the VDD path using the JP1 connector:
DD
from PICkit Serial Analyzer.
DD
at the VDD pad, if you are using external VDD.
DD
Note:If you are using external V
4. Connect V
, if external VDD is used.
DD
, connect the external VDD at VDD pad.
DD
Note:Do not connect VDD if you are using the VDD from the PICkit Serial
Analyzer. The PICkit Serial Analyzer provides the V
automatically if it is
DD
connected to the PC.
5. LED D1 is turned on when V
is applied.
DD
Note:If the VDD is provided from the PICkit Serial Analyzer , then the LED may no t
be turned on until you execute a command. See Section 1.3.2.1 “Creating a Script File for Configuration Byte Writing” for executing the I
2
C
command.
6. Connecting analog inputs: If you need to measure single-ended input, connect
the unused pin (for example, V
7. Use the PICkit Serial Analyzer PC GUI to send I
-) to VSS.
IN
2
C write and read commands.
See Section 1.3.2.1 “Creating a Script File for Configuration Byte Writing”
8. Execute the PICkit Serial Analyzer Script file and obtain the ADC conversion
results. The conversion results app ear on the PICkit Serial Analyzer PC GUI. You
can also observe the conversion results using the oscilloscope.
CAUTION
The analog input pin has ESD diodes. Certain input conditions can damage the
device. Please pay attention to the following conditions:
(a) Do not apply input greater than the input rang e sp ec ifie d by th e MCP3425
data sheet.
FIGURE 1-2:MCP3425 SOT23-6 Evaluation Board with the PICkit™ Serial Analyzer.
1.3.1PICkit™ Serial Analyzer PC Software Set-Up for the MCP3425
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 MCP3425 on the
MCP3425 SOT23-6 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.
7. Select the VDD voltage of the MCP3425 SOT23-6 Evalua tion 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 MCP3425 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 MCP3425 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 VDD test
point on the board. In this case, make sure that the JP1 jumper is disconnected.
FIGURE 1-7:Step 4 - Voltage Source Selection Window.
In order to make a communication between the PICkit Serial Analyzer and the
MCP3425 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.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 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. This gives you 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 in the image below:
2
C Scripts” column.
FIGURE 1-10:Modifying Parameters in the Script Builder Window.
Note:All 6 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 this evaluation board. See the MCP3425 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 scrip t name (i.e., MCP3425_Wr_16Bit) in the sp ace below the Script
Name menu.
3. Click Save Script button.
4. Click Execute Script button.
2
Note:At this point, the PICkit Serial transmits the I
MCP3425 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 recheck the parameter values in
the order of parameters under th e “Script Detail” column. T ry again until the
“Busy” LED goes OFF immediately after executing the write command.
------> This means there is one byte to send for address
------> Address byte with W
/R bit = 1101-0001
------> 4 bytes to read
4
*
*
*
*
1.3.3Reading the Conversion Data using the PICkit Serial Analyzer
You can read back the conversion data with the following steps.
1.3.3.1CREATING A SCRIPT FILE TO READ 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 Detail
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 the “Script Detail” parameters are listed in order, as following:
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 MCP3425 SOT23-6 Evaluation Board. See the MCP3425
Data Sheet for more information on address bit selections.
FIGURE 1-13:Script File Sample to Read Conversion Data.
2. Type in any script name (i.e., MCP3425_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
MCP3425 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 recheck the parameter values in
the order of parameters under th e “Script Detail” column. T ry again until the
“Busy” LED goes OFF immediately after executing the read command.
3rd byte: Configuration Byte (note that RDYbit is “0”)
2nd byte: Data Byte
1st byte: Data Byte
Output code: 1F50 in hex ( = 8016 in decimal)
Output Voltage: 8016 x 62.5 µV (LSB) = 0.501V
Results:
(note that RDY bit returned to “1” after 4th byte)
* 1 LSB for 16 bit = 62.6 µV
* Input at CH1 = 0.501V
Note:
Requesting
4 Bytes
Reading Conversion
Data
FIGURE 1-14:Reading Conversion Results: Note that the Input = 0.501V is applied at Ch.1. The
reading indicates the measured value is 0.501V. 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.
3rd Byte
4th Byte
RDY bit
RDY bit
Quick Start Instructions
FIGURE 1-15:Read Command and Data on I2C bus. Note the RDY bit in 3rd byte is “0”. This m eans
the conversion data just read is the latest conversion data. After the RDY
RDY
bit becomes now “1” in the 4th byte (repeated byte). This m eans the de vice is now in the p rocess of a
new conversion and the latest conversion result is not ready yet.