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, PowerTool, 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
MCP3423 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 MCP3423 Evaluation Board as a
development tool to emulate and debug firmware on a target board. The manual layout
is as follows:
• Chapter 1. “Quick Start Instructions” – this chapter provides an overview of the
MCP3423 Evaluation Board and instructions on how to use the MCP3423
Evaluation Board with the PICkit Serial Analyzer.
• Appendix A. “Schematic and Layouts” – shows the schematic and layout
diagrams for the MCP3423 Evaluation Board.
• Appendix B. “Bill of Materials (BOM)” – lists the parts used to build the
This user's guide describes how to use MCP3423 Evaluation Board. Other useful
documents are listed below. The following Microchip document is 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.
MCP3422/3/4 Data Sheet, “18-Bits, Multi-Channel Delta-Sigma Analog-to-Digital
Converter with I
This data sheet provides detailed information regarding the MCP3423 product family.
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
2
C Interface and On-Board Reference” (DS22088)
Preface
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. 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 following sections provide an overview of the MCP3423 Evaluation Board and
demonstrate how to use it with the PICkit™ Serial Analyzer (P/N: DV164122).
The following topics are covered:
• Description of the MCP3423 Evaluation Board
• How to use MCP3423 Evaluation Board with the PICkit Serial Analyzer
1.2DESCRIPTION OF THE MCP3423 EVALUATION BOARD
The MCP3423 Evaluation Board (P/N MCP3423EV) contains a MCP3423 18-Bit ΔΣ
Analog-to-Digital Converter (ADC). The MCP3423 is a 2-channel 18 bit delta-sigma
ADC device with various configuration options. The board has analog input connection
pads and various test pads.
The user can connect inputs and test the conversion results using the PICkit Serial
Analyzer and its PC graphic user interface (GUI). The MCP3423 Evaluation Board has
the following interfaces:
• PICkit Serial Analyzer (P/N: DV164122) for writing configuration register bits and
reading the conversion data.
Note:The user can use this board without the PICkit Serial Analyzer as long as
the V
Board does not include MCU.
The board has test points for SDL, SDA, and analog inputs. By connecting an
oscilloscope to these test points, the user can examine the data communications
through the I
Appendix A. “Schematic and Layouts”.
, SCL, and SDA are provided through J1 connector. This Evaluation
DD
2C™
bus line and observe the resulting conversion output. Refer to
1.2.1I2C Address Bits and A0 Address Bit Selection
The I2C device code and address bits of the MCP3423 device are:
• Device Code: ‘1101’
• A2, A1, A0 Address Bits: determined by the JP2 (Adr1 pin) and JP3 (Adr0 pin).
• See Table 1-1 for the I
2
C Device Address bits and JP2 and JP3 connections.
6. Connecting the analog inputs: If you need to measure a single-ended input,
connect the unused pin (example, CHx-) to V
• Connecting the inputs: The MCP3423 Evaluation Board has input pads for two
analog input channels. You can connect all inputs at the same time and multiplex
the input channel using configuration register settings. You can also leave the
unused channel inputs floating.
7. Use the PICkit Serial Analyzer PC GUI to send I
CAUTION
Each analog input pin has an ESD diode. Certain input conditions can damage the
device. Please use the following conditions:
(a) Do not apply an input greater than the input range specified by the MCP3423 Data
Sheet.
(b)Apply the input signal after V
2
TABLE 1-1: I
C ADDRESS BITS VS. JP2 AND JP3 CONNECTORS
is powered-up.
DD
.
SS
2
C write and read commands.
I2C Device Address
Bits
110 1 000 W
/RConnected to V
110 1 001 W/RConnected to V
110 1 010 W
/RConnected to V
110 1 100 W/RConnected to V
110 1 101 W/RConnected to V
110 1 110 W
/RConnected to V
110 1 011 W/RFloat Connected to V
110 1 111 W/RFloatConnected to V
JP2 (Adr1 Pin) JP3 (Adr0 Pin)
SS
SS
SS
DD
DD
DD
Connected to V
Float
Connected to V
Connected to V
Float
Connected to V
SS
DD
SS
DD
SS
DD
110 1 000 W/RFloatFloat
Note 1: W
/R bit = “0” for writing, “1” for reading.
2: Float: (a) Leave pin without connecting to anything, or (b) apply Addr_Float voltage.
6. In the Device Pullups window, select No on “Enable Pull-ups” and click the Next
button.
Note:The MCP3423 Evaluation Board has its own pull-up resistors.
FIGURE 1-6:Step 3 - Device Pullups window.
7. In this step, you have to select the V
Board, then click the Next button.
voltage of the MCP3423 Evaluation
DD
Case 1: When you use VDD from the PICkit Serial Analyzer:
If you choose PICkit Serial will power your d evice and 5 Volts as shown in
Figure 1-7, the MCP3423 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 MCP3423 Evaluation Board is connected.
Case 2: When you use your own VDD:
You can also provide your own VDD voltage by applying a VDD voltage at VD1
test point. In this case, make sure that the JP1 jumper is disconnected.
In order to make a communication connection between the PICkit Serial Analyzer and
the MCP3423 Evaluation Board, a script file is needed. Figure 1-9 shows how to create
script files and how to use them.
• In the PICkit Serial Analyzer window, select from the menu Communication
Script>Script Builder .
s>
FIGURE 1-9:Creating a script file with Script Builder.
1.3.2.1CREATING 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.
You can now modify the “Script Detail” column parameters by right-clicking the
mouse.
How to modify the parameters box in Script Details:
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. These are the options available for the parameter selected.
3. Select the desired option and delete or insert the parameter box.
4. Keep the parameters in order as shown in Figure 1-10:
Note:All six parameters above must be listed in order. The parameter above
marked with * character are not modifiable. Address bits (A2, A1, A0) =
(1,1,0) if both JP2 and JP3 are tied to V
. You can use different address
DD
bits by rearranging the connectors. See MCP3423 Data Sheet for more
information on address bit sections.
Page 19
Quick Start Instructions
Address Byte
Configuration Byte
(9C)
Note: The “9C” in the configuration byte selects the following options:
- Conversion Mode: Continuous Conversion
- Channel Selection: Channel 1
- Bit Resolution: 18 bits
- Gain Selection: 1x
2 Bytes to send
2 Bytes to send
FIGURE 1-11:Script file example for I2C Write Command.
1.3.2.2SAVE THE SCRIPT FILE AND PROGRAMMING THE MCP3423
CONFIGURATION REGISTER
1. Change the 2
nd
and 3rd data bytes you want in the Script Detail.
2. Type in any script name (i.e., MCP3423_Write) 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 I
2
C Write Command to the
MCP3423 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
including the order of parameters under the “Script Detail” column, and try
again until the “Busy” LED turns OFF immediately after sending the I
command.
(a) The device
does not
acknowledge the
write command.
(b) Send a
General Call
Latch Command.
(c) The device
now acknowledge
the command.
1.3.3Trouble Shooting: If the device does not acknowledge the
commands
If the device is powered up initially with unstable VDD from the PICKit Serial, there is a
chance that the device can latch a wrong address bits from the external address pins,
and therefore it may not acknowledge the command bytes correctly since the address
bits are not matched. In this case, send a General Call Latch Command after the V
is stabilized (after about 20 seconds the PICKit Serial is powered). See the example in
Figure 1-13. Another method is power-up the PICKit Serial first by connecting to the
PC, then insert the MCP3423 EV board to the PICKit Serial about 20 seconds later.
DD
FIGURE 1-13:Examples when the device is not acknowledging the write command. Send the
General Call Latch Command when the V
This means there is one byte for address
Address byte with W
/R bit = 1101-1101
5 bytes to read
5
*
*
*
*
1.3.4Reading the Conversion Data using the PICkit Serial Analyzer
You can read back the conversion data with the following steps.
1.3.4.1CREATING SCRIPT FILE TO READ CONVERSION DATA
1. Click on ReadAddrA8 in “Example I2C Scripts” column.
This will result in filling in the spaces under “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 right-click the mouse in
the parameter box. You can delete the parameter box or add a new one.
2. Make sure you have the “Script Detail” parameters listed in order as follows:
Note:All seven parameters above must be listed in order. The parameters above
marked with * character are not modifiable.
Address bits (A2, A1, A0) = (1,1,0) if both JP2 and JP3 are tied to V
can use different address bits by rearranging the JP1 and JP2 connectors.
See MCP3423 Data Sheet for more information on address bit selections.
FIGURE 1-14:Script File sample to read conversion data.
3. Type in any script name (i.e., MCP3423_Read) in the space below the “Script
Name” menu.
4. Click Save Script button.
5. Click Execute Script button.
Note:At this point, the PICkit Serial transmits the I
MCP3423 device. The saved file name will appear in “Users I2C Scripts”
column, and can be re-used any time by selecting the file name.
6. 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
including the order of parameters under the “Script Detail” column, and try
again until the “Busy” LED turns OFF immediately after sending the I
command.
4th byte: Configuration Byte (note that RDYbit is “0”)
3rd byte: Data Byte
2nd byte: Data Byte
1st byte: Data Byte
Requesting
5 Bytes
Results:
Output code: F907 in hex ( = 63751 in decimal)
Output Voltage=
63751
15.625 μVLSB()
PGA
--------------------------------------------
×0.996 Volts with PGA 1==
Reading Data
using a Read Command
Note that if the differential input voltage is negative (CH- > CH+), the MSB of the first byte will be "1". In this case, the
voltage is calculated after converting the output code to 2's complement and then multiply the LSB.
See Section 4.9 of the MCP3423 Data Sheet (DS22088) for more information.
FIGURE 1-15:Reading Conversion Results: Note that the Input = 0.996V is applied to CH1. The
reading indicates the measured value is 0.996 Volts.
Configuration Byte (4th) and Repeated Configuration Byte (5th)
(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
FIGURE 1-16: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. The RDY
(repeated byte). This means the device is now in the process of new conversion and the new result is not
ready yet.
Repeat the instructions from Section 1.3.2 “Creating Script Files” to
Section 1.3.4 “Reading the Conversion Dat a using the PICkit Serial Analyzer” for