MCP2120-I/SL Microchip Technology, MCP2120-I/SL Datasheet
![IC ENCODR/DECODR 2.5V IR 14-SOIC](/photos/6/59/65933/150-14-soic_sml.jpg)
MCP2120-I/SL
Specifications of MCP2120-I/SL
Available stocks
Related parts for MCP2120-I/SL
MCP2120-I/SL Summary of contents
Page 1
... Microchip Technology Inc. MCP2120/22 Developer’s Board User’s Guide DS51842A ...
Page 2
... PICDEM, PICDEM.net, PICtail, PIC Select Mode, Total Endurance, TSHARC, 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. ...
Page 3
... Introduction And Highlights ............................................................................ 5 1.2 What is the MCP2120/22 Developer’s Board? ............................................... 5 1.3 MCP2120/22 Developer’s Board Features ..................................................... 6 1.4 PC Requirements ......................................................................................... 14 1.5 What the MCP2120/22 Developer’s Board Kit includes: .............................. 14 Chapter 2. Installation and Operation ....................................................................... 15 2.1 Introduction ................................................................................................... 15 2.2 The Demo System ........................................................................................ 16 2.3 MCP212XDM Demos ................................................................................... 20 Appendix A ...
Page 4
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page iv © 2009 Microchip Technology Inc. ...
Page 5
... 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 MCP2120/22 Developer’s Board. Items discussed in this chapter include: • Document Layout • Conventions Used in this Guide • ...
Page 6
... MCP2120/22 Developer’s Board User’s Guide DOCUMENT LAYOUT This document describes how to use the MCP2120/22 Developer’s Board. The manual layout is as follows: • Chapter 1. “Product Overview” – Important information about the MCP2120/22 Developer’s Board. • Chapter 2. “Installation and Operation” – Includes instructions on how to get started with this user’ ...
Page 7
... N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Italic Courier New Square brackets [ ] Curly brackets and pipe character Ellipses... © 2009 Microchip Technology Inc. Represents Referenced books MPLAB Emphasized text ...is the only compiler... A window the Output window A dialog ...
Page 8
... You can also find important information in the following Microchip documents: • AN946 - “Interfacing the MCP2122 to the Host Controller”, DS00946. • AN923 - “Using the MCP2120 Developer's Board for IR Sniffing", DS00923. • AN756 - “Using the MCP2120 for Infrared Communications”, DS00756. • TB073 - “Selecting an MCP21xx Device for IrDA Applications”, DS91073. ...
Page 9
... Chapter 1. Product Overview 1.1 INTRODUCTION AND HIGHLIGHTS This chapter provides an overview of the MCP2120/22 Developer’s Boards’ features, the system configurations that they can be used in and the system requirements for the tutorials. Items discussed in this chapter are: • What is the MCP2120/22 Developer’s Board? • ...
Page 10
... Developer’s Board is powered by the V to ensure that the PIC18F65J50 is not over voltaged. The PIC18F65J50 can be isolated from the MCP2120/22’s power plane by removing the jumper shunt on jumpers JP1 and JP2. The MCP2120/22DM has the MCP2122 device is mounted in a DIP socket. An SOIC footprint is supplied if testing with an SOIC device is desired ...
Page 11
... The MCP2120/22 Developer’s Board, as shown in Figure 1-1, has the following hardware features: 1. Mini USB connector (for powering the board). 2. Onboard +3.3V regulator for powering PIC18F65J50. 3. Hooks for an external regulated DC supply. 4. Jumper to issolate PIC18F65J50 power signal from the rest of board power. This allows the board to operate at voltages higher than 3 ...
Page 12
... MCP2120/22 Developer’s Board User’s Guide FIGURE 1-1: MCP2120/22 DEVELOPER’S BOARD HARDWARE DS51842A-page © 2009 Microchip Technology Inc. ...
Page 13
... Jumper JP1 connects the generated clock signal from the PIC18F65J50’s ECCP1 pin to the MCP2120’s OSC2 pin. This allows the board not to need the MCP2120’s crystal circuitry. Jumper JP2 connects the board’s two power planes. The MCP2120/22 Developer’s Board has a power plane for the PIC18F65J50 and related circuitry, and a second power plane for all other circuitry ...
Page 14
... MCP2120/22 Developer’s Board User’s Guide FIGURE 1-3: MCP2120/22 CONTROL SIGNALS This jumper selects the source of the MCP2120/22’s MODE signal JMP7 MODE signal driven from DB-9 interface MODE signal driven from PIC18’s RB1 pin DS51842A-page 10 This jumper selects the source of the MCP2120/22’ ...
Page 15
... Host UART Interface Connection Jumper Descriptions Figure 1-4 shows the five jumpers used to control the connection of the MCP2120/22’s Host UART signals. FIGURE 1-4: MCP2120/22 HOST UART INTERFACE CONNECTION These four jumpers connect the MCP2120/22’s Host UART Signals to either the PIC18F65J50 or the UART ...
Page 16
... MCP2120/22 Developer’s Board User’s Guide 1.3.3 Firmware Program Jumper Descriptions for MCP2122 Figure 1-5 shows the MCP2122 JMP6 program setting for the MCP2120/22 board. FIGURE 1-5: MCP2122 JMP6 FIRMWARE OPERATION Jumper to specify operation of PIC18F65J50 firmware JMP6 Device: N.A. MCP2122 ...
Page 17
... Firmware Program Jumper Descriptions for MCP2120 Figure 1-5 shows the MCP2120 JMP6 program setting for the MCP2120/22 DM board. FIGURE 1-6: MCP2120 JMP6 FIRMWARE OPERATION Jumper to specify operation of PIC18F65J50 firmware JMP6 Device: MCP2120 Baud Rate 9600 Baud 19200 Baud 38400 Baud ...
Page 18
... PC REQUIREMENTS The PC used has four main requirements. These are: 1. Standard serial port 2. USB port (to power the MCP2120/22 Developer’s Board) 3. Terminal emulation program (such as HyperTerminal) 4. IrDA standard driver installed, which treats the IR port as a virtual serial port A non-legacy-free Intel would meet these requirements. The Windows program called Hyperterminal. Section D.1 “ ...
Page 19
... MCP2122 (default device) or the MCP2120. The MCP2122 uses the PIC’s PWM pin to generate the 16XCLK signal. If the MCP2120 is used, the program will either source a 3.6864 MHz clock or the MCP2120 will use an external crystal (not installed). The program expects the crystal frequency to be 7.3728 MHz. ...
Page 20
... Table 2-3 shows the state of the MODE7, MODE3 and MODE6:4 signals which are used to specify the program that will be executed. If the device is the MCP2120, then three output signals will control the state of the MCP2120’s BAUD2:0 pins to control the MCP2120’s baud rate. ...
Page 21
... Note Legend:X = Undefined (either "1" or "0"). Note 1: Baud rate would be dependant on the state of the MCP2120’s BAUD2:0 pins 7.3728 MHz external crystal must be used. 3: This exceeds the device’s maximum specification. 4: The MCP2122 16XCLK signal is static. © 2009 Microchip Technology Inc. ...
Page 22
... The PIC firmware reads the state of the RD7 and RD3 signals. If the signals indicate that the device is the MCP2120 and to use the PIC as the clock source, then the PIC will source a 3.6864 MHz clock to be used by the MCP2120 device. The PIC will drive the MCP2120’ ...
Page 23
... The PIC firmware reads the state of the RD7 and RD3 signals. If the signals indicate that the device is the MCP2120 and to use a crystal as the clock source, then the PIC will control the state of the MCP2120’s MODE2:0 pins based on the state of the RD2:0 signals. This mode requires that the MCP2122’ ...
Page 24
... Demo #1 Operation - Direct IR / UART (DB-9) Mode In Demo #1, the MCP2120/22 Developer’s Board #2 will take any data that is received from the IR interface and send it directly out the UART interface to the PC’s serial port. Any data that is received from the UART interface will be directly sent out the IR interface ...
Page 25
... FIGURE 2-2: DEMO #1 CONFIGURATION - DIRECT TO UART (DB-9) MODE DB-9 Connector Note: This is the board configuration shipped to customers. © 2009 Microchip Technology Inc. Installation and Operation Data Flow IR Transceivers DS51842A-page 21 ...
Page 26
... MCP2120/22 Developer’s Board User’s Guide TABLE 2-4: DEMO #1 STEPS - DIRECT TO UART (DB-9) Step Action 1 Place the two MCP2120/22 Developer’s Boards on a flat surface about 25 cm (10 inches) apart, and with the IR ports facing each other the MCP2120/22 Developer’s Boards: ...
Page 27
... Demo #2 Operation - Echo Character Received (Change Case) In Demo #2, the MCP2120/22 Developer’s Board #2 will echo the alpha character received on the IR interface after changing its case (“a” → “A” and “A” → “a”). This demo shows the MCP212X device in an embedded application. ...
Page 28
... MCP2120/22 Developer’s Board User’s Guide FIGURE 2-4: DEMO #2 CONFIGURATION - ECHO CHARACTER RECEIVED MODE These jumpers can be in this configuration or removed. DS51842A-page 24 PIC18F65J50 © 2009 Microchip Technology Inc. IR Transceivers ...
Page 29
... TABLE 2-5: DEMO #2 STEPS - ECHO CHARACTER RECEIVED Step Action 1 Place the two MCP2120/22 Developer’s Boards on a flat surface about 25 cm (10 inches) apart, and with the IR ports facing each other the MCP2120/22 Developer’s Board #1: Ensure that the jumpers are configured as in Figure 2-2 ...
Page 30
... MCP2120/22 Developer’s Board User’s Guide 2.3.3 Demo #3 Operation - Data Stream Mode In Demo #3, once the MCP2120/22 Developer’s Board # 2 receives a data byte from the IR interface, the PIC will stream a continuously repeated table (Figure E-1:) through the IR port. This demo shows the MCP212X device in an embedded application. ...
Page 31
... FIGURE 2-6: DEMO #3 CONFIGURATION - DATA STREAM MODE These jumpers can be in this configuration or removed. © 2009 Microchip Technology Inc. Installation and Operation PIC18F65J50 IR Transceivers DS51842A-page 27 ...
Page 32
... MCP2120/22 Developer’s Board User’s Guide TABLE 2-6: DEMO #3 STEPS - DATA STREAM Step Action 1 Place the two MCP2120/22 Developer’s Boards on a flat surface about 25 cm (10 inches) apart, and with the IR ports facing each other the MCP2120/22 Developer’s Board #1: ...
Page 33
... Demo #4 Operation - Pass Through Mode In Demo #4, the MCP2120/22 Developer’s Board #2 will take any data that is received from the IR interface and send it out the UART interface (after passing through the PIC) to the PC’s serial port. Any data that is received from the UART interface will be sent out the IR interface (after passing through the PIC) ...
Page 34
... MCP2120/22 Developer’s Board User’s Guide FIGURE 2-8: DEMO #4 CONFIGURATION - PASS THROUGH MODE DB-9 Connector DS51842A-page 30 PIC18F65J50 RX1 TX2 RX2 TX1 © 2009 Microchip Technology Inc. IR Transceivers ...
Page 35
... TABLE 2-7: DEMO #4 STEPS - PASS THROUGH Step Action 1 Place the two MCP2120/22 Developer’s Boards on a flat surface about 25 cm (10 inches) apart, and with the IR ports facing each other the MCP2120/22 Developer’s Board #1: Ensure that the jumpers are configured as in Figure 2-2 ...
Page 36
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page 32 © 2009 Microchip Technology Inc. ...
Page 37
... Please refer to our web site (www.microchip.com) to obtain the latest documentation available. A.1 INTRODUCTION This appendix contains the following schematics and layouts for the MCP2120/22 Developer’s Board: • Board - Schematic • Board - Top Silk and Pads • ...
Page 38
... MCP2120/22 Developer’s Board User’s Guide A.2 BOARD - SCHEMATIC DS51842A-page 34 © 2009 Microchip Technology Inc. ...
Page 39
... A.3 BOARD - TOP SILK AND PADS © 2009 Microchip Technology Inc. Schematic and Layouts DS51842A-page 35 ...
Page 40
... MCP2120/22 Developer’s Board User’s Guide A.4 BOARD - TOP LAYER PLUS SILK AND PADS DS51842A-page 36 © 2009 Microchip Technology Inc. ...
Page 41
... A.5 BOARD - BOTTOM LAYER © 2009 Microchip Technology Inc. Schematic and Layouts DS51842A-page 37 ...
Page 42
... MCP2120/22 Developer’s Board User’s Guide A.6 BOARD - POWER LAYER DS51842A-page 38 © 2009 Microchip Technology Inc. ...
Page 43
... A.7 BOARD - GROUND LAYER © 2009 Microchip Technology Inc. Schematic and Layouts DS51842A-page 39 ...
Page 44
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page 40 © 2009 Microchip Technology Inc. ...
Page 45
... This is done with component layout of these additional optical transceiver circuits. The customer would be required to install the desired circuit for testing. Table B-1 shows the components that are installed in the MCP2120/22 Developer’s Board PCB, while Table B-2 shows the components that are NOT installed on the MCP2120/22 Developer’ ...
Page 46
... JP1, JP2, CONN HEADER 2POS .100 VERT TIN JP1C1, JP2C1 1 L1 INDUCTOR POWER 10UH 1008 1 PCB RoHS Compliant Bare PCB, MCP2120/22 Developer’s Board 1 Q1 300mA CMOS LDO 10 R2, R12, R13, RES 10K OHM 1/8W 5% 0805 SMD R14, R15, R16, R17, R18, R19, ...
Page 47
... Electronics Corp. Panasonic - ECG Panasonic - ECG LITE-ON Semiconductor Corp. ® Vishay Mill-Max Manufacturing Corp. Microchip Technology Inc. Microchip Technology Inc. ECS Inc. Part Number ECJ-2YB1C474K F931C685MAA ECJ-2FF1C475Z ECJ-2VB1C104K C0805C220J5GACTU 22-03-2021 22-28-4120 10-89-1161 ERJ-6RQF2R2V ERJ-6GEY0R00V HSDL-3000#007 TFDU4101-TR3 110-99-318-41-001000 MCP2120-I/SL MCP2122-I/SL ECS-36-20-4DN DS51842A-page 43 ...
Page 48
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page 44 © 2009 Microchip Technology Inc. ...
Page 49
... Appendix C. Board Testing C.1 WHAT IS TESTED The MCP2120/22 Developer’s Board can be used in multiple configurations. Only a subset of these configurations will be tested. The following portions of the board are tested: • MCP2122 • TFDU-4300 (U5) and circuitry (JP1C1, JP2C1) • USB Power circuitry • DB-9 Interface and circuitry • ...
Page 50
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page 46 © 2009 Microchip Technology Inc. ...
Page 51
... Figure D-2 is shown. Ensure that the appropriate COM port is selected for both the “Golden” unit and the “Testing” unit. Then select the Configure button. FIGURE D-1: © 2009 Microchip Technology Inc. MCP2120/22 DEVELOPER’S BOARD ® PROGRAM ® operating system. ...
Page 52
... MCP2120/22 Developer’s Board User’s Guide FIGURE D-2: This will open up the Port Settings window. The port settings should be configured as shown in Figure D-3 with the “Bits per second” selected with 115200. After configuring the port settings, select OK. The Figure D-2 window will be shown. Select the Settings tab ...
Page 53
... Translation Button window (Figure D-6). Click OK and close each window. After these “property” windows are closed, you may wish to save each configuration with a name that you can remember (one for COM1 and the other for COM2). FIGURE D-5: © 2009 Microchip Technology Inc. ® HyperTerminal PROGRAM PROPERTIES SETTINGS WINDOW ® ...
Page 54
... MCP2120/22 Developer’s Board User’s Guide FIGURE D-6: DS51842A-page 50 ® HyperTerminal PROGRAM INPUT TRANSLATION WINDOW © 2009 Microchip Technology Inc. ...
Page 55
... NOTE: 0x0D = Carriage Return, 0x0A = Line Feed © 2009 Microchip Technology Inc. MCP2120/22 DEVELOPER’S BOARD ; 10 Characters - Characters - Characters - Characters - Characters - 50 ...
Page 56
... MCP2120/22 Developer’s Board User’s Guide NOTES: DS51842A-page 52 © 2009 Microchip Technology Inc. ...
Page 57
... Purpose 1 PC with one USB port To run MPLAB-IDE and communicate to the ICD or ICE hardware. 1 ICD2, ICD3, or Real ICE To program the MCP2120/22 Developer’s Board PIC18F65J50 device. 1 RJ-11 to ICSP Adapter Converts RJ-11 connector of ICD 2 to pins to use for programming the (AC164110) PICkit interface on the MCP2120/22 Developer’s Board. ...
Page 58
... Fax: 886-3-6578-370 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 © 2009 Microchip Technology Inc. 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 ...