MCP3424 Evaluation Board User’s Guide © 2008 Microchip Technology Inc.
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.
MCP3424 EVALUATION BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 1 Introduction............................................................................................................ 1 Document Layout .................................................................................................. 1 Conventions Used in this Guide ...................................................
MCP3424 Evaluation Board User’s Guide NOTES: DS51737A-page iv © 2008 Microchip Technology Inc.
MCP3424 EVALUATION BOARD USER’S GUIDE 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.
MCP3424 Evaluation Board User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler...
Preface RECOMMENDED READING This user's guide describes how to use MCP3424 Evaluation Board. Other useful documents are listed below. 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.
MCP3424 Evaluation Board User’s Guide NOTES: DS51737A-page 4 © 2008 Microchip Technology Inc.
MCP3424 EVALUATION BOARD USER’S GUIDE Chapter 1. Quick Start Instructions 1.1 INTRODUCTION The following sections provide an overview of the MCP3424 Evaluation Board and demonstrate how to use it with using the PICkit™ Serial Analyzer (P/N: DV164122). The following topics are covered: • Description of the MCP3424 Evaluation Board • How to use MCP3424 Evaluation Board with the PICkit Serial Analyzer 1.
MCP3424 Evaluation Board User’s Guide FIGURE 1-1: 1.3 Front View of the MCP3424 Evaluation Board. GETTING STARTED WITH PICKIT SERIAL ANALYZER Figure 1-1 shows the MCP3424 Evaluation Board, and Figure 1-2 shows the MCP3424 and PICkit Serial Analyzer. The following describes how to use them together: 1. Connect the MCP3424 Evaluation Board’s 6-pin socket to the PICkit Serial Analyzer as shown in Figure 1-2. 2. Connect the oscilloscope probes to the SCL and SDA test pins (optional). 3.
Quick Start Instructions 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 MCP3424 Data Sheet. (b) Apply the input signal after VDD is powered-up. TABLE 1-1: I2C ADDRESS BITS VS.
MCP3424 Evaluation Board User’s Guide Personal Computer USB Cable Connected between the PICkit Serial Analyzer and Personal Computer. PICkit Serial Analyzer Sensor Input Connectors MCP3424 Evaluation Board FIGURE 1-2: MCP3424 Evaluation Board with the PICkit Serial Analyzer. 1.3.1 PICkit Serial Analyzer PC Software Setup for the MCP3424 Evaluation Board The following steps describe how to set up and use the PICkit Serial Analyzer PC Graphic User Interface (GUI). 1.
Quick Start Instructions 4. Select the Communication Mode type: I2C Master, and click the Next button. © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide 5. Select 100 kHz or 400 kHz. Either one will be fine. Click the Next button. Note: The MCP3424 device supports the I2C bus data rate up to 3.4 MHz, but the current version of the PICkit Serial Analyzer supports the I2C bus data rate up to 400 kHz only. 6. Select No on Enable Pull-ups and click the Next button. Note: DS51737A-page 10 The MCP3424 Evaluation Board has its own pull-up resistors. © 2008 Microchip Technology Inc.
Quick Start Instructions 7. Select the VDD voltage of the MCP3424 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 your device and 5 Volts as shown below, the MCP3424 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 MCP3424 Evaluation Board is connected.
MCP3424 Evaluation Board User’s Guide 8. Click the OK button. You have made all of the PICkit Serial Analyzer Configuration Setups. You are now ready to program the MCP3424 Evaluation Board using the PICkit Serial Analyzer. DS51737A-page 12 © 2008 Microchip Technology Inc.
Quick Start Instructions 1.3.2 Creating Script Files: In order to make a communication connection between the PICkit Serial Analyzer and the MCP3424 Evaluation Board, a script file is needed. The following shows how to create script files and how to use them. • Select Communication -----> Script ---> Script Builder © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide 1.3.2.1 CREATING SCRIPT FILE FOR CONFIGURATION BYTE WRITING 1. Click on WriteBlockAddrA8 in “Example I2C Scripts” column. This will result in filling in the spaces under the Script Detail column. You can now modify the Script Detail column parameters by clicking with the right mouse button. How to modify the parameters box in Script Details: 1. Under the Script Detail box, select the item in the parameter box. 2.
Quick Start Instructions 2 Bytes to send Address Byte Configuration Byte (9C) Note: FIGURE 1-3: 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 Script file example for I2C Write Command. 1.3.2.2 SAVE THE SCRIPT FILE AND PROGRAMMING THE MCP3424 CONFIGURATION REGISTER 1. Change the 2nd and 3rd data bytes you want in the Script Detail. 2. Type in any script name (i.e.
MCP3424 Evaluation Board User’s Guide Name menu. 3. Click Save Script button. 4. Click Execute Script button. Note: At this point, the PICkit Serial transmits the I2C Write Command to the MCP3424 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.
Quick Start Instructions 1.3.3 Reading the Conversion Data using the PICkit Serial Analyzer You can read back the conversion data with the following steps. 1.3.3.1 1. CREATING SCRIPT FILE TO READ CONVERSION DATA 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.
MCP3424 Evaluation Board User’s Guide Address Byte Requesting 5 Bytes 3. Type in any script name (i.e., MCP3424_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 I2C Read Command to the MCP3424 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.
Quick Start Instructions Requesting 5 Bytes Reading Data using a Read Command 5th Byte: Repeated Byte for Configuration byte 4th byte: Configuration Byte (note that RDYbit is “0”) 3rd byte: Data Byte 2nd byte: Data Byte 1st byte: Data Byte Results: Output code: F907 in hex ( = 63751 in decimal) Output Voltage: 63751 x 15.625 µV (LSB) = 0.996 Volt with PGA = 1 PGA FIGURE 1-5: Reading Conversion Results: Note that the Input = 0.996V is applied at CH1. The reading indicates the measured value is 0.
MCP3424 Evaluation Board User’s Guide Zoom-in Data Bytes = 00F907 (hex) (a) Read command and outputs. The 3 data bytes are zoomed in for better clarity. Zoom-in 4th Byte 5th Byte Configuration Byte (4th) and Repeated Configuration Byte (5th) (b) Read command and outputs. The last two data bytes are zoomed in for better clarity. FIGURE 1-6: 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.
Quick Start Instructions 1.4 EXPERIMENT WITH INPUTS OTHER THAN CH1 Repeat Section 1.3.2 “Creating Script Files:” to Section 1.3.3 “Reading the Conversion Data using the PICkit Serial Analyzer” for the input channels 2, 3, and 4. © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide NOTES: DS51737A-page 22 © 2008 Microchip Technology Inc.
MCP3424 EVALUATION BOARD USER’S GUIDE Appendix A. Schematic and Layouts A.1 INTRODUCTION This appendix contains the following schematics and layouts for the MCP3424 Evaluation Board: • • • • Board – Schematic Board – Top Layer Board – Top Metal Layer Board – Bottom Layer © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide A.2 BOARD – SCHEMATIC DS51737A-page 24 © 2008 Microchip Technology Inc.
Schematic and Layouts A.3 BOARD – TOP LAYER © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide A.4 BOARD – TOP METAL LAYER DS51737A-page 26 © 2008 Microchip Technology Inc.
Schematic and Layouts A.5 BOARD – BOTTOM LAYER © 2008 Microchip Technology Inc.
MCP3424 Evaluation Board User’s Guide A.6 BOARD – BOTTOM METAL LAYER DS51737A-page 28 © 2008 Microchip Technology Inc.
MCP3424 EVALUATION BOARD USER’S GUIDE Appendix B. Bill Of Materials (BOM) TABLE B-1: Qty BILL OF MATERIALS (BOM) Reference Description Manufacturer Panasonic® Part Number 1 C1 CAP .1UF 25V CERAMIC X7R 0805 1 C2 CAP CERAMIC 10UF 6.3V X5R 0805 Panasonic - ECG ECJ-2FB0J106K 1 D1 LED RED ORANGE CLEAR 0805 SMD LITE-ON INC LTST-C170EKT 1 PCB RoHS Compliant Bare PCB, MCP3424 Evaluation Board — 104-00215 2 R1, R3 RES 4.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.