MCP2140-I/P Microchip Technology, MCP2140-I/P Datasheet
![IC IRDA CONTROLLER DTE/DCE 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
MCP2140-I/P
Specifications of MCP2140-I/P
Available stocks
Related parts for MCP2140-I/P
MCP2140-I/P Summary of contents
Page 1
... RXPDREF 1 2 TXIR 3 PHACT 4 RESET SSOP RXPDREF 1 TXIR 2 PHACT 3 RESET Block Diagram MCP2140 Encode and TX Protocol Handler Logic PHACT Generator Protocol RX Handler and Decode RTS CTS UART DSR Control DTR CD RI Preliminary 18 RXPD OSC1/CLKI 15 OSC2 RTS 12 CTS 11 DTR 10 DSR 20 RXPD CD 19 ...
Page 2
... PICmicro Microcontroller SO SI RTS I/O CTS I/O DSR I/O DTR I/O CD I/O RI I/O PHACT I/O Note 1: Not all microcontroller I/O pins are required to be connected to the MCP2140. DS21790A-page 2 MCP2140 IR LED TX TXIR Decode Baud Rate Generator RXPD RX + Encode - RXPDREF UART Control Logic ...
Page 3
... IrDA standard operation requires a device frequency of 7.3728 MHz. The MCP2140 will specify to the Primary Device the IR baud rate during the Discover phase. The MCP2140 can operate in Data Communication Equipment (DCE) and Data Terminal Equipment (DTE) applications, and sits between a UART and an infrared optical transceiver ...
Page 4
... PICmicro Microcontroller SO SI RTS I/O CTS I/O DSR I/O DTR I/O CD I/O RI I/O PHACT I/O Note 1: Not all microcontroller I/O pins are required to be connected to the MCP2140. DS21790A-page 4 MCP2140 IR LED TX TXIR Decode Baud Rate Generator RXPD RX + Encode - RXPDREF UART Control Logic ...
Page 5
... An IR link has been established (IR Link) I TTL Data Terminal Ready. Indicates that the Embedded device connected to the MCP2140 is ready for IR data. The state of this bit is communicated to the IrDA Primary Device via the IrDA DSR bit carried by IrCOMM Embedded device not ready 0 = Embedded device ready O — ...
Page 6
... Type Type I TTL Request to Send. Indicates that a Host Controller is ready to receive data from the MCP2140. This signal is locally emu- lated and not related to the CTS/RTS bit of the IrDA Primary device Host Controller not ready to receive data 0 = Host Controller ready to receive data — ...
Page 7
... UART interface. 2.2 Device Reset The MCP2140 is forced into the reset state when the RESET pin is in the low state. Once the RESET pin is brought to a high state, the Device Reset sequence occurs. Once the sequence completes, functional operation begins ...
Page 8
... MCP2140 2.3.1.2 External Clock For applications where a clock is already available elsewhere, users may directly drive the MCP2140 pro- vided that this external clock source meets the AC/DC timing requirements listed in Section 4.3, “Timing Dia- grams and Specifications”. Figure 2-2 external clock circuit should be configured. ...
Page 9
... The RTS and CTS signals are local emulations. 2.4.1 BAUD RATE The baud rate for the MCP2140 serial port (the TX and RX pins) is fixed at 9600 baud when the device frequency is 7.3728 MHz. 2.4.2 TRANSMITTING When the controller sends serial data to the MCP2140, the controller’ ...
Page 10
... MCP2140 FIGURE 2-4: HOST UART CTS FLOW CONTROL FLOWCHART IR Flow Start CTS Low? Transmit Byte CTS Low? DS21790A-page CNTR = 6 Y DTR Low? Y Transmit Byte N CTS Low? Y Preliminary N Lost IR Link CNTR = CNTR - 1 N CNTR = 0? Y 2003 Microchip Technology Inc. ...
Page 11
... IrDA Standard format data and the decoder converts IrDA Standard format data into UART format data. 2.5.1 ENCODER (MODULATION) The data that the MCP2140 UART received (on the TX pin) that needs to be transmitted (on the TXIR pin) will need to be modulated. This modulated signal drives the IR transceiver module. ...
Page 12
... DS21790A-page 12 2.6 IR Port Baud Rate The baud rate for the MCP2140 IR port (the TXIR and RXIR pins) is fixed at the default rate of 9600 baud. The Primary device will be informed of this parameter dur- ing NDM. The Host UART baud rate and the IR port baud rate are the same ...
Page 13
... Physical Signaling Layer (PHY) • Link Access Protocol (IrLAP) • Link Management Protocol/Information Access Service (IrLMP/IAS) The MCP2140 also supports some of the optional pro- tocols for IrDA standard data. The optional protocols implemented by the MCP2140 are: • Tiny TP • IrCOMM ...
Page 14
... The device will exit the Low Power mode when the RXPD pin voltage crosses the REPDREF pin reference voltage. A device reset will also cause the MCP2140 to exit Low Power mode. After device initialization activity occurs for about 10 seconds, the device is disabled and returns into the Low Power mode ...
Page 15
... Buffers and Throughput The IR data rate of the MCP2140 is fixed at 9.6 kbaud. The actual throughput will be less due to several fac- tors. The most significant factors are under the control of the developer. One factor beyond the control of the designer is the overhead associated with the IrDA standard ...
Page 16
... A delay of one bit time is recom- mended between the time a byte is received and another byte is transmitted. 2.12 Device ID The MCP2140 has a fixed Device ID. This Device ID is for an example “MCP2140 xx”, with the xx indicating the silicon revision of the device. Comment ...
Page 17
... Microchip Technology Inc. 2.13.2 INTEGRATED TRANSCEIVER The MCP2140 was designed to use a discrete imple- mentation that allows the lowest system power con- sumption and a low cost implementation (see Section 2.12.1, “Discrete Transceiver Solution”). It is possible to use an integrated optical transceiver solu- tion, with the addition of four components ...
Page 18
... The Primary device will continue to generate timeslots and the Secondary device should continue to respond, even if there’s nothing to do. Note 1: The MCP2140 can only be used to implement a Secondary device. 2: The MCP2140 supports a system with only one Secondary device having ...
Page 19
... The MCP2140 identifies itself to the Primary device as a modem. Note: The MCP2140 identifies itself as a modem to ensure that it is identified as a serial device with a limited amount of memory. However, the MCP2140 is not a modem, and the non- data circuits are not handled in a modem fashion. Figure 2-13) Preliminary MCP2140 ...
Page 20
... No Response to Broadcast ID UA response with parameters using connect address Confirm channel open for IAS Provide IAS responses Confirm channel open for data (MCP2140 DSR pin driven low) Send Data or Status Send Data or Status Confirm shutdown (back to NDM state) PHACT pin driven Low Preliminary 2003 Microchip Technology Inc ...
Page 21
... Some common manufacturers of optical transceivers are shown in Table 2-6. TABLE 2-6: COMMON OPTICAL TRANSCEIVER MANUFACTURERS Company Company Web Site Address ® Sharp www.sharpsma.com ® Infineon www.infineon.com ® Agilent www.agilent.com ® Vishay /Temic www.vishay.com Rohm www.rohm.com 2003 Microchip Technology Inc. Preliminary MCP2140 DS21790A-page 21 ...
Page 22
... MCP2140 NOTES: DS21790A-page 22 Preliminary 2003 Microchip Technology Inc. ...
Page 23
... DEVELOPMENT TOOLS An MCP2140 Demo/Development board is planned. Please check with the Microchip Technology Inc. web site (www.microchip.com) or your local Microchip sales office for product availability. 2003 Microchip Technology Inc. Preliminary MCP2140 DS21790A-page 23 ...
Page 24
... MCP2140 NOTES: DS21790A-page 24 Preliminary 2003 Microchip Technology Inc. ...
Page 25
... Exposure to maximum rating conditions for extended periods may affect device reliability. 2003 Microchip Technology Inc. ...................................................................................................... -0.3V to +14V ................................................................................. –0. DIS Preliminary MCP2140 + 0.3V {( DS21790A-page 25 ...
Page 26
... MCP2140 FIGURE 4-1: VOLTAGE-FREQUENCY GRAPH, -40 C 6.0 5.5 5.0 5.0 4 (Volts) 4.0 3.5 3.0 2 DS21790A-page 7.3728 Frequency (MHz) Preliminary 16 20 2003 Microchip Technology Inc. ...
Page 27
... V — 0.05 — — V/ms — — 2.2 mA — µA can be lowered without losing RAM data. DD measurements are made when device is: DD Preliminary MCP2140 T +85 C (industrial) A Conditions See Figure 4-1 Device Oscillator/Clock stopped V = 3.0V, PHACT = 3.0V, PHACT = RXIR = V , RESET = DS21790A-page 27 ...
Page 28
... MCP2140 4.1 DC Characteristics (Continued) DC Specifications Param Sym Characteristic No. Input Low Voltage V Input pins IL D030 with TTL buffer (TX, RI, DTR, RTS, and CD) D030A D032 RESET D033 OSC1 Input High Voltage V Input pins IH D040 with TTL buffer (TX, RI, DTR, RTS, and CD) D040A D042 ...
Page 29
... TppS T Time osc Oscillator tx Transmit RST Reset P Period R Rise V Valid Z High-impedance T +85 C (industrial) A range as described in DC spec for all pins except OSC2 for OSC2 when external clock is used to drive OSC1 Preliminary MCP2140 Section 4.1. DS21790A-page 29 ...
Page 30
... MCP2140 4.3 Timing Diagrams and Specifications FIGURE 4-3: EXTERNAL CLOCK TIMING Q4 OSC1 TABLE 4-3: EXTERNAL CLOCK TIMING REQUIREMENTS AC Specifications Param. Sym Characteristic No External CLKIN Period OSC (2) Oscillator Period 1A F External CLKIN OSC (2, 3) Frequency Oscillator Frequency 1B F Error in Frequency ERR 1C E External Clock Error ...
Page 31
... Microchip Technology Inc. Q1 20, 21 for load conditions. Electrical Characteristics: Standard Operating Conditions (unless otherwise specified): Operating Temperature: -40 C Operating Voltage V range is described in DD (1) Min Typ Max (2) — (2) — Preliminary MCP2140 Q2 Q3 New Value T +85 C (industrial) A Section 4.1 Units Conditions ns ns DS21790A-page 31 ...
Page 32
... MCP2140 FIGURE 4-5: RESET AND DEVICE RESET TIMING V DD RESET Reset Detected 33 PWRT Timeout 32 OSC Timeout Internal RESET Output Pin TABLE 4-5: RESET AND DEVICE RESET REQUIREMENTS AC Specifications Param. Sym Characteristic No RESET Pulse Width (low) RST 32 T Oscillator Start-up Timer Period ...
Page 33
... IR101 E Transmit (TX pin) Baud rate TXBIT Error (into MCP2140) IR102 E Transmit (TXIR pin) Baud rate TXIRBIT Error (out of MCP2140) IR103 pin rise time and fall time TX Note 1: This error is not additive to IR101 parameter. 2003 Microchip Technology Inc. Start Bit Data Bit ...
Page 34
... Sym Characteristic No. IR110 T Receive Baud Rate RXBIT IR111 E Receive (RXPD and RXPDREF pin RXBIT detection) Baud rate Error (into MCP2140) IR112 E Receive (RX pin) Baud rate Error (out of RXBIT (1) MCP2140) IR113 pin rise time and fall time TX Note 1: This error is not additive to the IR111 parameter. ...
Page 35
... Standard Operating Conditions (unless otherwise specified): Operating Temperature: -40 C Operating Voltage V range is described in DD Min Typ Max 768 — 768 24 — 24 (1) — 16 — Preliminary MCP2140 Data bit ... IR122 IR122 +85 C (industrial) A Section 4.1 Units Conditions T BAUD = 9600 OSC T OSC T BITCLK ...
Page 36
... MCP2140 FIGURE 4-9: RXPD/RXPDREF WAVEFORMS Start Bit Data bit 7 IR110A BITCLK RXPD RXPDREF IR131A IR131B IR131B 0 Start Bit Data bit 7 RXPD RXPDREF IRD160 IRD161 TABLE 4-9: RXPD/RXPDREF REQUIREMENTS AC Specifications Param. Sym Characteristic No. IR110A T Receive Baud Rate RXPDBIT IR131A T PW RXPD pulse width ...
Page 37
... RXPD pulse edge to valid RXPD OSC device oscillator Note 1: At 9600 Baud bytes (of the 11 byte repeated SOF character). This allows the MCP2140 to recognize a SOF character and properly receive the IR packet. 2003 Microchip Technology Inc. IR140 Electrical Characteristics: Standard Operating Conditions (unless otherwise specified): ...
Page 38
... MCP2140 NOTES: DS21790A-page 38 Preliminary 2003 Microchip Technology Inc. ...
Page 39
... DC AND AC CHARACTERISTICS GRAPHS AND TABLES Not available at this time. 2003 Microchip Technology Inc. Preliminary MCP2140 DS21790A-page 39 ...
Page 40
... MCP2140 NOTES: DS21790A-page 40 Preliminary 2003 Microchip Technology Inc. ...
Page 41
... Standard device marking consists of Microchip part number, year code, week code and traceability code. 2003 Microchip Technology Inc. Example: MCP2140-I/P XXXXXXXXXXXXXXXXX XXXXX0352987 Example: MCP2140-I/SO XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX ...
Page 42
... MCP2140 18-Lead Plastic Dual In-line (P) – 300 mil (PDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width Overall Length Tip to Seating Plane Lead Thickness Upper Lead Width Lower Lead Width Overall Row Spacing § ...
Page 43
... L .016 .033 .050 .009 .011 .012 B .014 .017 .020 Preliminary MCP2140 A2 MILLIMETERS MIN NOM MAX 18 1.27 2.36 2.50 2.64 2.24 2.31 2.39 0.10 0.20 0.30 10.01 10.34 10.67 7.39 7.49 7.59 11.33 11.53 11.73 0.25 0.50 ...
Page 44
... MCP2140 20-Lead Plastic Shrink Small Outline (SS) – 209 mil, 5.30 mm (SSOP Dimension Limits Number of Pins Pitch Overall Height Molded Package Thickness Standoff § Overall Width Molded Package Width Overall Length Foot Length Lead Thickness Foot Angle Lead Width Mold Draft Angle Top ...
Page 45
... REFERENCE MODEL Figure B-1 shows the ISO Network Layering Reference Model. The shaded areas are implemented by the MCP2140, while the cross-hatched area is imple- mented by an infrared transceiver. The unshaded areas should be implemented by the Host Controller. Has to be implemented in Host Controller firmware ...
Page 46
... Physical Signaling Layer (PHY) • Link Access Protocol (IrLAP) • Link Management Protocol/Information Access Service (IrLMP/IAS) The MCP2140 also supports some of the optional pro- tocols for IrDA data. The optional protocols that the MCP2140 implements are: • Tiny TP • IrCOMM B ...
Page 47
... Device discover procedures • Hidden node handling. 115.2 kbaud Note: Not supported by MCP2140. Figure B-3 identifies the key parts and hierarchy of the IrDA protocols. The bottom layer is the Physical layer, IrPHY. This is the part that converts the serial data to and from pulses of IR light. IR transceivers can’ ...
Page 48
... FIGURE B-5: IRCOMM SERVICE CLASSES Uncooked Services Parallel IrLPT 3-wire Raw Supported by MCP2140 DS21790A-page 48 B.1.4 LINK MANAGEMENT - INFORMATION ACCESS SERVICE (LM-IAS) Each LM-IAS entity maintains an information database to provide: • Information on services for other devices that contain the IrDA standard feature (Discovery) • ...
Page 49
... Also how call control and real-time voice are handled (RTCON). Note: Not supported by MCP2140. B.1.7.5 IrDA Lite IrDA Lite describes how to reduce the application code requirements, while maintaining compatibility with the full implementation. Note: Not supported by MCP2140. 2003 Microchip Technology Inc. Preliminary MCP2140 DS21790A-page 49 ...
Page 50
... The Primary device will continue to generate timeslots and the Secondary device should continue to respond, even if there’s nothing to do. Note 1: The MCP2140 can only be used to implement a Secondary device. 2: The MCP2140 supports a system with only one Secondary device having exclu- sive use of the IrDA standard infrared link (known as “ ...
Page 51
... Primary supports all data rates up to 115.2 kbaud and the Secondary device only supports 9.6 kbaud, the link will be established at 9.6 kbaud. Note: The MCP2140 is limited to a data rate of 9.6 kbaud. Once the hardware parameters are established, the Primary device must determine if the Secondary device has the resources it requires. If the Primary device has a job to print, then it must know if it’ ...
Page 52
... No Response to Broadcast ID UA response with parameters using connect address Confirm channel open for IAS Provide IAS responses Confirm channel open for data (MCP2140 DSR pin driven low) Send Data or Status Send Data or Status Confirm shutdown (back to NDM state) Preliminary 2003 Microchip Technology Inc. ...
Page 53
... APPENDIX D: DB-9 PIN INFORMATION Table D-1 shows the DB-9 pin information and the direction of the MCP2140 signals. The MCP2140 is designed for use in Data Communications Equipment (DCE) applications. TABLE D-1: DB-9 SIGNAL INFORMATION DB-9 Signal Direction Pin No MCP2140 Carrier Detect 2 RX MCP2140 ...
Page 54
... MCP2140 NOTES: DS21790A-page 54 Preliminary 2003 Microchip Technology Inc. ...
Page 55
... Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using. Customer Notification System Register on our web site (www.microchip.com/cn) to receive the most current information on our products. 2003 Microchip Technology Inc. Examples: a) MCP2140-I/P = Industrial Temp., PDIP packaging b) MCP2140-I/SO = Industrial Temp., SOIC package c) MCP2140T-I/SS = Tape and Reel, Industrial Temp ...
Page 56
... MCP2140 NOTES: DS21790A-page 56 Preliminary 2003 Microchip Technology Inc. ...
Page 57
... MPSIM, PICC, PICkit, PICDEM, PICDEM.net, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC, Select Mode, SmartSensor, SmartShunt, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. ...
Page 58
... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan Microchip Technology (Barbados) Inc., Taiwan Branch 11F-3, No ...