Home
MCP3422 Evaluation Board for PICkit™ Serial User's Guide
Contents
1. gt 2nd Write Byte Configuration Byte 1001 1100 I2CSTOP Note All 6 parameters above must be listed in the same order as shown here The parameters above with are not modifiable 2008 Microchip Technology Inc DS51781A page 13 MCP3422 Evaluation Board for PICkit Serial User s Guide adi PICkit Serial 12C Master Mode Communications PICkit Serial Analyzer Demo Boards User Defined Templates View Window View Basic Communications Basic Operations Reset Script Builder EI x Example I2C Scripts 7 Script Detail User 12C Scripts Sue I2CSTART MCP3422_ Wie MCP3422_Write Wite ddrhs WriteBlockAddA8 I2CWRTBYT ReadBlock ddr 8 2 x D 0 Execute Script SE x Clear Script Address Byte l2csTOP Del User Scripts Configuration Byte 9C Show Array x 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 FIGURE 1 11 Script File Example for the Write Command DS51781A page 14 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 Sc
2. 2008 Microchip Technology Inc MICROCHIP MCP3422 Evaluation Board for PICkit M Serial User s Guide 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 t
3. S GUIDE Table of Contents Pr face E A A 1 WALIKO Yo LU Toa AOA pe a te na mais 1 DocutrienbELayolll teinte 1 Conventions Used in this Guide oe nement ent tentant 2 Hecomiriended Headlrg iere err ere ontarien 3 The Microchip Web Site nt Cote erra e n adeb piedra deae Eon un t Pese e dau 3 GUSIOIT Sr SUDDOE s cedet dtd ated A AN ted deese edo as 3 Document Revision History reir ei prd ep mere DE Fu dk qx aues 3 Chapter 1 Quick Start Instructions 1 1 o iere UTejt o a rn 5 1 2 Description of the MCP3422 Evaluation Board 5 1 3 Getting Started with the PICkit Serial Analyzer 6 Appendix A Schematic and Layouts Al IntroductiOn P 21 A2 Board 4 n o o t a eui a E Oe pa eU np 22 Ax Board op Eye datore tre tee 23 AA Board Metal Layer Ani tuse dr era pied 24 AS Board Bottom Layer iui E pi nn nm ert ein Mas e ncs aD o d 25 Appendix B Bill Of Materials BOM Worldwide Sales and Service eene nennen enne eene nnn 28 2008 Microchip Technology Inc DS51781A page iii MCP3422 Evaluation Board for PICkit Serial User s Guide NOTES DS51781A page iv 2008 Microchip Technology Inc MCP3422 EVALUATION BOARD FOR MICROCHIP PICkit SERIAL U
4. 1101 A2 A1 AO Address Bits the MCP3422 device in the MCP3422 Evaluation Board uses default setting A2 A1 AO 0 0 0 Address Byte 1101000R W 2008 Microchip Technology Inc DS51781A page 5 MCP3422 Evaluation Board for PICkit Serial User s Guide ven 102 00228 MCP3422 Eval board JP1 MICROCHIP m CH1 CH2 4 U1 MCP3422 e GND FRY CH1 FIGURE 1 1 Front View of the MCP3422 Evaluation Board 1 3 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 Connect the oscilloscope probes to the SCL and SDA test pins optional 3 VppSelection You can use the Vpp from the PICkit Serial Analyzer or you can use your own external Vpp The JP1 connector selects the Vpp path a Connect JP1 if using Vpp from PICkit Serial Analyzer b Disconnect JP1 and apply Vpp at VDD1 pin if you are using an external Vpp 4 Connecting Vpp LED D1 turns on when Vpp is applied The PICkit Serial Analyzer will provide Vpp automatically if it is connected to the PC Make sure LED D1 turns on when you execute the command using the PICkit Serial Analyzer 5 Connectin
5. 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 gt Script gt Script Builder Figure 1 9 8 PICkit Serial 12C Master Mode Communications PICkit Serial Analyzer Demo Boards User Defined Templates View Window Help Basic Operations sic Operations Reset 2C M Sut Bulder ums Bl Update Script Execute Bl Executive Error Bl Communication Error Bl 2 Error BitRate 100 0 kHz 1 Source Voltage 4 9 File Edit Clear Data Line Voltage 4 8 Clock Line Voltage 4 74 4 Transactions 02 13 2007 4 59 14 PM Welcome to PICkit Serial version 2 0 1 0 Found PICkitS dll Ver 1 3 0 0 Found PICkit Serial Analyzer FW Ver 0 0108 USB control block updated with preference data Basic View Set FIGURE 1 9 Creating a Script File with Script Builder 1 3 2 1 CREATING A SCRIPT FILE FOR CONFIGURATION BYTE WRITING 1 Click on WriteBlockAddrA8 in Example I C 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 right clicking the mouse How to modify the parame
6. static Command line options Opa Opa Bit values 0 1 Constants OxFF A Italic Courier New A variable argument file o Where file can be any valid filename Square brackets Optional arguments mcci8 options file options Curly brackets and pipe Choice of mutually exclusive errorlevel 011 character arguments an OR selection Ellipses Replaces repeated text var_name var name Represents code supplied by void main void user DS51781A page 2 2008 Microchip Technology Inc 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 Data Sheet 18 Bit Multi Channel AX Analog to Digital Converter with PCT Interface and On Board Reference DS22088 This data sheet provides detailed information regarding the MCP3422 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 Suppo
7. ASIA PACIFIC India Bangalore Tel 91 80 4182 8400 Fax 91 80 4182 8422 India New Delhi Tel 91 11 4160 8631 Fax 91 11 4160 8632 India Pune Tel 91 20 2566 1512 Fax 91 20 2566 1513 Japan Yokohama Tel 81 45 471 6166 Fax 81 45 471 6122 Korea Daegu Tel 82 53 744 4301 Fax 82 53 744 4302 Korea Seoul Tel 82 2 554 7200 Fax 82 2 558 5932 or 82 2 558 5934 Malaysia Kuala Lumpur Tel 60 3 6201 9857 Fax 60 3 6201 9859 Malaysia Penang Tel 60 4 227 8870 Fax 60 4 227 4068 Philippines Manila Tel 63 2 634 9065 Fax 63 2 634 9069 Singapore Tel 65 6334 8870 Fax 65 6334 8850 Taiwan Hsin Chu Tel 886 3 572 9526 Fax 886 3 572 6459 Taiwan Kaohsiung Tel 886 7 536 4818 Fax 886 7 536 4803 Taiwan Taipei Tel 886 2 2500 6610 Fax 886 2 2508 0102 Thailand Bangkok Tel 66 2 694 1351 Fax 66 2 694 1350 EUROPE Austria Wels Tel 43 7242 2244 39 Fax 43 7242 2244 393 Denmark Copenhagen Tel 45 4450 2828 Fax 45 4485 2829 France Paris Tel 33 1 69 53 63 20 Fax 33 1 69 30 90 79 Germany Munich Tel 49 89 627 144 0 Fax 49 89 627 144 44 Italy Milan Tel 39 0331 742611 Fax 39 0331 466781 Netherlands Drunen Tel 31 416 690399 Fax 31 416 690340 Spain Madrid Tel 34 91 708 08 90 Fax 34 91 708 08 91 UK Wokingham Tel 44 118 921 5869 Fax 44 118 921 5820 01 02 08 DS51781A page 28 2008 Microchip Technology Inc
8. MA Tel 774 760 0087 Fax 774 760 0088 Chicago Itasca IL Tel 630 285 0071 Fax 630 285 0075 Dallas Addison TX Tel 972 818 7423 Fax 972 818 2924 Detroit Farmington Hills MI Tel 248 538 2250 Fax 248 538 2260 Kokomo Kokomo IN Tel 765 864 8360 Fax 765 864 8387 Los Angeles Mission Viejo CA Tel 949 462 9523 Fax 949 462 9608 Santa Clara Santa Clara CA Tel 408 961 6444 Fax 408 961 6445 Toronto Mississauga Ontario Canada Tel 905 673 0699 Fax 905 673 6509 ASIA PACIFIC Asia Pacific Office Suites 3707 14 37th Floor Tower 6 The Gateway Harbour City Kowloon Hong Kong Tel 852 2401 1200 Fax 852 2401 3431 Australia Sydney Tel 61 2 9868 6733 Fax 61 2 9868 6755 China Beijing Tel 86 10 8528 2100 Fax 86 10 8528 2104 China Chengdu Tel 86 28 8665 5511 Fax 86 28 8665 7889 China Hong Kong SAR Tel 852 2401 1200 Fax 852 2401 3431 China Nanjing Tel 86 25 8473 2460 Fax 86 25 8473 2470 China Qingdao Tel 86 532 8502 7355 Fax 86 532 8502 7205 China Shanghai Tel 86 21 5407 5533 Fax 86 21 5407 5066 China Shenyang Tel 86 24 2334 2829 Fax 86 24 2334 2393 China Shenzhen Tel 86 755 8203 2660 Fax 86 755 8203 1760 China Wuhan Tel 86 27 5980 5300 Fax 86 27 5980 5118 China Xiamen Tel 86 592 2388138 Fax 86 592 2388130 China Xian Tel 86 29 8833 7252 Fax 86 29 8833 7256 China Zhuhai Tel 86 756 3210040 Fax 86 756 3210049
9. MCP3422 Evaluation Board and instructions on how to use theMCP3422 Evaluation Board with PICKit Serial Analyzer Appendix A Schematic and Layouts shows the schematic and layout diagrams for the MCP3422 Evaluation Board Appendix B Bill Of Materials BOM lists the parts used to build the MCP3422 Evaluation Board 2008 Microchip Technology Inc DS51781A page 1 MCP3422 Evaluation Board for PICkit Serial User s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions DOCUMENTATION CONVENTIONS Description Represents Examples Arial font Italic characters Referenced books MPLAB IDE User s Guide Emphasized text is the only compiler Initial caps A window the Output window A dialog the Settings dialog A menu selection select Enable Programmer Quotes A field name in a window or Save project before build dialog Underlined italic text with A menu path File gt Save right angle bracket Bold characters A dialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format 4 b0010 2 hF1 where N is the total number of digits R is the radix and n is a digit Text in angle brackets gt A key on the keyboard Press Enter F1 Courier New font Plain Courier New Sample source code define START Filenames autoexec bat File paths c mcci8 h Keywords _asm _endasm
10. SER 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 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 IDE on line help Select the Help menu and then Topics to open a list of available on line help files INTRODUCTION This chapter contains general information that will be useful to know before using the MCP3422 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 MCP3422 Evaluation Board as a development tool to emulate and debug firmware on a target board The manual layout is as follows e Chapter 1 Quick Start Instructions this chapter provides an overview of the
11. UMDIQ 80 6 S 100 991 jeeujbu3 diIHDOHDIW Y 8zz00 cel OL Pq IDAJ ZZv dOW an ie Jomo e 2 o e Egg M a 0 ME 2 cu 3 Z 125 aNd o o o o vas isi T d N N x i 9 9 V 2008 Microchip Technology Inc DS51781A page 22 Schematic and Layouts BOARD TOP LAYER Power 1 02 00228 Di BRS Eval board Burt cH2 EN U1 MCP3422 EN GND HER CERN C2 R3 CH2 NH GND usi 2008 Microchip Technology Inc DS51781A page 23 MCP3422 Evaluation Board for PICkit Serial User s Guide A 4 BOARD TOP METAL LAYER 102 00228 20 MCP3422 Eval board MCP3422 DS51781A page 24 2008 Microchip Technology Inc Schematic and Layouts 5 BOARD BOTTOM LAYER 104 00228 R1 2008 Microchip Technology Inc DS51781A page 25 MCP3422 Evaluation Board for PICkit Serial User s Guide NOTES DS51781A page 26 2008 Microchip Technology Inc MICROCHIP Appendix Bill Of Materials BOM MCP3422 EVALUATION BOARD FOR PICkit SERIAL USER S GUIDE TABLE B 1 BILL OF MATERIALS Qty Reference Descr
12. elect your 12C communication speed Communication speed may also be C 100kHz adjusted by using the Configure 400kHz Mode page from the PICkit Serial Analyzer menu dropdown after completing the Configuration Wizard lt Back Next gt Cancel FIGURE 1 5 Step 2 Communication Speed Window Note The MCP3422 device supports the 2 bus data rate up to 3 4 MHz but the current version of the PICkit Serial Analyzer supports the 12C bus data rate up to 400 kHz only 2008 Microchip Technology Inc DS51781A page 9 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 Configuration Wizard x Device Pullups Page 3 of 4 Do you need to enable pullups for your device Enahle Pullups C Yes No FIGURE 1 6 Step 3 Device Pullups Window 7 Select the Vpp voltage of the MCP3422 Evaluation Board and click the Next button Case 1 When using Vpp from the PICkit Serial Analyzer If you choose PICkit Serial will power your device and 5 Volt as shown in Figure 1 7 the MCP3422 Evaluation Board will be 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 MCP3422 Evaluation Board is connected Case 2 When using your own Vpp You can also pro
13. g the analog inputs If you need to measure a single ended input connect the unused pin example CHX to Vss Connecting the inputs The MCP3422 Evaluation Board has input pads for analog inputs for each input channel 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 DS51781A page 6 2008 Microchip Technology Inc Quick Start Instructions 6 Use the PICkit Serial Analyzer PC GUI to send I C 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 Vpp is powered up Personal Computer USB Cable Connected between the PICkit Serial analyzer and Personal Computer PICkit Serial Analyzer ES Sensor Input Sensor Input Connectors Connectors MCP3422 Evaluation Board FIGURE 1 2 MCP3422 Evaluation Board with the PICkit Serial Analyzer 2008 Microchip Technology Inc DS51781A page 7 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 I
14. he Execute Script button Note Atthis point the PICkit Serial transmits the IC 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 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 and try again until the Busy LED turns OFF immediately after sending the 12C command 2008 Microchip Technology Inc DS51781A page 17 MCP3422 Evaluation Board for PICkit Serial User s Guide PICkit Serial Communications View Basic Script Builder Script Name 12C Master Mode PICKt Serial Analyzer Communications Basic Operations 12C Scripts Demo Boards Reset ead ddr 8 User Defined Templates Script Detail 2CSTART Window Help M User 12C Scripts MCP3422 write MEETS cs WiteBlackhddrA8 I2CWRTBYT ReadBlock amp ddr amp 8 02 x D1 x Execute Script SEE _ Clear Seript Address Byte Del User Scripts Show Array Reque
15. iption Manufacturer Part Number 1 c1 CAP 1UF 25V CERAMIC X7R Panasonic ECG ECJ 2VB1E104K 0805 1 C2 CAP CERAMIC 10UF 6 3V X5R Panasonic ECG ECJ 2FB0J106K 0805 1 D1 LED RED ORANGE CLEAR 0805 LITE ON INC LTST C170EKT SMD 1 J1 CONN HEADER 6POS 100 R A Molex Waldom Electronics 22 05 2061 TIN Corp 1 JP1 CONN HEADER 2POS 100 VERT Molex Waldom Electronics 22 03 2021 TIN Corp 1 JP1 Shunt 100 Shorting Block with Handle JAMECO VALUEPRO 2012JH R 1 PCB RoHS Compliant Bare PCB 104 00228 MCP3422 Eval Board for PICKit Serial 2 R1 R3 RES 4 99K OHM 1 8W 196 0805 Microchip Technology Inc ERJ 6ENF4991V SMD 2 R2 R4 DO NOT POPULATE 1 R5 RES 470 OHM 1 8W 5 0805 SMD Panasonic ECG ERJ 6GEYJ471V 1 U1 2 Channel 18 Bit Data Sigma ADC Microchip Technology Inc MCP3422 E MS 10 VDD1 CH1 TEST POINT PC COMPACT SMT Keystone Electronics 5016 CH1 CH2 CH2 SDA SCL GND Note The components listed in this Bill of Materials are representative of the PCB assembly The released BOM used in manufacturing uses all RoHS compliant components 2008 Microchip Technology Inc DS51781A page 27 MICROCHIP WORLDWIDE SALES AND SERVICE AMERICAS 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 com Atlanta Duluth GA Tel 678 957 9614 Fax 678 957 1455 Boston Westborough
16. nology Incorporated in the U S A Analog for the Digital Age Application Maestro CodeGuard dsPICDEM dsPICDEM net dsPlCworks dsSPEAK ECAN ECONOMONITOR FanSense In Circuit Serial Programming ICSP ICEPIC Mindi MiWi MPASM MPLAB Certified logo MPLIB MPLINK mTouch PICkit PICDEM PICDEM net PICtail PIC3 logo PowerCal Powerlnfo 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 2008 Microchip Technology Incorporated Printed in the U S A All Rights Reserved I Printed on recycled paper Microchip received ISO TS 16949 2002 certification for its worldwide headquarters design and wafer fabrication facilities in Chandler and Tempe Arizona Gresham Oregon and design centers in California and India The Company s quality system processes and procedures are for its PIC MCUs and dsPIC DSCs KEELOG code hopping devices Serial EEPROMs microperipherals nonvolatile memory and analog products In addition Microchip s quality system for the design and manufacture of development systems is ISO 9001 2000 certified DS51781A page ii 2008 Microchip Technology Inc MCP3422 EVALUATION BOARD FOR MICROCHIP PICkit SERIAL USER
17. nterface 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 Runthe PICkit Serial PC Software The following graphic user interface GUI will appear Configuration Wizard x Welcome To The 2j PICkit Serial Analyzer Configuration Wizard Lua 1 a fe pe m ake Ow The following steps will quide you through the setup of the PICkit Serial Analyzer FIGURE 1 3 PICkit Serial Analyzer Configuration Wizard Welcome Window Click the Next button and follow the instructions LLLEL A LOL OoO L LLLLOO LLe uL LIOO o L LO CO LOIOOLA AO wLL ILALIOLLILo ULL LL OLLNL O L o o OOe O a LLLUL bOOOeA UL UL LLOLLUOUDOGALAIJAdLLLC oLVLLEDLZA Gn DS51781A page 8 2008 Microchip Technology Inc Quick Start Instructions 4 Select the Communication Mode type I2C Master and click the Next button Configuration Wizard Communication Mode Page 1 of 4 Choose which mode of communication you wish to use 12C Master SPI Master USART Async USART Sync Master o o lt Back Next gt Cancel FIGURE 1 4 Step 1 Communication Mode Selection 5 Select 100 kHz or 400 kHz Either one will be fine Click the Next button Configuration Wizard x Communication Speed Page 2 of 4 S
18. o 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 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 QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV ISO TS 16949 2002 Trademarks The Microchip name and logo the Microchip logo Accuron dsPIC KEELOQ KEELOQ logo MPLAB PIC 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 Tech
19. on bus Note the RDY bit in 4th byte is 0 This means the conversion data just read is the latest conversion data The RDY bit becomes 1 in the 5th byte repeated byte This means the device is now in the process of new conversion and the new result is not ready yet 2008 Microchip Technology Inc DS51781A page 19 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 NENNEN DS51781A page 20 2008 Microchip Technology Inc AN MCP3422 EVALUATION BOARD FOR MICROCHIP 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 DS51781A page 21 BOARD SCHEMATIC MCP3422 Evaluation Board for PICkit Serial User s Guide A 2 9 8 V JO 939945 HOS LH 8ZZQQ COL DSJSIL Kg
20. ript Name menu 3 Click the Save Script button 4 Click the Execute Script button Note Atthis point the PICkit Serial transmits the I C Write Command to the MCP3422 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 and try again until the Busy LED turns OFF immediately after sending the 12C command Zoom in Write Command with Address bits Configuration Bits FIGURE 1 12 Write Command Waveforms for the MCP3422 2008 Microchip Technology Inc DS51781A page 15 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 CREATING A SCRIPT FILE TO READ THE CONVERSION DATA 1 Click on ReadAddrAG in Example 12C Scripts column This will result in filling in the spaces under the Script Detail column Now you can modify the parameter bo
21. rt 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 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 DOCUMENT REVISION HISTORY Revision A November 2008 nitial Release of this Document 2008 Microchip Technology Inc DS51781A page 3 MCP3422 Evaluation Board for PICkit Serial User s Guide NOTES DS51781A page 4 2008 Microchip Technology Inc MCP3422 EVALUATION BOARD FOR MICROCHIP PICkit SERIAL USER S GUIDE Chapter 1 Quick S
22. sting 5 Bytes 1 8 Transactions File Edit Clear 10 24 44 AM bytes Sent script from Script Builder page 10 Reading Data using a Read Command S_ W_ 01 DD RN 05 P 5 00 F9 07 1C ra P_ L Byte Repeated Byte for Configuration byte 4th byte Configuration Byte note that RDYbit is O 3rd byte Data Byte 2nd byte Data Byte 1st aie Data Byte E code F907 in hex 63751 in decimal OutputVoltage 63751 x 19 929 WV LSB _ 9 996 Volts with PGA 1 Note that if the differential input voltage is negative CH gt 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 MCP3422 Data Sheet DS22088 for more information FIGURE 1 14 Reading Conversion Results Note that the Input 0 996V is applied at Ch 1 The reading indicates the measured value is 0 996 Volts DS51781A page 18 2008 Microchip Technology Inc Quick Start Instructions f Data Bytes 00F907 hex a Read command and outputs The 3 data bytes are zoomed in for better clarity Zoom in 73 ieee oon 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
23. tart 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 2 DESCRIPTION OF THE MCP3422 EVALUATION BOARD The MCP3422 Evaluation Board P N MCP3422EV contains a MCP3422 18 Bit Delta Sigma Analog to Digital Converter ADC The MCP3422 is a 2 channel ADC device with various options The MCP3422 Evaluation Board has analog input connection pads and Vpp SDA and SCL 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 MCP3422 Evaluation Board has the following interface PICkit Serial Analyzer for writing configuration register bits and reading the conversion data Note The MCP3422 Evaluation Board can be used without the PICkit Serial Analyzer as long as the Vpp SCL and SDA are provided to the board The MCP3422 Evaluation Board does not include MCU The user can monitor the 12C communications by connecting an oscilloscope to the SDA and SCL test pads Refer to Appendix A Schematic and Layouts 1 2 1 12 Address Bits for the MCP3422 The IC device code and address bits of the MCP3422 device are programmed at factory e Device Code
24. ters 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 displaying the options available for the selected parameter 3 Select the desired option and delete or insert the parameter box 4 Keep the parameters in the order shown in Figure 1 10 DS51781A page 12 2008 Microchip Technology Inc Quick Start Instructions 14 PICkit Serial 12C Master Mode Communications PICkit Serial Analyzer Demo Boards User Defined Templates View Window Help View Basic Communications Basic Operations Reset Script Builder Example 2C Scrpts Script Detail User I2C Scripts Script Name Read ddr s I2CSTART MCP3422 wi WiiteBlockAddrAB IZCwRTBYT Readlack ddr B a 0 x Execute Script SE x t To change value Clear Scnpt e Click this box and type a 2CSTOP new number 2 To delete or insert box Choose the box and Del User Scrip right click the mouse button for options available Show Arra Make sure the listed parameters y in Script Detail should be in exact order as shown here FIGURE 1 10 Modifying Parameters in Script Builder Window 4 Change the parameter value Script Detail I2CSTART I2CWRTBYT 02 j gt This means there are two bytes to send DO gt 1st Write Byte Address byte with W R bit 1101 0000 9C
25. vide your own Vpp voltage by applying a Vpp voltage at the VD1 test point In this case make sure that the JP1 jumper is disconnected X DS51781A page 10 2008 Microchip Technology Inc Quick Start Instructions Configuration Wizard x Yoltage Source Page 4 of 4 Does PICKkit Serial need to power your device Voltage v PICkit Serial will power my device If PICkit Serial will power your 5Wglt device select the checkbox to the left then determine your voltage 5 0 lt Back Nest gt Cancel 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 Configuration Wizard x You re Done Press OK to complete the Configuration Wizard Do not show this wizard on startup again Wizard may be accessed anytime from menu dropdown PICkit Serial Analyzer gt Run Configuration Wizard lt Back wee FIGURE 1 8 Configuration Wizard Finishing Step 2008 Microchip Technology Inc DS51781A page 11
26. xes delete or insert in the Script Detail column with options The list of options will appear if you click with the right mouse button on the parameter box You can delete the parameter box or add a new one 2 Make sure the Script Detail parameters are listed in order as follows Script Detail I2CSTART I2ZCWRTBYT 01 This means there is one byte for address Di f gt Address byte with W R bit 1101 0001 I2CRDBYTNLB S gt 5 bytes to read I2CSTOP Note All 7 parameters above must be listed in order The parameters above with are not modifiable 4 PICkit Serial 12C Master Mode Communications Serial Analyzer Demo Boards User Defined Templates view Window View Basic Communications Basic Operations Reset Script Builder Example 12C Scripts Script Detail User 2C Scripts Script Name Read amp ddr 8 I2CSTART MCP3422 Write Write ddr MCP3422 Read MCP3422 Read POWETEVT WiiteBlock ddr g ReadBlock amp ddrA8 Save Script 7 02 Z z D1 x Execute Script I2CRDBYTNLB Clear Script Address Byte Del User Scripts Requesting 5 Bytes Show Array FIGURE 1 13 Script File Sample to Read Conversion Data DS51781A page 16 2008 Microchip Technology Inc 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 t
Download Pdf Manuals
Related Search
Related Contents
Válvulas de mariposa Tilis Sony MVC-CD250 Operating Instructions to Open Manual File - American Musical Supply Product Label 取扱説明書 イ主宅用照明器具 (ペンダン ト) Samsung 226CW User Manual Samsung HT-P70 Uživatelská přiručka Philips 046677416324 energy-saving lamp Leica DISTO™ A8 - S2p-pro IQTL User Manual Copyright © All rights reserved.
Failed to retrieve file