background image

MCP2221 I

2

C Demonstration Board User’s Guide

DS50002480A-page 6

 2016 Microchip Technology Inc.

Appendix A. Schematics and Layouts

A.1 Introduction  .................................................................................................. 45
A.2 Board – Interface Schematic ........................................................................ 46
A.3 Board – Slaves Schematic ........................................................................... 47
A.4 Board – Top Silk  .......................................................................................... 48
A.5 Board – Top Copper and Silk ....................................................................... 48
A.6 Board – Top Copper  .................................................................................... 49
A.7 Board – Bottom Copper  ............................................................................... 49
A.8 Board – Bottom Copper and Silk  ................................................................. 50
A.9 Board – Bottom Silk  ..................................................................................... 50

Appendix B. Bill of Materials (BOM) ...........................................................................51

Worldwide Sales and Service .....................................................................................54

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Содержание MCP2221

Страница 1: ... 2016 Microchip Technology Inc DS50002480A MCP2221 I2 C Demonstration Board User s Guide Downloaded from Arrow com ...

Страница 2: ...ware or other copyrighted work you may have a right to sue for relief under that Act Microchip received ISO TS 16949 2009 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 KEELOQ code hop...

Страница 3: ... 2016 Microchip Technology Inc DS50002480A page 3 Object of Declaration MCP2221 I2 C Demonstration Board User s Guide Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 4: ...CP2221 I2C Demonstration Board User s Guide DS50002480A page 4 2016 Microchip Technology Inc NOTES Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 5: ...p 15 2 3 Jumpers and Connectors Description 16 2 4 Test Points Description 18 Chapter 3 Testing Board Features 3 1 About the MPC2221 I2 C Demo Board Application 19 3 2 General Information Panel Description 20 3 3 Feature Tabs 21 Chapter 4 Creating Custom I2 C Software Applications 4 1 USB to I2 C 39 4 2 PIC16F1509 as I2 C Master 40 4 3 I2 C Slave Addresses 41 Chapter 5 Troubleshooting 5 1 Board No...

Страница 6: ...chematic 47 A 4 Board Top Silk 48 A 5 Board Top Copper and Silk 48 A 6 Board Top Copper 49 A 7 Board Bottom Copper 49 A 8 Board Bottom Copper and Silk 50 A 9 Board Bottom Silk 50 Appendix B Bill of Materials BOM 51 Worldwide Sales and Service 54 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Страница 7: ...hooting the most common problems encountered when installing and operating the board Appendix A Schematics and Layouts Shows the schematic and layout diagrams for the board Appendix B Bill of Materials BOM Lists the parts used to build the board NOTICE TO CUSTOMERS All documentation becomes dated and this manual is no exception Microchip tools and documentation are constantly evolving to meet cust...

Страница 8: ...where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets 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 mcc18 h Keywords _asm _endasm static Command line options Opa Opa Bit values 0 1 Constants 0xFF A Italic Courier New A variable argument file o where fil...

Страница 9: ...ollowing 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 ...

Страница 10: ... Technology Inc NOTES Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 11: ...the PAC1710 current voltage and power sensor Real time monitoring and logging of the ambient temperature using the MCP9808 temperature sensor Real time monitoring and logging of the voltage level recorded by the MCP3221 device s 12 bit ADC Configuration and control of up to 8 GPIOs available from the MCP23008 I O expander as well as continuously monitoring the state of the pins when used as digita...

Страница 12: ...ices as well as receive configurable interrupts using the PAC1710 current sensing chip Option to connect the interrupt pin of the MCP23008 I O expander to an external interrupt pin of the PIC16F1509 for custom applications 1 2 3 I2 C Devices Available on the Board Table 1 1 identifies the I2 C devices master and slaves available on the MCP2221 I2 C Demonstration Board TABLE 1 1 I2 C DEVICES AVAILA...

Страница 13: ...n Board Preprogrammed PIC16F1509 Microcontroller Two Mini USB Cables Important Information Sheet MCP2221 PIC16F1509 PAC1710 24LC128 MCP9808 MCP3221 MCP4726 MCP23008 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com D...

