MCP3422 Evaluation Board for PICkit™ Serial 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.
MCP3422 EVALUATION BOARD FOR PICkit™ SERIAL USER’S GUIDE Table of Contents Preface ........................................................................................................................... 1 Introduction............................................................................................................ 1 Document Layout .................................................................................................. 1 Conventions Used in this Guide ................................
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide NOTES: DS51781A-page iv © 2008 Microchip Technology Inc.
MCP3422 EVALUATION BOARD FOR PICkit™ SERIAL 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.
MCP3422 Evaluation Board for PICkit™ Serial 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 MCP3422 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.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide NOTES: DS51781A-page 4 © 2008 Microchip Technology Inc.
MCP3422 EVALUATION BOARD FOR PICkit™ SERIAL USER’S GUIDE Chapter 1. Quick Start Instructions 1.1 INTRODUCTION The following sections provide an overview of the MCP3422 Evaluation Board and demonstrate how to use it with the PICkit™ Serial Analyzer (P/N: DV164122). The following topics are covered: • Description of the MCP3422 Evaluation Board • How to use the MCP3422 Evaluation Board with the PICkit Serial Analyzer 1.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide FIGURE 1-1: 1.3 Front View of the MCP3422 Evaluation Board. GETTING STARTED WITH THE PICKIT SERIAL ANALYZER Figure 1-1 shows the MCP3422 Evaluation Board and Figure 1-2 shows the MCP3422 Evaluation Board and PICkit Serial Analyzer. The following instructions describe how to use them together: 1. Connect the MCP3422 Evaluation Board’s 6-pin socket to the PICkit Serial Analyzer, as shown in Figure 1-2. 2.
Quick Start Instructions 6. Use the PICkit Serial Analyzer PC GUI to send I2C write and read commands. CAUTION Each analog input pin has an ESD diode. Certain input conditions can damage the device. Please follow the conditions below: (a) Do not apply an input greater than the input range specified by the MCP3422 Data Sheet. (b) Apply the input signal after VDD is powered-up.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 1.3.1 PICkit Serial Analyzer PC Software Setup for the MCP3422 Evaluation Board The following steps describe how to set up and use the PICkit Serial Analyzer PC Graphic User Interface (GUI). 1. Install the PICkit Serial Analyzer software onto your personal computer (PC). 2. Connect the USB cable between the PICkit Serial Analyzer and the PC. 3. Run the PICkit Serial PC Software. The following graphic user interface (GUI) will appear.
Quick Start Instructions 4. Select the Communication Mode type: I2C Master, and click the Next button. FIGURE 1-4: Step 1 - Communication Mode Selection. 5. Select 100 kHz or 400 kHz. Either one will be fine. Click the Next button. FIGURE 1-5: Note: © 2008 Microchip Technology Inc. Step 2 - I2C Communication Speed Window. The MCP3422 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.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 6. Select No on the Enable Pull-ups screen and click the Next button. Note: The MCP3422 Evaluation Board has its own pull-up resistors. FIGURE 1-6: Step 3 - Device Pullups Window. 7. Select the VDD voltage of the MCP3422 Evaluation Board and click the Next button.
Quick Start Instructions FIGURE 1-7: Step 4 - Voltage Source Selection Window. 8. Click the OK button. You have made all the PICkit Serial Analyzer configuration setups. You are now ready to program the MCP3422 Evaluation Board using the PICkit Serial Analyzer. FIGURE 1-8: © 2008 Microchip Technology Inc. Configuration Wizard - Finishing Step.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 1.3.2 Creating Script Files In order to make a communication connection between the PICkit Serial Analyzer and the MCP3422 Evaluation Board, a script file is needed. The following procedure shows how to create script files and how to use them. • In the PICkit Serial Analyzer window, select from the menu Communications> Script>Script Builder (Figure 1-9). FIGURE 1-9: Creating a Script File with Script Builder. 1.3.2.
Quick Start Instructions 1. 2. 3. FIGURE 1-10: To change value: • Click this box and type a new number. To delete or insert box: • Choose the box and right-click the mouse button for options available Make sure the listed parameters in “Script Detail” should be in exact order as shown here. Modifying Parameters in Script Builder Window. 4. Change the parameter value. Script Detail I2CSTART I2CWRTBYT 02 D0 9C I2CSTOP Note: © 2008 Microchip Technology Inc.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 2 Bytes to send Address Byte Configuration Byte (9C) Note: FIGURE 1-11: DS51781A-page 14 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 the I2C Write Command. © 2008 Microchip Technology Inc.
Quick Start Instructions 1.3.2.2 SAVING THE SCRIPT FILE AND PROGRAMMING THE MCP3422 CONFIGURATION REGISTER 1. Change the 2nd and 3rd data bytes you want in the Script Detail. 2. Type in any script name (i.e., MCP3422_Write) in the space below the Script Name menu. 3. Click the Save Script button. 4. Click the Execute Script button. . Note: At this point, the PICkit Serial transmits the I2C Write Command to the MCP3422 device.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 1.3.3 Reading the Conversion Data using the PICkit Serial Analyzer You can read back the conversion data by following the next steps. 1.3.3.1 1. CREATING A SCRIPT FILE TO READ THE CONVERSION DATA 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.
Quick Start Instructions 3. Type in any script name (i.e., MCP3422_Read) in the space below the Script Name menu. 4. Click the Save Script button. 5. Click the Execute Script button. . Note: At this point, the PICkit Serial transmits the I2C Read Command to the MCP3422 device. The saved file name will appear in the “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.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide Address Byte 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= 15.625 μV ( LSB ) 63751 × -------------------------------------------- = 0.
Quick Start Instructions 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-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.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide 1.3.4 Experiment with inputs at CH2 Repeat instructions from Section 1.3.2 “Creating Script Files” to Section 1.3.3 “Reading the Conversion Data using the PICkit Serial Analyzer” for the Channel 2 input. Note: To write the configuration register for channel 2 input, you can just use the “MCP3422_Write” file and modify the configuration byte data only. To read the conversion data, use the same script file for all channels.
MCP3422 EVALUATION BOARD FOR PICkit™ SERIAL USER’S GUIDE Appendix A. Schematic and Layouts A.1 INTRODUCTION This appendix contains the following schematics and layouts for the MCP3422 Evaluation Board: • • • • Board – Schematic Board – Top Layer Board – Top Metal Layer Board – Bottom Layer © 2008 Microchip Technology Inc.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide A.2 BOARD SCHEMATIC DS51781A-page 22 © 2008 Microchip Technology Inc.
Schematic and Layouts A.3 BOARD – TOP LAYER © 2008 Microchip Technology Inc.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide A.4 BOARD – TOP METAL LAYER DS51781A-page 24 © 2008 Microchip Technology Inc.
Schematic and Layouts A.5 BOARD – BOTTOM LAYER © 2008 Microchip Technology Inc.
MCP3422 Evaluation Board for PICkit™ Serial User’s Guide NOTES: DS51781A-page 26 © 2008 Microchip Technology Inc.
MCP3422 EVALUATION BOARD FOR PICkit™ SERIAL USER’S GUIDE Appendix B. Bill Of Materials (BOM) TABLE B-1: Qty BILL OF MATERIALS Reference Description Manufacturer Part Number 1 C1 CAP .1UF 25V CERAMIC X7R 0805 Panasonic® - ECG ECJ-2VB1E104K 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 J1 CONN HEADER 6POS .100 R/A TIN Molex®/Waldom® Electronics Corp 22-05-2061 1 JP1 CONN HEADER 2POS .
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.