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 to 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 NO 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.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, microID, MPLAB, PIC, PICmicro,
PICSTART, PRO MATE, PowerSmart, rfPIC and SmartShunt
are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active
Thermistor, Mindi, MiWi, MPASM, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel, Total
Endurance, UNI/O, 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.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona, Gresham, Oregon and Mountain View, California. The
Company’s quality system processes and procedures are for its
PICmicro
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.
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.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP212X Developer’s Daughter Board. Items discussed in this chapter include:
This document describes how to use the MCP212X Developer’s Daughter Board. The
manual layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP212X
Developer’s Daughter Board.
• Chapter 2. “Installation and Operation” – Includes a detailed description of
each function, as well as instructions on how to get started with this daughter
board.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP212X Developer’s Daughter Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP212X Developer’s Daughter Board.
• Appendix C. “Board Testing” – Discusses the testing of the MCP212X
Developer’s Daughter Board in several configurations.
• Appendix D. “Using the MCP212X Developer’s Daughter Board with the PICDEM™ HPC Explorer Demo Board” – Shows how the MCP212X
Developer’s Daughter Board can be demonstrated using the PICDEM™ HPC
Explorer Demo Board.
• Appendix E. “Using the MCP212X Developer’s Daughter Board with the PICDEM™ FS USB Demo Board” – Shows how the MCP212X Developer’s
Daughter Board can be demonstrated using the PICDEM™ FS USB Demo Board.
• Appendix F. “Configuring the HyperTerminal
configuration of the HyperTerminal program used to demonstrate the MCP212X
Developer’s Daughter Board system.
This user's guide describes how to use the MCP212X Developer’s Daughter Board.
The following Microchip documents are available and recommended as supplemental
reference resources.
MCP2122 Data Sheet (DS21894)
This data sheet provides detailed information regarding the MCP2122 device.
MCP2120 Data Sheet (DS21618)
This data sheet provides detailed information regarding the MCP2120 device.
AN946, “Interfacing the MCP2122 to Host Controller” (DS00946)
This application note discusses the interface between a Host Controller and the
MCP2122 device.
TB073, “Selecting a MCP21XX Device for IrDA
This technical brief discusses the selection of the MCP21XX devices for IrDA
standard applications.
AN756, “Using the MCP2120 for Infrared Communications” (DS00756)
This application note discusses the encoding/decoding function of the MCP2120 as
specified in the physical layer component of the IrDA
AN923, “Using the MCP2120 Developer’s Board for “IR Sniffing” (DS00923)
This application note discusses how one can use the MCP2120 Developer’s Board for
“IR Sniffing”. This technique can assist in the debugging of an IrDA
®
Applications” (DS91073)
®
standard.
®
standard system.
®
The following documents may be useful, depending on which PICDEM™ demo
board you are using with the MCP212X Developer’s Daughter Board.
PIC18F8722 Family Data Sheet (DS39646)
This data sheet provides detailed information regarding the PIC18F8722 device. This
device is used on the PICDEM™ HPC Explorer Demo Board (DM183022).
PICDEM™ 2 Plus Demo Board User’s Guide (DS51275)
This user’s guide provides detailed information regarding the PICDEM™ 2 Plus Board
(DM163022).
PIC16F87XA Family Data Sheet (DS39582)
This data sheet provides detailed information regarding the PIC16F87XA device. This
device is used on the PICDEM™ 2 Plus Demo Board (DM163022).
PICDEM™ FS USB Demonstration Board User’s Guide (DS51526)
This user’s guide provides detailed information regarding the PICDEM™ Full-Speed
USB Demo Board (DM163025).
PIC18F4550 Data Sheet (DS39632)
This data sheet provides detailed information regarding the PIC18F4550 device. This
device is used on the PICDEM™ Full-Speed USB Demo Board (DM163025).
PICDEM™ LCD Demo Board User’s Guide (DS51536)
This user’s guide provides detailed information regarding the PICDEM™ LCD
Demo Board (DM163028).
PIC18F8490 Data Sheet (DS39629)
This data sheet provides detailed information regarding the PIC18F8490 device. This
device is used on the PICDEM™ LCD Demo Board (DM163028).
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 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 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
• Development Systems Information Line
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
Preface
DOCUMENT REVISION HISTORY
Revision B (July 2006)
• Add disclaimer to Bill of Materials regarding RoHS-Compliant part numbers.
This chapter provides an overview of the MCP212X Developer’s Daughter Board and
covers the following topics:
• What is the MCP212X Developer’s Daughter Board?
• What the MCP212X Developer’s Daughter Board kit includes
1.2WHAT IS THE MCP212X DEVELOPER’S DAUGHTER BOARD?
The MCP212X Developer’s Daughter Board is used to evaluate and demonstrate the
MCP2122 or MCP2120 IrDA
®
Standard Encoder/Decoder device. This allows the
system designer to implement a low-cost, wireless IR port in any application providing
support for IrDA standard bit encoding/decoding.
The MCP212X Developer’s Daughter Board is designed to interface to several of the
“new” low-cost PICmicro
®
microcontroller-based demonstration (demo) boards, or to
be interfaced into your application. Multiple header interfaces are available that allow
support for the many different PICDEM™ Demo Boards, as well as being easily
jumpered into systems for development purposes. Table 1-1 shows some of the
PICDEM demo boards that are supported.
Depending on the features of the PICmicro Microcontroller Unit (MCU) and the
selected demo board, the MCP2122 TX and RX signals can either be connected
(jumpered) directly to the RS-232 line driver or to the PICmicro MCU’s RX and TX
signals. The PICmicro MCU could process that data and then send it out of the UART.
Note 1:Other boards may also be supported. Please refer to the MCP212X Developer’s Daughter Board and
desired PICDEM™ Demo Board documentation to determine if the boards you are using are supported.
2:For proper orientation of the daugter board to the PICDEM™ demo board, Revision 5 of the PICDEM™
HPC Explorer Board is recommended. Revision 4 will function, but the direction of the optical transceiver
will be facing the same side as the serial port connector.
3:The MCP212X Developer’s Daughter Board allows the MCP212X TX and RX signals to be routed to
different header connections. This may allow the system to support multiple configurations, such as being
either connected to the PICmicro
communicate via the DB-9 connector).
Order
Number
(2)
DM183022DS51540PIC18F8722J1, J2YY
Literature #
®
MCU USART or to the RS-232 driver (allows the MCP212X to directly
This chapter discusses the operation of the MCP212X Developer’s Daughter Board
and how it can be used in conjunction with some of Microchip’s low-cost PICDEM™
Demo Boards or easily connected to your system.
When the MCP212X Developer’s Daughter Board is used in conjunction with one of the
low-cost PICDEM™ Demo Boards, it demonstrates the implementation of an
embedded system with an IrDA
A second encoder/decoder system is required to demonstrate system operation.
The Host UART interface includes only the TX and RX signals. A discussion of the Host
UART interface is given in the following application note:
•AN946, “Interfacing the MCP2122 to the Host Controller” (DS00946)
MCP212X DEVELOPER’S
DAUGHTER BOARD USER’S GUIDE
®
standard physical layer interface (encoder/decoder).
The major components for the MCP212X Developer’s Daughter Board are:
1.MCP2122 device (U4).
2.MCP2120 device socket (U1).
3.Optical transceiver (U5 – Vishay TFDU 4300).
4.Headers H1 and H2.
5.Header H3.
6.Header HD1.
7.Jumpers to route the TX, RX and 16XCLK signals.
8.Jumpers to select the baud rate and mode.
9.Footprint for two different optional optical transceiver circuits
(Vishay TFDU 4100 and Agilent HSDL 3000).
10. MCP2120 crystal (Y2).
The MCP212X Developer’s Daughter Board is assembled and tested to allow for the
evaluation and demonstration of the MCP2122 or MCP2120 features. A schematic of
the circuit, as well as the corresponding PCB layout, is shown in Appendix A. “Schematic and Layouts”. Appendix B. “Bill Of Materials (BOM)” shows two
tables; the first is the components that are installed, while the second lists the optional
components that are not installed.
The component layout floor plan is shown in Figure 2-1.
Figure 2-2 shows the component layout for the MCP212X Developer’s Daughter Board
and the operation of the JMP1/JP6, JMP2 and JMP3/JP7 jumpers. These jumpers
determine the connections between the MCP2120’s RX, TX and 16XCLK signals, as
well as the header’s RX, TX and 16XCLK signals.
FIGURE 2-2:JMP1/JP6, JMP2 AND JMP3/JP7 CONFIGURATIONS
16XCLK Source
16XCLK is from the
J1-RC2 pin
16XCLK is from the
J3-RC2 pin or J3-16X
JMP1/JP6 (RX)
Selections
RX to H1-RC7 (RXD)
RX to H2-RG2 (RX2),
RX to H3-RC7 (RXD), and
RX to H3-RX
RX to H1-RC6 (TXD)
(DB-9 to PC)
JMP3/JP7 (TX)
Selections
TX to H1-RC6 (TXD)
TX to H2-RG1 (TX2),
TX to H3-RC6 (TXD), and
TX to H3-TX
Figure 2-3 shows the component layout for the MCP212X Developer’s Daughter Board
and the operation of the JP1, JP2, JP3 and JP4 jumpers. When the jumper is open, the
signal is pulled high. When the jumper is shorted, the signal is pulled to ground. JP1 is
connected to the header’s RA0 signal, JP2 is connected to the header’s RA1 signal,
JP3 is connected to the header’s RC0 signal and JP4 is connected to the header’s RC1
signal. These signals are also connected to the MCP2120’s BAUD and MODE pins.
FIGURE 2-3:JP1, JP2, JP3 AND JP4 CONFIGURATIONS
Baud Rate Selection
JP1 JP2 JP3
9600 Baud
19200 Baud
38400 Baud
All Other
Settings
57600 Baud
115200 Baud
Not Defined
Mode Selection
MCP212X communicates with
DB-9 (PC)
MCP212X communicates with
PIC18F8722
Note 1:This is the firmware operation for
00063 HPC.asm when used w/
the PICDEM™ HPC Explorer
Demo Board.
A description of the MCP212X Developer’s Daughter Board jumpers is given in
Ta bl e 2- 2.
TABLE 2-2:JUMPER DESCRIPTIONS AND SETTINGS
Jumper #DescriptionComment
JP1A:JP2ATo connect TXIR/RXIR of MCP2122 to TXD/RXD of
U5 (HSDL 3000)
S = TXIR/RXIR connected to TXD/RXD
O = TXIR/RXIR Not connected to TXD/RXD
JP1B:JP2BTo connect TXIR/RXIR of MCP2122 to TXD/RXD of
U5 (TFDU 4100)
S = TXIR/RXIR connected to TXD/RXD
O = TXIR/RXIR Not connected to TXD/RXD
JP1C:JP2C To connect TXIR/RXIR of MCP2122 to TXD/RXD of
U5 (TFDU 4300)
S = TXIR/RXIR connected to TXD/RXD
O = TXIR/RXIR Not connected to TXD/RXD
JP1Hardware control of Header RA0 signal and MCP2120
BAUD0 signal
S = Signal Connected to V
O = Signal Connected to VDD
JP2Hardware control of Header RA1 signal and MCP2120
BAUD1 signal
S = Signal Connected to VSS
O = Signal Connected to VDD
JP3Hardware control of Header RC0 signal and MCP2120
BAUD2 signal
S = Signal Connected to V
O = Signal Connected to VDD
JP4Hardware control of Header RC1 signal and MCP2120
MODE signal
S = Signal Connected to V
O = Signal Connected to VDD
JP5Hardware control of Header RA3 signal and MCP2120 EN
signal
S = Signal Connected to VSS
O = Signal Connected to VDD
JMP1Connects MCP2120 RX signal to either Header 1’s RX
signal or Header 2/Header 3 RX signals
JP6Connects MCP2120 RX signal to Header 1’s TX signalUsed when the MCP2120
JMP2Connects MCP2120 16XCLK signal to either Header 1’s
16XCLK signal or to Header 2/Header 3’s 16XCLK signals
JMP3Connects MCP2120 TX signal to Header 1’s TX
signal or Header 2/Header 3 TX signals
JP7Connects MCP2120 TX signal to Header 1’s RX
signal
Legend: S = Jumper is shorted (Closed)O = Jumper is Open
Note 1: The MCP2120’s RX signal is either connected via JMP1 or JP6 (but not both at the same time).
2: The MCP2120’s TX signal is either connected via JMP3 or JP7 (but not both at the same time).
SS
SS
SS
By default not installed.
By default not installed.
By default not installed. PCB traces
short these jumpers (bottom of PCB)
Note 1
communicates directly from the DB-9
connector. (Note 1)
Note 2
Used when the MCP2120
communicates directly from the DB-9
connector. (Note 2)
The MCP212X Developer’s Daughter Board requires a clock source and either a Host
Controller or a UART circuit. To demonstrate the board, the easiest method is to use
one of the compatible PICDEM™ Demo Boards. A good choice is the PICDEM™ HPC
Explorer Demo Board. This allows the MCP2120 device to interface to either:
• PIC18F8722’s EUSART1
• PIC18F8722’s EUSART2
• PICDEM™ HPC Explorer Demo Board’s DB-9 connector (MAX3232C)
Additional instructions for performing a demo using the PICDEM™ HPC Explorer
Demo Board are shown in Appendix D. “Using the MCP212X Developer’s Daughter
Board with the PICDEM™ HPC Explorer Demo Board”. Appendix E. “Using the
MCP212X Developer’s Daughter Board with the PICDEM™ FS USB Demo Board”
supplies instructions for performing a demo using the PICDEM™ FS USB Demo
Board. Appendix F. “Configuring the HyperTerminal
configuring the HyperTerminal program on the PC.
System Requirements
Table 2-3 shows the requirements for a system that can be used to demonstrate the
MCP212X Developer’s Daughter Board.
System Setup
The system setup requires a PC with two serial communication ports (UARTs) and
HyperTerminal, the system application program. Two PICDEM™ HPC Explorer Demo
Boards and two MCP212X Daughter Boards are then needed.
®
Program” may be useful for
Note:The MCP2122 may be installed in U4, or the MCP2120 may be installed in
U1. However, these devices should not be installed at the same time.
Figure 2-4 shows a system block diagram.
TABLE 2-3:SYSTEM HARDWARE REQUIREMENTS
QtyHardwarePurpose
1PC with 2 serial portsThe PC will “talk” to each PICDEM™ HPC Explorer Demo Board
(Encoder/Decoder board) via the serial port and an instance of the
HyperTerminal® program. For consistency, COM 1 will be used to talk to the
“System #1” PICDEM™ HPC Explorer Demo Board. Com 2 will be used to
communicate to the “System #2” PICDEM™ HPC Explorer Demo Board.
2Serial CablesTo connect the PC serial ports to each PICDEM™ HPC Explorer Demo
Board’s serial port.
2PICDEM™ HPC Explorer Boards The MCP212X Developer’s Daughter Board will be installed into this board
for testing.
2MCP2120 Daughter Boards This board will be used to communicate with the system under test.
22 PICDEM™ HPC Explorer Demo
Board Power Supplies (9V DC)
Used to power each of the PICDEM™ HPC Explorer Demo Boards.
communicated with the PC.
Some program modes “respond” to
received data (data not sent to PC).
®
(Com 2)
(1)
2.4.1The PICDEM™ Demo Board Firmware Overview
Two firmware programs are supplied with this board. 00063 - HPC.asm is for the
PICDEM™ HPC Explorer Demo Board, while 00063 - FS USB.asm is for the
PICDEM™ FS USB Demo Board.
The PICDEM™ HPC Explorer Demo Board supports two modes of operation:
the Direct-to-PC and Echo modes.
In Direct-to-PC mode, the data byte communicates between the MCP2120 and the
PICDEM™ HPC Explorer Demo Board’s DB-9 connector (does not communicate with
the PIC18F8722). The PIC18F8722 is only used for the 16XCLK signal (for the
specified baud rate).
In Echo mode, the data byte that is received is “echoed” in the opposite case
(lowercase → uppercase and uppercase → lowercase).
The PICDEM™ FS USB Demo Board only supports Echo mode.
The source code for these programs are available for download from the Microchip web
site (www.microchip.com), as well as being available on the CD-ROM supplied with the
MCP212X Developer’s Daughter Board.
To use these programs, it is required that the MPLAB
and that one of Microchip’s development tools are available to program the board (such
as MPLAB
®
ICD 2).
Com 1
System #1
PICDEM™ HPC
Explorer Demo Board plus
MCP212X Daughter Boards
®
IDE be installed on a computer
Com 2
System #2
PICDEM™ HPC
Explorer Demo Board plus
MCP212X Daughter Boards
The following sections describe each element of this daughter board in further detail.
2.5.1Power
The MCP212X Developer’s Daughter Board is powered by a 5V supply. This voltage
supply may be sourced via the PCB headers.
When the device is used in conjunction with the appropriate PICDEM™ Demo Board,
the power is supplied via the connector interface. If the MCP212X Developer’s
Daughter Board is jumpered into an application circuit via the HD1 connector, the
device power supply must be brought over as well.
2.5.2MCP212X IrDA® Standard Encoder/Decoder Device
This demo board highlights the MCP2122 device (U4) and MCP2120 device (U1) to
demonstrate the implementation of an IR port in an embedded system application. The
MCP2120 device handles the encoding/decoding of the UART/IR bit stream.
Further Host Controller interface information is available in the device documentation:
• MCP2122 Data Sheet, “Infrared Encoder/Decoder” (DS21894)
• MCP2120 Data Sheet, “Infrared Encoder/Decoder” (DS21618)
• AN946, “Interfacing the MCP2122 to the Host Controller” (DS00946)
2.5.2.1MCP2122 OPERATION
The MCP2122 (U4) implements an IrDA standard encoder/decoder. The baud rate is
determined by the frequency of the 16XCLK input.
The key signals for the MCP2122-to-microcontroller (Host UART) interface are shown
in Table 2-4. The key signals for the MCP2122-to-IR transceiver circuit are shown in
Ta bl e 2- 5.
TABLE 2-4:MCP2122 HOST UART INTERFACE PINS
Pin
Name
TX2ITTLAsynchronous receive; from Host Controller UART
RX3O—Asynchronous transmit; to Host Controller UART
16XCLK1ITTL16 x Clock
Legend: TTL = TTL compatible input ST = Schmitt Trigger input with CMOS levels
Pin
Number
(PDIP)
I = Input O = Output
Pin
Type
Buffer
Typ e
Description
TABLE 2-5:MCP2122 IR INTERFACE PINS
Pin
Pin Name
TXIR2O—Asynchronous transmit to IrDA
RXIR3ISTAsynchronous receive from infrared transceiver
Legend: A = Analog P = Power
Number
(PDIP)
I = Input O= Output
Pin
Type
Buffer
Type
transceiver
Description
®
standard
In addition to the signals described in Table 2-4 and Table 2-5, the MCP2120 RESET
input is connected to the RESET output of the Host Controller.
The MCP2120 (U1) implements an IrDA standard encoder/decoder. The baud rate is
determined by the device frequency and the state of the BAUD2:BAUD0 pins. The
MCP2120 also has a Software Baud Rate mode which controls the baud rate via the
Host Controller software.
The key signals for the MCP2120-to-microcontroller (Host UART) interface are shown
in Table 2-6. The key signals for the MCP2120-to-IR transceiver circuit are shown in
Ta bl e 2- 7.
TABLE 2-6:MCP2120 HOST UART INTERFACE PINS
Pin
Name
TX12ITTLAsynchronous receive; from Host Controller UART
RX11O—Asynchronous transmit; to Host Controller UART
BAUD010ITTLBAUD2:BAUD0 specifies the Baud rate of the
BAUD19ITTL
BAUD38ITTL
MODE7ITTLSelects the device mode (Data/Command) for
Legend: TTL = TTL compatible input ST = Schmitt Trigger input with CMOS levels
Pin
Number
(PDIP)
I = Input O = Output
Pin
Type
Buffer
Typ e
device, or if the device operates in Software Baud
Rate mode
Software Baud Rate operation
Description
TABLE 2-7:MCP2120 IR INTERFACE PINS
Pin
Pin Name
TXIR6O—Asynchronous transmit to IrDA
RXIR5ISTAsynchronous receive from an infrared transceiver
Legend: A = Analog P = Power
Number
(PDIP)
I = Input O = Output
Pin
Type
Buffer
Type
transceiver
Description
®
standard
In addition to the signals described in Table 2-6 and Table 2-7, the MCP2120 RESET
input is connected to the RESET output of the Host Controller. The EN input can be
either hard-wired or controlled by the Host Controller.
The IR transceiver circuit uses a Vishay® TFDU 4300 integrated optical transceiver.
Footprints for an optional optical transceiver are implemented. These footprints are for
the Vishay TFDU 4100 and the Agilent
three implementations to be installed, but with only one connected to the MCP2120
TXIR and RXIR pins.
2.5.4Signal Header
To allow easy access to many of the system signals, a header (HD1) was placed on
one of the edges of the board. This allows the signals from the MCP2120 to be easily
accessed and connected into an existing application for initial development or
proof-of-concept.
The MCP212X Developer’s Daughter Board allows the MCP2120 or MCP2122 device
to be evaluated. The board also allows the customer to evaluate the operation of one
of three optical tranceiver devices.
Table B-1 shows the components that are installed in the MCP212X Developer’s
Daughter Board PCB, while Table B-2 shows the components that are NOT installed
on the MCP212X Developer’s Daughter Board PCB.
The MCP212X Developer’s Daughter Board can be used in multiple configurations.
Only a subset of these configurations will be tested. The tests were performed at 9600
baud. Other baud rates were not tested.
Appendix D. Using the MCP212X Developer’s Daughter
Board with the PICDEM™ HPC Explorer Demo Board
D.1DEMONSTRATION USING TWO PICDEM™ HPC EXPLORER DEMO BOARDS
To perform a demonstration of the MCP212X Developer’s Daughter Board, two
systems are needed. Each system is a MCP212X Developer’s Daughter Board
(MCP212XEV-DB) plus the PICDEM™ HPC Explorer Demo Board (DM183022).
Figure D-1 shows a block diagram of the demonstation system.
FIGURE D-1:SYSTEM BLOCK DIAGRAM
HyperTerminal
Program Window A
(Com 1)
HyperTerminal
Program Window B
(Com 2)
®
The firmware for these demos is available on the Microchip web site, as well as on the
AIPD Evaluation Board CD-ROM. The filename is 00063 - HPC.asm. This code must
be programmed into the PICDEM™ HPC Explorer Demo Board’s PIC18F8722 for
demo operation. This code supports two demos. The demo executed is dependent on
the state of the JP4 jumper.
Note:Other PICDEM™ Demo Boards may be used, but appropriate firmware
Com 1
System #1
PICDEM™ HPC
Explorer Demo Board plus
MCP212X Developer’s
Daughter Boards
needs to be installed to demonstrate the system.
System #2
PICDEM™ HPC
Explorer Demo Board plus
MCP212X Developer’s
Daughter Boards
The crystal frequency of the PICDEM™ Demo Board determines the error rates for the
EUSART baud rates, as well as the 16XCLK generation (for the MCP2122). So for the
PICDEM™ HPC Explorer Demo Board, the default crystal is 10 MHz (does have a 4x
PLL). Therefore, the 16XCLK frequency for 115200 baud has an error outside usable
limits for IrDA
Table D-1). The demo will be limited to 9600 baud. Table D-2 shows the SPBRG values
for the EUSART at the same crystal frequencies.
®
standard communication for both 10 MHz and 40 MHz operation (see
TABLE D-1:PR VALUES FOR PWM
Desired
Baud Rate
9600153,60064-0.16%321.36%230%15-1.73%
19200307,200321.36%15-1.73%110%7-1.73%
38400614,40015-1.73%7-1.73%50%3-1.73%
57600921,600101.36%4
1152001,843,2004-8.51%2-35.6%10%132.18%
Note 1:Shaded values indicate a % error that is larger than should be used.
2:The following shows the PICDEM™ Demo Board device frequencies:
3:CCP Duty Cycle should be approximately 50% of the PR value.
16XCLK
PICDEM™ HPC Explorer Demo Board has a 10 MHz crystal installed (4xPLL -> 40 MHz).
PICDEM™ FS USB Demo Board has a 20 MHz crystal installed.
PICDEM™ 2 Plus Demo Board has a 4 MHz crystal installed.
PICDEM™ LCD has a socket for an external canned oscillator (also has an internal 8 MHz RC).
@ 40 MHz
(3)
PR
TABLE D-2:SPBRG VALUES FOR EUSART
Desired
Baud Rate
9600225-1.73%129-0.16%950%64-0.16%
19200129 -0.16%64-0.16%470%321.36%
3840064-0.16%321.36%230%15-1.73%
5760042 -0.94%211.36%150%101.36%
115200211.36%101.36%70%4
Note 1:Shaded values indicate a % error that is larger than should be used.
2:The following shows the PICDEM™ Demo Board device frequencies:
PICDEM™ HPC Explorer Demo Board has a 10 MHz crystal installed (4xPLL -> 40 MHz).
PICDEM™ FS USB Demo Board has a 20 MHz crystal installed.
PICDEM™ 2 Plus Demo Board has a 4 MHz crystal installed.
PICDEM™ LCD has a socket for an external canned oscillator (also has an internal 8 MHz RC).
In Demo #1, the MCP212X Developer’s Daughter Board will communicate directly to
the PICDEM™ HPC Explorer Demo Board’s DB-9 connector (and then to the PC). The
PICDEM™ HPC Explorer Demo Board is used to determine the communication baud
rate (9600) via the JP3, JP2 and JP1 jumper states. Given this state, the PICmicro
MCU can then supply the 16XCLK frequency to the MCP2122. Power is supplied over
the J1 and J2 interface headers. Jumper JP4 is used to select which demonstration
program to run. Figure D-2 shows the jumper configuration for Demo #1.
In Demo #2, the System 2 unit will echo any alpha character received, changing the
case of the character (lowercase to uppercase/uppercase to lowercase). The System
1 unit is connected to the PC, while the System 2 unit is not connected, though it still
needs to be powered. The PICDEM™ HPC Explorer Demo Board is used to determine
the communication baud rate (9600) via the JP3, JP2 and JP1 jumper states. Given
this state, the PICmicro
MCP2122. Power is supplied over the J1 and J2 interface headers. Jumper JP4 is used
to select which demo program to run. Figure D-3 shows the jumper configuration for
Demo #2.
Appendix E. Using the MCP212X Developer’s Daughter
Board with the PICDEM™ FS USB Demo Board
E.1DEMONSTRATION WITH THE PICDEM FS USB DEMO BOARD
To perform a demonstration of the MCP212X, two systems are needed. One system
will operate as an encoder/decoder passing information to the PC. This system may be
either the:
• MCP212X Developer’s Daughter Board (MCP212XEV-DB) plus the PICDEM™
HPC Explorer Demo Board (DM183022) or
• MCP2120 Developer’s Board (DM163008)
The second system is a MCP212X Developer’s Daughter Board (MCP212XEV-DB)
plus the PICDEM™ FS USB Demo Board (DM163025). This system operates in a
stand-alone mode and will “echo” the characters it receives (changing the case of the
received alpha character). Figure E-1 shows a block diagram of the demonstration
system.
FIGURE E-1:SYSTEM BLOCK DIAGRAM
HyperTerminal
Program Window A
(Com 1)
®
Com 1
System #1
PICDEM™ HPC Explorer
Demo Board +
MCP212X Developer’s
Daughter Boards
The firmware for these demos is available on the Microchip web site, as well as on the
AIPD Evaluation Board CD-ROM. The file name is 00063 - FS USB.asm. This code
must be programmed into the PICDEM™ FS USB Demo Board’s PIC18F4550 for
demo operation. This code requires the JP4 jumper to be in the documented state.
Note:Other PICDEM™ Demo Boards may be used, but appropriate firmware
needs to be installed to demonstrate the system.
System #2
PICDEM™ FS USB
Demo Board +
MCP212X Developer’s
Daughter Boards
The crystal frequency of the PICDEM™ Demo Board determines the error rates for the
EUSART baud rates, as well as the 16XCLK generation (for the MCP2122). So, for the
PICDEM™ FS USB Demo Board, the default crystal is 20 MHz. The 16XCLK
frequency for 115200 and 57600 baud has an error outside usable limits for IrDA
standard communication for 20 MHz operation (see Table E-1). Therefore, the demo
will be limited to 9600 baud. Table E-2 shows the SPBRG values for the EUSART at
the same crystal frequencies.
®
TABLE E-1:PR VALUES FOR PWM
Desired
Baud Rate
9600153,60064-0.16%321.36%230%15-1.73%
19200307,200321.36%15-1.73%110%7-1.73%
38400614,40015-1.73%7-1.73%50%3-1.73%
57600921,600101.36%4
1152001,843,2004-8.51%2-35.6%10%132.18%
Note 1:Shaded values indicate a % error that is larger then should be used.
2:The following shows the PICDEM™ Demo Board device frequencies:
3:CCP duty cycle should be approximately 50% of the PR value.
16XCLK
PICDEM™ HPC Explorer Demo Board has a 10 MHz crystal installed (4xPLL -> 40 MHz),
PICDEM™ FS USB Demo Board has a 20 MHz crystal installed,
PICDEM™ 2 Plus Demo Board has a 4 MHz crystal installed,
PICDEM™ LCD has a socket for an external canned oscillator (also has an internal 8 MHz RC).
@ 40 MHz
(3)
PR
TABLE E-2:SPBRG VALUES FOR EUSART
Desired
Baud Rate
9600225-1.73%129-0.16%950%64-0.16%
19200129 -0.16%64-0.16%470%321.36%
3840064-0.16%321.36%230%15-1.73%
5760042 -0.94%211.36%150%101.36%
115200211.36%101.36%70%4
Note 1:Shaded values indicate a % error that is larger then should be used.
2:The following shows the PICDEM™ Demo Board device frequencies:
PICDEM™ HPC Explorer Demo Board has a 10 MHz crystal installed (4xPLL -> 40 MHz),
PICDEM™ FS USB Demo Board has a 20 MHz crystal installed,
PICDEM™ 2 Plus Demo Board has a 4 MHz crystal installed,
PICDEM™ LCD has a socket for an external canned oscillator (also has an internal 8 MHz RC).
In Demo #1, the System 2 unit will echo any alpha character received, changing the
case of the character (lowercase to uppercase/uppercase to lowercase). The System
1 unit is connected to the PC, while the System 2 unit is not connected, though it still
needs to be powered. The PICDEM™ FS USB Demo Board is used to determine the
communication baud rate (9600) via the JP3, JP2 and JP1 jumper states. Given this
state, the PICmicro
Power is supplied over the J3 interface header. Jumper JP4 is used to select which
demo program to run. Figure E-2 shows the jumper configuration for Demo #1.
Table E-3 shows the steps for Demo #1.
FIGURE E-2:DEMO #1 CONFIGURATION
®
MCU can then supply the 16XCLK frequency to the MCP2122.
TABLE E-3:DEMO #1 TEST STEPS
Step ActionResult
1Place both devices on a flat surface about 25 cm (10”)
Appendix F. Configuring the HyperTerminal® Program
F.1CONFIGURING THE HyperTerminal® PROGRAM
To ensure that the PC is able to communicate to the PICDEM™ HPC Explorer Demo
Board, the HyperTerminal program must be properly configured. This section describes
the configuration that the HyperTerminal program should be in.
The screen-shots shown in Figure F-1 through Figure F-6 show the settings of the
HyperTerminal program in the Windows
You should save each configuration of the HyperTerminal program in order to easily
distinguish which HyperTerminal program window is “tacking” with which PICDEM™
HPC Explorer Board.
After opening the HyperTerminal program window, select Call -> Disconnect. In the
lower-left corner, the HyperTerminal program window will indicate “Disconnected”.
Next, in the HyperTerminal program window, select File -> Properties. The window in
Figure F-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.
This will open up the Port Settings window. The port settings should be configured as
shown in Figure F-3. After configuring the port settings, select OK. The Figure F-2
window will be shown. Select the Settings tab.
The window will now look as shown in Figure F-4. Ensure that your settings match the
settings shown. Select the ASCII Setup button. This will open the ASCII Setup window
(Figure F-5).
FIGURE F-4:HyperTerminal
SETTINGS WINDOW
Ensure that your settings match the settings shown. Select the OK button. The window
in Figure F-4 will again be shown. Select the Input Translation button. This will open
the Translation Button window (Figure F-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).