Страница 14: ...loaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 15: ...are 2 2 1 Software Installation Follow these steps to install the required software 1 Download the support material PC application that can be found on the board s page at www microchip com 2 Unzip the archive and install the exe file The setup process should also perform the USB driver installation if needed If there are driver related issues refer to Section 5 2 USB Driver Installation Issues 2 ...

Страница 16: ...tivity 3 Connect UART RX of PIC16F1509 to UART TX of MCP2221 8 Enable SCL clock line of PIC16F1509 for I 2 C connectivity 4 Connect UART RX of MCP2221 to UART TX of PIC16F1509 9 Enable RGB LED connect to PIC16F1509 5 Set board voltage V DD to 5V 1 2 3 4 5 6 7 8 9 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downlo...

Страница 17: ...e of measuring polarized capacitors J14 Jumper enabling the RGB LED LD1 that connects to the PIC16F1509 The jumper is connected by default J15 Jumper allowing the possibility to connect the interrupt pin of the MCP23008 I O expander to pin RA2 of the PIC16F1509 The jumper is not connected by default not populated J16 Female connector to the eight I O pins of the MCP23008 I O expander When using th...

Страница 18: ... the positive pin of the polarized capacitor to this test point TP2 Test point connected to ground for measuring resistance or capacitance If required connect the negative pin of the polarized capacitor to this test point TP3 Test point for the ALERT pin of the PAC1710 This test point is not used by the demonstration board s application TP4 Test point for the load side target USB device of the PAC...

Страница 19: ...the MCP2221 I2 C Demo Board Application The three main sections that can be observed in Figure 3 1 are the Feature tabs General Information panel and Setup area FIGURE 3 1 THE MCP2221 I2C DEMO BOARD APPLICATION INITIAL VIEW Setup Area General Information Panel Feature Tabs Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow ...

Страница 20: ...lues click the Update Settings button Users can return to the default values by clicking the Use Default Values button 3 2 3 The I2C Communication Status Box By default the I2C Communication Status text box is blank It is populated when actions are performed in the Feature tabs The information is system generated and read only Message examples include EEPROM write successful Pins states updated Se...

Страница 21: ...current is provided by a digital output pin of the MCP2221 board and limited by a 470 kΩ resistor The Measure R C tab also generates a charging graph for the capacitor as well as an indicator of its voltage Resistance is determined by placing the unknown resistor in series with another known one thus creating a voltage divider where relative voltage values are sufficient to calculate the resistanc...

Страница 22: ... in some cases of about 10 therefore the MCP2221 I2 C Demonstration Board Kit is not recommended for precision measurements For both capacitor and resistance measurements voltages are generated by digital output pins and measured using the analog input pins of the MCP2221 I2 C Demonstration Board Note In case of a polarized capacitor make sure the pins are correctly placed the plus and minus signs...

Страница 23: ...box When the check box is selected the Open window opens to allow users to select the csv file or create a new document where the measured data can be logged Figure 3 5 depicts this action FIGURE 3 5 SELECTING A csv FILE It is advisable to use comma separated values for the csv file type to be Microsoft Excel compatible The csv file is generated by the application with four columns and each set of...

Страница 24: ...em resources Figure 3 6 shows an example for measuring the current voltage and power of a USB Flash drive when connected to the PC via the measuring circuit FIGURE 3 6 MEASURING CURRENT VOLTAGE AND POWER OF A USB DEVICE Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Страница 25: ...view the schematic and layouts of the board available in Appendix A Schematics and Layouts of this document 3 3 3 Measure Temperature Tab The temperature sensor is built into the MCP9808 chip The sensor s accuracy depends on the temperature value intervals as seen in the following table In the case of continuous monitoring samples are taken once every 100 milliseconds so higher frequency variation...

Страница 26: ... for temperature and to write them in the corresponding text box below it This can be used as an alternate solution to Measure Temperature in order to save system resources For example the application can be set so that temperatures exceeding 26 C will result in an orange LED blinking on the board Custom LED notifications are described in Section 3 3 8 RGB LED Notifications Tab Figure 3 7 shows an...

