Microchip Technology MCP2120 User Manual

Microchip Technology MCP2120 User Manual

Developer’s kit
Hide thumbs Also See for MCP2120:

Advertisement

Quick Links

MCP2120/MCP2150
DEVELOPER'S KIT USER'S GUIDE
Information contained in this publication regarding device applications and the like is intended by way of suggestion
only. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with
respect to the accuracy or use of such information. Use of Microchip's products as critical components in life support
systems is not authorized except with express written approval by Microchip.
 2001 Microchip Technology Incorporated. All rights reserved.
The Microchip logo, name, PIC, PICmicro, PICSTART, PRO MATE, K
L
, MPLAB, and MXDEV are registered
EE
OQ
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. microID, and Smart Serial are
trademarks of Microchip Technology in the U.S.A. and other countries.
All product/company trademarks mentioned herein are the property of their respective companies.
 2001 Microchip Technology Inc.
DS51246A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MCP2120 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology MCP2120

  • Page 1 Information contained in this publication regarding device applications and the like is intended by way of suggestion only. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information. Use of Microchip’s products as critical components in life support systems is not authorized except with express written approval by Microchip.
  • Page 2 MCP2120/2150 User’s Guide NOTES:  2001 Microchip Technology Inc. DS51246A...
  • Page 3: Table Of Contents

    MCP2120/MCP2150 USER’S GUIDE Table of Contents Chapter 1. Introduction Welcome ..................1 MCP2120/MCP2150 Developer’s Kit User’s Guide ......2 Sample Devices ................3 Reference Documents ..............3 Other Related Documents .............. 3 Chapter 2. Getting Started Introduction ..................5 Highlights ..................5 Developer Board Features ..............
  • Page 4 Power Supply ................45 Power Indicator ................45 RS-232 Serial Port ................45 Jumpers ..................46 Oscillator Options ................48 Board Layout .................49 Schematics ..................50 Revision History ..................53 Index ......................55 Worldwide Sales and Service ..............0  2001 Microchip Technology Inc. DS51246A-page iv...
  • Page 5: Chapter 1. Introduction

    MCP2120 and MCP2150 infrared communication products. The MCP2120 Developer’s Board and the MCP2150 Developer’s Board can be connected to either a PC via the DB9 connector, or to another system (such as a PICDEM 2 board) via the four pin header.
  • Page 6: Mcp2120/Mcp2150 Developer's Kit User's Guide

    Developer’s Kit, lists the components in the kit, and lists related documentation. Chapter 2: Getting Started – This chapter gives an overview of the MCP2120 and MCP2150 Developer’s Boards, the hardware features of each Developer’s Board, the system configurations that can be used to demonstrate the MCP2120 and MCP2150 devices, and the PC requirements.
  • Page 7: Sample Devices

    Introduction 1.3 Sample Devices Each kit comes with one MCP2120 device and one MCP2150 device. This allows a prototype system to be developed that can be used with an MCP2120 Developer’s Board or an MCP2150 Developer’s Board. 1.4 Reference Documents...
  • Page 8 MCP2120/MCP2150 USER’S GUIDE NOTES:  2001 Microchip Technology Inc. DS51246A-page 4...
  • Page 9: Chapter 2. Getting Started

    MCP2120/MCP2150 USER’S GUIDE Chapter 2. Getting Started 2.1 Introduction This chapter covers an overview of the MCP2120 and MCP2150 Developer’s Boards features, the system configurations that they can be used in, and the system requirements for the tutorials. 2.2 Highlights Topics covered in this chapter •...
  • Page 10: Developer Board Features

    MCP2120/MCP2150 USER’S GUIDE 2.3 Developer Board Features 2.3.1. MCP2120 Developer’s Board The MCP2120 Developer’s Board, as shown in Figure 2.1, has the following hardware features: 1. On-board +5V regulator for direct input from 9V, 750 mA AC/DC wall adapter or 9V battery.
  • Page 11 Getting Started Figure 2.1: MCP2120 Developer’s Board Hardware D6 D2 U2 C10 U4 R4 JP4 (MCP2120) Open=Enabled Component Transceiver R8 R7 Integrated JP3:JP1 Transceiver /768 000=F R2 C2 /384 001=F /192 010=F /128 011=F 100=F 111=S/W Baud Open=0 MCP2120 Developer’s Board +5V GND 02-01608 Rev.
  • Page 12 UART signal. Jumpers J6 and J7 are used to determine the source and destination of the infrared data signals used by the interface between the MCP2120 and Optical Transceiver. When the header has the pins closest to the “Integrated Transceiver”...
  • Page 13 Note 1: An external clock is recommended for frequencies below 2 MHz. Note 2: For frequencies above 7.5 MHz, the TXIR pulse width (MCP2120 Data Sheet, Electrical Specification, parameter IR121) will be shorter than the minimum pulse width of 1.6 µs in the IrDA standard specification.
  • Page 14 MCP2120/MCP2150 USER’S GUIDE 2.3.1.3 UART Mode Figure 2.4 shows the jumper which determines if the MCP2120 Developer’s Board is to be used in Hardware Baud operation, or Software Baud operation. When in Software Baud operation, an additional signal is required, Request To Send (RTS), which is used to drive the RESET pin low to cause a change of baud rate to occur.
  • Page 15 Getting Started 2.3.1.4 Disabling the MCP2120 Figure 2.5 shows the jumper, JP4, which will enable or disable the MCP2120 device. When the MCP2120 is disabled, the device will consume less current. Figure 2.5: MCP2120 Enable/Disable D6 D2 (MCP2120) Open=Enabled Component...
  • Page 16 9. Two IR Transceiver options (two jumpers select transceiver). 10. Jumper to disable MCP2150 device operation. 11. Hardware Baud selection. Note: A schematic of the MCP2150 Developer’s Board is shown in Figure A.6  2001 Microchip Technology Inc. DS51246A-page 12...
  • Page 17 Figure 2.7: MCP2150 Board Hardware Power D2D5 R2 JP3 R6 C13 (MCP2150) Open=Enabled Component Transceiver JP2 JP1 C4 C2 Integrated JP2 JP1 BAUD Transceiver 9600 19200 57600 115200 MCP2150 Dev Board +5VGND 02-01609 Rev. 1  2001 Microchip Technology Inc. DS51246A-page 13...
  • Page 18 Host signals. optical transceiver logic. Both jumpers should connect the same pin positions J2, J3 and J4 J7 and J8 Header is source. Component Transceiver DB9 is source. Integrated Transceiver  2001 Microchip Technology Inc. DS51246A-page 14...
  • Page 19 JP2:JP1 9600 57600 19200 115200 Table: 2.2 Serial Baud Rate Selection vs. Frequency BAUD1:BAUD0 Baud Rate @ 11.0592 MHz Bit Rate 9600 / 1152 19200 / 576 57600 / 192 115200 / 96  2001 Microchip Technology Inc. DS51246A-page 15...
  • Page 20 MCP2150 by connecting a signal to the JP3 header as shown in Figure 2.11. Figure 2.11: Host Controller Disabling the MCP2150 MCP2150 Developer’s Board Host Controller MCP2150 I/O Pin (High or Hi Impedance = Enabled Low = Disabled)  2001 Microchip Technology Inc. DS51246A-page 16...
  • Page 21: System Configurations

    2000 considers the IrDA port to be a network device. Applications that can access a network service through a network protocol (i.e. TCP/IP) can use the MCP2120 Developer’s Board using the appro- priate Windows 2000 driver. Palm is a trademark of Palm, Inc.
  • Page 22 Developer’s Board #2 MCP2120 Dev Board (ASCII) ↔ MCP2120 Dev Board (ASCII) This is the typical mode that will be used for the two MCP2120 Developer’s Board. In this configuration, the MCP2120 board receives data as a single ASCII byte. This byte is then translated to the IR data format, and transmitted out of the selected optical transceiver logic.
  • Page 23 MCP2120 Dev Board (IR Driver) → IrDA standard port (Palm Pilot, cell phone, ...) This configuration is used to evaluate the MCP2120 for an IrDA system, where the Host Controller is responsible for the IrDA protocol stack. The MCP2120 Developer’s Board interfaces to a PC running a terminal emulation program, such as Hyperterminal, that connects the IR port to a virtual serial port.
  • Page 24: Pc Requirements

    2000 considers the IrDA port to be a network device. Applications that can access a network service through a network protocol (i.e. TCP/IP) can use the MCP2120 Developer’s Board using the appro- priate Windows 2000 driver.  2001 Microchip Technology Inc.
  • Page 25: Chapter 3. Mcp2120 Tutorial

    MCP2120/MCP2150 USER’S GUIDE Chapter 3. MCP2120 Tutorial 3.1 Introduction This chapter covers a tutorial for using the MCP2120 Developer’s Board. 3.2 Highlights Topics covered in this chapter • MCP2120 Tutorial Setup • Hardware Setup • Setting Up the Terminal Program •...
  • Page 26: Hardware Setup

    3.4.1. Oscillator The crystal oscillator has pin receptacles to allow the changing of the MCP2120 oscillator frequency. For the tutorial, we will be using a crystal frequency of 7.3728 MHz. This crystal frequency is shipped in the kit. 3.4.2. Board Jumpers The MCP2120 and MCP2150 Developer’s Boards may use one of two host...
  • Page 27 MCP2120 Tutorial Figure 3.3 shows the three Baud Rate Select jumpers (JP3:JP1) and the baud rate formula that is specified (baud rate dependant on MCP2120 operational frequency). The tutorial requires these jumpers to be open for a baud rate of 9600, when the crystal frequency is 7.3728 MHz.
  • Page 28 MCP2120/MCP2150 USER’S GUIDE Figure 3.4 shows jumpers JP4 and JP5 and their state. For the tutorial, both of these jumpers are required to be open. Figure 3.4: MCP2120 UART Mode and Enable Mode D6 D2 (MCP2120) Open=Enabled Component Transceiver Integrated...
  • Page 29: Setting Up The Terminal Program

    95 Operating System (OS) comes with a Terminal Emulation program called Hyperterminal. This tutorial uses this program to demonstrate the operation of the MCP2120/MCP2150 Developer’s Kit boards. To open Hyperterminal, select Start > Programs > Accessories and select the Hyperterminal folder. Then double click the program file Hypertrm.exe. to start Hyperterminal.
  • Page 30 (Connect using). In our case, we are using COM1. Click OK. Figure 3.7: Selecting Communications (COM) Port The Default settings for COM1 are displayed in Figure 3.8. Figure 3.8: Hyperterminal Default COM Port Settings  2001 Microchip Technology Inc. DS51246A-page 26...
  • Page 31 The COM port settings need to be modified so the Bits per second is “9600” and the Flow Control is “None”, as shown in Figure 3.9. Click OK when done. Figure 3.9: Desired Hyperterminal COM Port Settings  2001 Microchip Technology Inc. DS51246A-page 27...
  • Page 32 MCP2120/MCP2150 USER’S GUIDE The terminal window opens connected to the serial port as shown in Figure 3.10. Figure 3.10: Hyperterminal Screen After Initial Setup  2001 Microchip Technology Inc. DS51246A-page 28...
  • Page 33 To disconnect, click on the icon with the handset with the down arrow onto the phone base as shown in Figure 3.11. Figure 3.11: Disconnecting Hyperterminal  2001 Microchip Technology Inc. DS51246A-page 29...
  • Page 34 MCP2120/MCP2150 USER’S GUIDE To modify the properties of this Hyperterminal session, select File > Properties as shown in Figure 3.12. Figure 3.12: Selecting Hyperterminal Properties Menu  2001 Microchip Technology Inc. DS51246A-page 30...
  • Page 35 MCP2120 Tutorial The Hyperterminal Properties window will appear as shown in Figure 3.13. Clicking the “Configure...” button will open the COM Properties window shown in Figure 3.14. Figure 3.13: Hyperterminal Properties Menu (Connect To)  2001 Microchip Technology Inc. DS51246A-page 31...
  • Page 36 Verify the settings are as desired. If not, change the settings to match the settings in Figure 3.14. Click the OK button and you will return to the window shown in Figure 3.13. Figure 3.14: Configure Connection Menu  2001 Microchip Technology Inc. DS51246A-page 32...
  • Page 37 Hyperterminal window more convenient. Figure 3.15: Hyperterminal Properties Menu (Settings) Clicking on the “Input Translation...” button will bring up the following window. Click Cancel to close this window. Figure 3.16: Input Translation Menu  2001 Microchip Technology Inc. DS51246A-page 33...
  • Page 38 Clicking on the “ASCII Setup...” button will bring up the ASCII Setup window. Make the changes as shown in Figure 3.17 by checking the “Echo typed characters locally” setting. Click OK to apply these changes and close the window. Figure 3.17: ASCII Setup Menu  2001 Microchip Technology Inc. DS51246A-page 34...
  • Page 39: Transmitting/Receiving Data

    Now both PCs should have their Hyperterminal program running in the connected mode with the same COM port settings. See Figure 3.9. Each MCP2120 Developer’s Board should be powered. Use the pair of 18” (45 cm) power jumper cables to power MCP2120 Developer’s Board #2 from MCP2120 Developer’s Board #1.
  • Page 40 Figure 3.19 and Figure 3.20 shows a debug flow to help troubleshoot the communications between the two MCP2120 Developer’s Boards. Figure 3.19 shows the steps for the transmit side of System #1 (PC #1 and MCP2120 Developer’s Board #1). If it appears that the TXIR signal is correct, then the receive side needs to be validated.
  • Page 41 MCP2120 Tutorial Figure 3.19: Debug Flowchart - MCP2120 Developer’s Board #1 Side Debug Board #1 Set up digital oscilloscope to capture waveform on first falling edge (Start bit) Type character in PC #1 Hyperterminal window Data appear on MCP2120 TX pin?
  • Page 42 MCP2120/MCP2150 USER’S GUIDE Figure 3.20: Debug Flowchart - MCP2120 Developer’s Board #2 Side Verify that the connection for Debug Board #2 Board #1 TXIR to Optical Transceiver and Board #2 Optical Transceiver to RXIR (3 pin headers J6 and J7).
  • Page 43: Chapter 4. Mcp2150 Tutorial

    • MCP2150 Tutorial 4.3 MCP2150 Tutorial This tutorial was not available for this revision of the MCP2120/MCP2150 Developer’s Kit User’s Guide. Please check in the Development Tools section of the Microchip web site (www.microchip.com) for revision B of the User’s Guide.
  • Page 44 MCP2120/MCP2150 USER’S GUIDE NOTES:  2001 Microchip Technology Inc. DS51246A-page 40...
  • Page 45: Chapter 5. Using A Picdem™ 1 Or Picdem™ 2 Board As Host

    Note 1: U1 is for use with any 40-pin PIC17C4X device. 2: U2 is for use with any 18-pin PIC16C5X, PIC16CXXX device. 3: U3 is for use with any 28-pin PIC16C5X, PIC16CXXX device.  2001 Microchip Technology Inc. DS51246A-page 41...
  • Page 46 Host controller. AN756, “Using the MCP2120 for Infrared Communication”, DS00756, uses the MCP2120 Developer’s Board and has two code examples. The first is using a PIC16F84 with the MCP2120 Developer’s Board in Hardware Baud mode. In this mode, only two signals need to be interfaced. The RX and TX signal.
  • Page 47: Using The Picdem 2 Board

    RESET (OSO) KEYPAD PICDEM 2 DEMO BOARD ©1994 Note 1: U2 is for use with any 28-pin PIC16CXXX or PIC18CXXX device. 2: U1 is for use with any 40-pin PIC16CXXX or PIC18CXXX device.  2001 Microchip Technology Inc. DS51246A-page 43...
  • Page 48 Navagate window and selecting Developer’s Tool Box > Development Tools. The PICDEM 2 User’s Guide literature number is DS30374, and the PICDEM 2 kit can be ordered with Part Number DM163002.  2001 Microchip Technology Inc. DS51246A-page 44...
  • Page 49: Appendix A. Hardware Detail

    +5V and GND. A pair of 18” (45 cm) cables are pro- vided to allow one board to power another. A.2 Power Indicator One green LED indicates whether there is power applied to the MCP2120 and MCP2150 Developer Boards (LED lit) or not (LED off). A.3 RS-232 Serial Port A.3.1...
  • Page 50: Jumpers

    • Device Enable signal for power down operation A.4.1 MCP2120 Developer’s Board The MCP2120 Developer’s Board has the following jumpers: 1. Two jumpers to select source of UART signals. Either RS-232C socket or the four-pin header. 2. Three jumpers to select desired baud rate.
  • Page 51 Figure A.2: MCP2150 Developer’s Board Hardware Power D2 D5 R2 JP3 R6 C13 (MCP2150) Open=Enabled Component Transceiver JP2 JP1 C4 C2 Integrated JP2 JP1 BAUD Transceiver 9600 19200 57600 115200 MCP2150 Dev Board +5VGND 02-01609 Rev. 1  2001 Microchip Technology Inc. DS51246A-page 47...
  • Page 52: Oscillator Options

    MCP2120/MCP2150 USER’S GUIDE A.5 Oscillator Options The MCP2120 can be operated at different frequencies, while the MCP2150 only operates at a single fixed frequency. A.5.1 MCP2120 Developer’s Board The MCP2120 Developer’s Board crystal has pin receptacles so that crystal frequencies can easily be changed. Table A.1 shows the baud rates for a given crystal frequency, based on the state of the BAUD2:BAUD0 pins.
  • Page 53: Board Layout

    Hardware Detail A.6 Board Layout Figure A.3 shows the component layout (silkscreen) for the MCP2120 Board. Figure A.3: MCP2120 Developer’s Board Component Layout D6 D2 (MCP2120) Open=Enabled Component Transceiver Integrated JP3:JP1 Transceiver /768 000=F /384 001=F /192 010=F /128 011=F...
  • Page 54: Schematics

    MCP2120/MCP2150 USER’S GUIDE A.7 Schematics Figure A.5 shows the schematic for the MCP2120 Developer’s Board. Figure A.6 shows the schematic for the MCP2150 Developer’s Board.  2001 Microchip Technology Inc. DS51246A-page 50...
  • Page 55 Hardware Detail Figure A.5: MCP2120 Developer’s Board Schematic  2001 Microchip Technology Inc. DS51246A-page 51...
  • Page 56 MCP2120/MCP2150 USER’S GUIDE Figure A.6: MCP2150 Developer’s Board Schematic  2001 Microchip Technology Inc. DS51246A-page 52...
  • Page 57: Revision History

    DESCRIPTION OF REVISION This section covers the major changes to this document between the revisions. These changes include the corrections and enhancements that have been implemented. Current Revision (Revision A) Initial release of this document  2001 Microchip Technology Inc. DS51246A-page 53...
  • Page 58 MCP2120/MCP2150 USER’S GUIDE NOTES:  2001 Microchip Technology Inc. DS51246A-page 54...
  • Page 59: Index

    MCP2150 Developer’s Board Component Layout ......... 49 Sample Devices ..........3 Schematics ............. 50 Serial Port ............45 Disabling the MCP2120 ........11 System Configurations ........17 Disabling the MCP2150 ........16 Terminal Program ........... 25 Hardware Setup: Tutorial Setup ........... 21, 39 Board Jumpers .........
  • Page 60 MCP2120/MCP2150 USER’S GUIDE NOTES:  2001 Microchip Technology Inc. DS51246A-page 56...
  • Page 61 NOTES:  2001 Microchip Technology Inc. DS51246A-page 57...
  • Page 62 MCP2120/MCP2150 USER’S GUIDE NOTES:  2001 Microchip Technology Inc. DS51246A-page 58...
  • Page 63 MPLAB and The Embedded Control Solutions Company are reg- No representation or warranty is given and no liability is istered trademarks of Microchip Technology Incorporated in the assumed by Microchip Technology Incorporated with respect U.S.A. and other countries.
  • Page 64 ASIA/PACIFIC Japan Microchip Technology Japan K.K. Corporate Office Australia Benex S-1 6F 2355 West Chandler Blvd. Microchip Technology Australia Pty Ltd 3-18-20, Shinyokohama Chandler, AZ 85224-6199 Suite 22, 41 Rawson Street Kohoku-Ku, Yokohama-shi Tel: 480-792-7200 Fax: 480-792-7277 Epping 2121, NSW...
  • Page 65 WWW.ALLDATASHEET.COM Copyright © Each Manufacturing Company. All Datasheets cannot be modified without permission. This datasheet has been download from : www.AllDataSheet.com 100% Free DataSheet Search Site. Free Download. No Register. Fast Search System. www.AllDataSheet.com...

This manual is also suitable for:

Mcp2150

Table of Contents