Страница 27: ...ll or page of the EEPROM 1 Select the Read Write EEPROM tab 2 From the Select Page drop down choose the EEPROM memory page you want to read or write 3 The address of the cell can be determined by adding the column and row indexes in the matrix table below Edit a cell by double clicking on it and entering the 8 bit value in hexadecimal form example for 0x1C write 1C Users must enter a valid number ...

Страница 28: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloa...

Страница 29: ...w in Chart check box determines whether a chart is generated by the system to illustrate the measured values The functionalities of the Show numbers and the Log into CSV File check boxes are similar to the ones described in Section 3 3 2 Measure USB Power Tab However the csv file contains two columns and each set of readings is placed on a row The columns are Data entry index Voltage in Volts The ...

Страница 30: ...rrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com D...

Страница 31: ...Write Value in Volts Example 2 35 label Use a period and not a comma to write the value 4 Regardless of the method used to set the output voltage the voltages are only submitted to the board after the user clicks the Set Voltage button The value is also displayed below the Current Voltage label inside the corresponding read only text box 5 To read the output voltage value back from the chip s regi...

Страница 32: ...monitoring auto read is enabled then it will not be automatically halted unless the board is physically disconnected from the PC Therefore it is recommended to stop performing the readings when they are no longer required Custom LED notifications for pin GP0 for example the pin having a logical high state results in a yellow LED blinking on the board are described in Section 3 3 8 RGB LED Notifica...

Страница 33: ...00 milliseconds in case the Auto Read Every 100ms check box is selected or Manually by clicking on the Read Pin States button Figure 3 11 shows an example of using the GPIO Expander tab FIGURE 3 11 INTERFACING THE GPIO EXPANDER Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from ...

Страница 34: ...B LED LD1 that is fully controlled by three Pulse Width Modulation PWM pins of the PIC16F1509 which receives commands as I2C slave from the MCP2221 DLL through the MCP2221 board The LED color and brightness are configured from the PC application It is recommended to avoid light color tones because they can translate into very intense LED brightness Prior to attempting to configure the LED notifica...

Страница 35: ...created configuration inside the 24LC128 EEPROM that s on the MCP2221 board data is stored inside its last memory page 255 Also the Load Preferences from EEPROM button can be used to restore configurations from the EEPROM Note Changing a numeric value used for the comparison will clear the Enable check box Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fro...

Страница 36: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arr...

Страница 37: ...y clicking the Open Port button 5 Received data is automatically added inside the read only text box on the right hand side as red colored text To send data follow these steps 1 Open the UART Communication tab 2 Enter the information you want to communicate in the text boxes corresponding to the Text 1 Text Line 2 and Text Line 3 buttons under the Send data section 3 Sent data can be seen inside t...

Страница 38: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arr...

Страница 39: ...pplication GUI the user can call the MCP2221 associ ated functions for its configuration or actual data transfer through the DLL files that can be downloaded from the same location For Android the source code for the application and the available libraries can be used as a basis for developing a new application See the Recommended Reading section for more information on the I2 C slave devices 4 1 ...

Страница 40: ... communication make sure that The PIC16F1509 connects to the I2 C bus by short circuiting jumpers J6 and J9 The I2 C data and clock lines pull up resistors are connected if no pull up resistors are externally connected to the board then jumper J24 must be connected Note If the externally connected I2 C slave already has its own pull up resistors connected to the I2 C data and clock lines the ones ...

Страница 41: ...ss TABLE 4 1 LIST OF I2C SLAVE ADDRESSES Device I2 C Write 8 Bit Address I2 C Read 8 Bit Address 24LC128 0xA0 0xA1 MCP23008 0x40 0x41 MCP3221 0x9A 0x9B MCP4726 0xC0 0xC1 MCP9808 0x32 0x33 PAC1710 0x5C 0x5D PIC16F1509 0x10 0x11 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Страница 42: ...loaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fro...

Страница 43: ...host will ask for the device s Product and Vendor IDs VID PID The default values for the MCP2221 are 0x4D8 and 0xDD In case any of these values has been changed by the user and the USB inf driver file has been customized accordingly and has been installed properly then the PC application will report the MCP2221 not connected error message In such a case the application can be configured to look fo...

Страница 44: ...ause may be that the PICkit 3 cannot provide enough power to the PIC device In such a case it is recommended to power the MCP2221 board externally through The mini USB connector marked as J19 as opposed to powering from the PICkit 3 from the PC or A USB charger that provides a constant 5V DC at a recommended minimum of 200 mA if the microcontroller supports this voltage level Downloaded from Arrow...

Страница 45: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 46: ...BLUE 5 6 CLX6A FKB CK1P1G1BB7R3R3 LD1 LED_RGB GND 1 2 HDR 2 54 Male 1x2 J14 1 2 HDR 2 54 Male 1x2 J9 1 2 HDR 2 54 Male 1x2 J6 SCL SDA IO_INT PIC16F1509 microcontroller 1 2 3 4 5 6 HDR 2 54 Male 1x6 J23 MCLR RA3 VDD VDD VSS RA0 ICSPDAT RA1 ICSPCLK RA2 1 5k 0603 5 R7 3 3k 0603 5 R8 2 7k 0603 5 R9 1 2 HDR 2 54 Male 1x2 J15 ICSP connector MCP23008 interrupt pin to PIC VDD C1 1 V 2 C1 3 C2 4 C2 5 V 6 D...

Страница 47: ... VSS 9 GP2 14 GP1 13 GP0 12 NC 11 NC 10 GP7 19 VDD 20 U11 MCP23008 SCL SDA 0 1uF 16V 0603 C20 VDD IO_INT VDD GREEN LD4 GREEN LD5 1 2 HDR 2 54 Male 1x2 J20 GND GND 1k 0603 5 R14 1k 0603 5 R16 1k 0603 5 R19 1k 0603 5 R22 IO_GP0 IO_GP1 IO_GP2 IO_GP3 IO_GP4 IO_GP5 IO_GP6 IO_GP7 1 2 3 4 5 6 7 8 HDR 2 54 Male 1x8 J17 1 2 3 4 5 6 7 8 HDR 2 54 Female 1x8 J16 IO_GP0 IO_GP1 IO_GP2 IO_GP3 IO_GP4 IO_GP5 IO_GP...

Страница 48: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arr...

Страница 49: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arr...

Страница 50: ...aded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from ...

Страница 51: ...or Solutions PPPC061LGBN RC 1 LD1 LED RGB 3 5x3 4 MM 6PLCC Cree Inc CLX6A FKB CJNN RFJBB7A363 8 LD2 LD3 LD4 LD5 LD6 LD7 LD8 LD9 Diode LED Green 2 2V 25 mA 15 mcd Clear SMD 0603 Kingbright Corp APT1608SGC Note 1 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 Downloaded from Arrow com Do...

Страница 52: ...5V MCP1525 I TTG SOT 23 3 Microchip Technology Inc MCP1525T I TT 1 U8 Microchip Analog DAC 1 Ch 12 Bit MCP4726A0T E CH SOT 23 6 Microchip Technology Inc MCP4726A0T E CH 1 U9 Microchip Analog ADC SAR 12 Bit MCP3221A5T E OT SOT 23 5 Microchip Technology Inc MCP3221A5T E OT 1 U11 Microchip Interface GPIO Port Expand I2 C 8 Port MCP23008T E SS SSOP 20 Microchip Technology Inc MCP23008T E SS TABLE B 1 ...

Страница 53: ...nloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fr...

Страница 54: ...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 5778 366 Fax 886 3 5770 955 Taiwan Kaohsiung Tel 886 7 213 7828 Taiwan Taipei Tel 886 2 2508 8600 Fax 886 2 2508 0102 Thailand Bangkok Tel 66 2 694 1351 Fax 66 2 694 1350 EUROPE Austria Wels Tel...

Отзывы: