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, dsPIC,
K
rfPIC and UNI/O are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
logo, REAL ICE, rfLAB, Select Mode, Total
Endurance, TSHARC, UniWinDriver, 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
T empe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memo ry and
analog products. In addition, Microchip’s quality system for the desig n
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.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP2150 Developer’s Board. Items discussed in this chapter include:
This document describes how to use the MC P2150 Developer’s Board. The manual
layout is as follows:
• Chapter 1. “Product Overview” – Important information about the MCP2150
Developer’s Board.
• Chapter 2. “Installation and Operation” – Includes instructions on how to get
started with this user’s guide and a desc rip tio n of th e use r’s guide.
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams for the MCP2150 Developer’s Board.
• Appendix B. “Bill Of Materials (BOM)” – Lists the parts used to build the
MCP2150 Developer’s Board.
• Appendix C. “Board Testing” – Discusses what is and is not tested on the
MCP2150 Developer’s Board.
• Appendix D. “Configuring the HyperTerminal
configuration of the HyperTerminal application.
• Appendix E. “Continuously Transmitted Data Table” – Shows the data table
that the MCP2150 Developer’s Board transmits.
• Appendix F. “Programming the MCP2150DM” – Gives information to assis t in
the programming of the MCP2150 Developer’s Board.
This user's guide describes how to use MCP2150 Developer’s Board. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
• MCP2150 Data Sheet, “IrDA Standard Protocol Stack Controller Supporting
DTE Applications”, DS21655
• MCP2155 Data Sheet, “IrDA Standard Protocol Stack Controller Supporting
DCE Applications”, DS21690
This data sheet provides detailed information regarding the MCP2150 product family.
You can also find important information in the following Microchip documents:
• AN941 - “Programming Windows XP® for Embedded IR Applications”,
DS00941.
• AN926 - “Programming the Pocket PC OS for Embedded IR Applications”,
DS00926
• AN927 - “Data Throughput and the MCP215X”, DS00927.
• AN923 - “Using the MCP2120 Developer's Board for IR Sniffing", DS00923.
• AN888 - “Programming the Palm OS™ for Embedded IR Applications”,
DS00888.
• AN858 - “Interfacing the MCP215X to a Host Contro ll er” , DS00858.
THE MICROCHIP WEB SITE
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
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sa les of fices ar e also available to help cu stomers. 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.
This chapter provides an overview of the MCP2150 Developer’s Boards’ features, the
system configurations that can be used in and the system requirements for the
tutorials.
Items discussed in this chapter are:
• What is the MCP2150 Developer’s Board?
• MCP2150 Developer’s Board Features
• PC Requirements
• What the MCP2150 Developer’s Board Kit includes
1.2WHAT IS THE MCP2150 DEVELOPER’S BOARD?
The MCP2150 Developer’s Board allows for the easy demonstration and development
of IrDA applications. The board can be powered via USB o r the power test point s (V
and GND). When using the power test points, if JP2 is shorted, the voltage must not
exceed the PIC18F65J50 voltage specification.
The Host interface can be connected to the UART driver device for communication over
the DB-9 connector (for IrDA to UART operation), connected to the PIC18F65J50 for
stand alone operation, or connected to the PIC18F65J50 with the PIC18F65J50
connected to the UART driver device (for pass-through operation).
The USB interface signals are fully connected to the PIC18F65J50, so programs can
be created where the PIC18F65J50 can communicate to the USB Host and to the
MCP2150. This would allow the board to be used as an IrDA to USB converter.
The MCP2150 Developer’s Board has five functional blocks. These are:
•Power
• Host Microcontroller
• MCP2150
• Optical Transceiver circuitry
• RS-232 circuitry/interface
The MCP2150 Developer’s Board power can come from either the USB connection or
the power test points. The USB power is regulated to 3.3V, due to requirements from
the PIC18F65J50. To allow the other circuitry to operate at higher voltages, the
MCP2150 Developer’s Board has two power planes. One for the PIC18F65J50
circuitry and the other for the MCP2150/Optical Transceiver/RS-3238 Driver circuitry.
An LED is used to indicate when power is applied to the MCP2150/Optical
Transceiver/RS-232 Driver circuitry . A jumper (JP2) is used to tie the two power planes
together.
The MCP2150 uses a standard 11.0592 MHz crystal as the device clock. The Host
Controller can be programmed via the ICSP interface with user developed programs.
CAUTION
The PIC18F65J50 has a maximum operational voltage of 3.6V. If the MCP2150
Developer’s Board is powered by the VDD and GND Test Points, then care must be
taken to ensure that the PIC18F65J50 is not over voltaged. The PIC18F65J50 can be
isolated from the MCP2150’s power plane by removing the jumper shunt on jumpers
JP1 and JP2.
The MCP2150DM has the MCP2150 device mounted on the PCB ( TSSOP package).
There is a DIP footprint (requires the TSSOP package to be removed) which allows the
MCP2150 to be easily updated if a device revision occurs.
The board supports up to four optical transceivers circuit implementations. Two
implementation share the same general circuit layout. Only one optical transceiver
circuit is installed at the time of manufacture. The others are for user implementation
and evaluation. Jumpers are used to select the optical transceiver that is used by the
system.
A MAX3238 compatible level-shifting IC has all the necessary hardware to support
connection of a RS-232 host through the DB-9 connector. The port can be connected
to a PC using a straight-through cable. Refer to the MCP2150 Dat a She et (DS2165 5)
for more information on the Host Interface signals.
NOTICE
Due to the flexibility of the interface between the MCP2150 and the PIC18F65J50, the
board has limited support for the MCP2155 device. This board’s firmware does not
support the MCP2155. To better understand the MCP2155’s Host Interface operation,
please refer to the MCP215X/40 Data Logger Demo Board (MCP215XDM) firmware.
1.3.1Selecting Power Source, and Optical Transceiver Interface
BOARD EDGE
VDD’s planes are isolated
V
DD’s planes are connected
This jumper isolates the PIC19’s VDD
from the MCP2150 V
DD plane (see
Section A.8 “Board - Power Layer”)
JP2
These two jumpers select the optical transceiver logic.
Both jumpers should connect the same pin positions.
JP1x1 and JP2x1
Optical Transceiver connected to
MCP2150 IR Interface
Optical Transceiver not connected
to MCP2150 IR Interface
Jumper Descriptions
Figure 1-2 shows the jumpers used to control the power source, and the optical
transceiver used.
Jumper JP2 connects to the boards two power planes. The MCP2150 Developer’s
Board has a power plane for the PIC18F65J5 0 and the re lated circuitry, and a second
power plane for all other circuitry . Removing the jumper allows the MCP2150 portion to
operate through the full voltage range of the MCP2150 (2.0V to 5.5V). When JP2 is
connected, then the maximum voltage is restricted to the ma xim u m vo ltage of the
PIC18F65J50 device (3.6V). See Figure A.8 for the power plane layout. When JP2 is
open, then the PIC18F65J50 must be isolated from the MCP2150. Th is is done with
the JMP1:JMP14 jumpers as well as the R26, R27, R28, and R29 resisto rs.
Jumpers JP1C1 and JP2C1 are used to connect the default installed optical transceiver
to the MCP2150’s RXPD and TXIR pins. There are footprints for two other optical
transceiver implementations. If either of those implementations are installed, then the
jumpers may be switched to the desired optical transceiver.
The PC used has three main requirements. These are:
1. Standard serial port.
2. USB port (to power the MCP2150 Developer’s Board).
3. Terminal emulation program.
4. IrDA standard driver installed, which treats the IR port as a vir tual serial port.
A non-legacy-free Intel
would meet these requirements. The Windows
program called Hyperterminal. Section Appendix D. “Configuring the
HyperTerminal
®
demonstrate the developer’s boards.
1.5WHAT THE MCP2150 DEVELOPER’S BOARD KIT INCLUDES
This MCP2150 Developer’s Board kit includes:
• MCP2150 Developer’s Board, 102-00265
• Important Information Sheet
®
compatible model with Windows Operating System (OS)
®
OS includes a terminal emulation
Program” shows instructions to configure HyperTerminal and
NOTICE
The Kits no longer ship with CD-ROMs. Any other material is available for download from
the Developments Boards product page. This material can include such items as:
T o d emonstrate the operation of the MCP2150 Develope r’s Board (Secondary Device)
a Primary Device is required. The Primary Device can be a PC with an IR port
(integrated IR port or IR Dongle).
The MCP2150 Developer’s Board default firmware program has four different
programs that are selected by the state of the RD7:6 pins .
These demonstration programs have the following operation:
• Demo #1 Operation - Direct IR / UART (DB-9) Mode
• Demo #2 Operation - Data Streaming Mode
• Demo #3 Operation - Echo Data Mode
• Demo #4 Operation - IR / UART (DB-9) Pass Through PIC Mode
Each demonstration program’s operation will be described in the Demo section.
The component layout floor plan of the MCP2150 Developer’s Board (MCP2150DM)
PCB is shown in Figure 1-1 while Table 2-1 shows the hardware requirements to
demonstrate the MCP2150 Developer’s Board.
MCP2150 DEVELOPER’S BOARD
USER ’S GUIDE
TABLE 2-1:DEMO SYSTEM HARDWARE REQUIREMENTS
QtyHardwarePurpose
1PC with: (1)
a) IR port
or
PC with USB/Serial port and
USB/Serial port to IR Dongle
(1)
b) One USB port to power the
MCP2150 Developer’s
Board
and
c) one serial port to
communicate to the
MCP2150 Developer’s
Board.
1Serial CableTo connect the PC serial ports to the MCP2150 Developer’s
1USB CableTo power the MCP2150 Developer’s Board from the PC’s USB
—MCP2150 Developer’s Board This is the demonstration unit
Note 1: This can be done with one PC, but depending on the features of the selected PC, a second PC
may be required due to number of serial ports available (see Figure 2-1).
T o keep the board cost low , only a por tion of the MCP2150 Developer’s Board is tested.
This test covers the major portions of the system. The portions th at ar e not tested a re
shown in Appendix C. “Board Testing”.
As a Primary Device, this device will initiate communication to
the MCP2150 Developer’s Board. The PC’s USB port will also
power the MCP2150 Developer’s Board.
Also:
The PC’s UART port will “talk” with the MCP2150’s UART
interface, while the PC’s IR port will “talk” with the MCP2150’s
IR interface.
The PC will run two instances of HyperTerminal, one
connected to the PC’s serial port (UART) and the other
connected to the PC’s IR port.
The demo system setup requires a Primary Device and a MCP2150 Developer’s Board
(Secondary Device). The Primary Device is a PC with an IR port (integrated IR port or
IR Dongle). The Secondary Device is the embedded system, which is the MCP2150
Developer’s Board.
The MCP2150 Developer’s Board can be powered by one of two sources:
• The USB sourced power
• The Power supply test points
For the demo descriptions, the board will be powered via USB, so, a PC with a UART
and USB port is required. The USB voltage is regulated to 3.3V, due to the PIC18
device’s voltage operating range.
This developer board either communicates between the DB-9 interface and the IR
interface or acts as an embedded syste m and communicates between the IR interface
and the PIC microcontroller.
2.2.1The PIC18F65J50 Firmware
The PIC18F65J50 firmware program looks at the state of the RD7:4 pins to determine
the board’s operation (program an d Host UART baud rate).
The configuration of the JMP14:JMP1 jumpers determines how th e UART signals are
connected between the MCP2150, PIC and the MAX3238 compatible driver.
The programs have the following operations:
• Data is directly passed from the IR interface to the MAX3238 device
• Data is passed from the IR interface to the MAX3238 device af ter pa ssing through
the PIC microcontroller
• Once a data byte has been received by the PIC, the PIC continuously stream s a
data table
• The PIC echoes whatever character it receives, after changing the case (upper to
lower, and lower to upper)
2.2.2The PC with IR Port
A PC with IR Port can be configured to operate as the Primary Device. The PC will need
to run an appropriate application program to communicate with the Second ary Device.
For a PC with IR port, this program will be HyperTerminal. The IRCOMM2K driver may
need to be installed so that HyperTerminal can communicate to the IR port as if it was
a serial port. When installing IRCOMM2K, select COM7 as the desired port.
Configuring the HyperTerminal program on the PC is shown in D.1.2 “Configuring HyperTerminal to connect to the IrDA Port (Virtual Port)”.
The PC will run a second instance of HyperT erminal when running Demo #1 and Demo
#4. This instance of HyperTerminal will communicate to the PC’s serial port which will
be connected to the MCP2150DM’s serial port. This allows the transmitted data (from
the IR port) to be seen on the serial port (and vice versa). Configuring the
HyperTerminal program on the PC is shown in D.1.3 “HyperTerminal Configuration
for the Secondary Device”.
Note:HyperTerminal should be disabled before establishing a connection
between the PC and the MCP2150 Developer’s Board. Make sure that any
other programs (e.g., HotSync
Note 1:The PC may be a Notebook with an Integrated IR port. This operates as the Primary
Device.
2:Serial cable. Connects Secondary Device to PC.
3:USB cable (for power only).
Monitor
PC
A description of the demos, including step-by-step instructions are shown in this
section.
2.3.1Demo #1 Operation - Direct IR / UART (DB-9) Mode
In Demo #1, the MCP2150 Developer’s Board will communicate directly to the PC
(or IrDA to serial interface Dongle) data received on the DB-9 port.
This demo shows the MCP2150 converting data between the IR port and the Host
UART port. The Primary Device’s IR p acket is decode d and any data is extracted and
Transmitted on the Host UART interface. Data received on the Host UART interface is
formatted into the IR data packet and transmitted to the Primary device.
Figure 2-1 shows the system setup, while Figure 2-2 shows the jumper configuration
for the MCP2150 board. Lastly, Table 2-2 shows the steps for Demo #1 operation.
Note:Figure 2-3 shows an alternate jumper configuration where the
MCP2150DM is powered via the V
JP2 shunt be removed). Table 2.3.2 does not document this configuration,
but due to its similarities should be easy for the user to implement.
1Place the Primary Device’s IR port and the MCP2150
Developer’s Board on a flat surface about 25 cm (10
inches) apart, and with the IR ports facing each other.
2On the MCP2150 Developer’s Board:
Ensure that the jumpers are configured as in
Figure 2-2.
3On the MCP2150 Developer’s Board:
Apply power to the unit via the USB connector. The PIC
reset switch (S1) may be depressed and released to
ensure that the PIC had a good reset.
4Connect PC’s Serial Port to the DB-9 connector of the
MCP2150 Developer’s Board.
5On the PC:
Wait for the PC to make a sound and the system tray
shows an IR Icon. Placing the mouse over the Icon will
show the MCP2150 Device ID (currently “Generic
IrDA”).
6On the PC:
Open the HyperTerminal program window for the
Primary Device (such as COM 7).
Ensure that the window indicates that the HyperT erminal
program is connected.
Note:See D.1.2 “Configuring HyperTerminal to
connect to the IrDA Port (Virtual Port)”
7On the PC:
Open a second instance of HyperTerminal program
window attached to the PC’s Serial Port (such as
COM 2) to connect to the MCP2150 Developer’s Board.
Ensure that the window indicates that the HyperT erminal
program is connected.
Note:See D.1.3 “HyperT e rmi na l Co nfi gu ra ti on
for the Secondary Device”
8On the PC:
In one of the HyperTerminal program windows (such as
the Primary Device’s window), type some characters.
9On the PC:
In the other HyperTerminal program windows (Serial
Port window), type some characters.
10On the PC:
In either HyperTerminal pr ogram windows, select the
Transfer pull-down menu and then the Send Text File ...
option. Navigate to the folder that contains the
Transmit File.Txt file and select it. Then, click
Open.
11On the PC:
Make this file transfer transmitting from the other
HyperTerminal prog ram window.
12Continue steps 8, 9 10, or 11 for as long as desired.—
—
—
On the MCP2150 Developer’s Board:
The green power LED (D1) will turn on.
—
—
On the MCP2150 Developer’s Board:
—
On the PC:
The system tray Icon will change from a single IR
Icon to two IR Icons facing each other. An IR Link is
now established.
—
On the PC:
In the other HyperTerminal program windows (the
Serial Port window), those characters appear.
On the PC:
In the other HyperTerminal program windows (the
Primary Device’s window), those characters
appear.
On the PC:
In the selected HyperTerminal program window, the
displayed data is transmitted, being received and
displayed by the other HyperTerminal program
window.
On the PC:
In the selected HyperTerminal program window, the
displayed data is transmitted, being received and
displayed by the other HyperTerminal program
window.
Note 1:The PC may be a Notebook with an Integrated IR port. This operates as the Primary
Device.
2:USB cable (for power only).
Monitor
PC
2.3.2Demo #2 Operation - Data Streaming Mode
In Demo #2, the MCP2150 Developer’s Board (MCP2150DM) will communicate via the
IR interface to the PC. The MCP2150DM is the Secondary Device, and will
continuously stream a data table to the Primary Device (PC). This shows the data
throughput from the embedded system to the Primary Device. This throu ghput will vary
depending on the characteristics of the Primary Device.
Figure 2-4 shows the system setup for this test, while Figure 2-5 shows the jumper
configuration for the MCP2150 board. Lastly, Table 2-3 shows the steps for Demo #2
operation.
Note:Figure 2-6 shows an alternate jumper configuration where the
MCP2150DM is powered via the V
JP2 shunt be removed). Table 2-6 does not document this configuration
but, due to its similarities, should be easy for the user to implement.
1Place the Primary Device’s IR port and the MCP2150
Developer’s Board on a flat surface about 25 cm (10
inches) apart, and with the IR ports facing each other.
1On the MCP2150 Developer’s Board:
Ensure that the jumpers are configured as in
Figure 2-5.
2On the MCP2150 Developer’s Board:
Apply power to the unit via the USB connector. The
PIC reset switch (S1) may be depressed and
released to ensure that the PIC had a good reset.
3On the PC:
Open the HyperTerminal program window for the
Primary Device (such as COM 7).
Ensure that the window indicates that the
HyperTerminal prog ram is connected.
Note:See D.1.2 “Configuring HyperTerminal
to connect to the IrDA Port (Virtual
Port)”
4On the PC:
In the HyperTerminal program window, type any
character.
5On the PC:
Disconnect the HyperTerminal program window.
—
—
On the MCP2150 Developer’s Board:
The green power LED (D1) will turn on.
On the MCP2150 Developer’s Board:
—
On the PC:
The system tray Icon will change from a single IR
Icon to two IR Icons facing each other. An IR Link is
now established.
On the MCP2150 Developer’s Board:
—
On the PC:
Then, a continuous stream of a 250 Byte table will be
received from the embedded system in the
HyperTerminal window (See for Appendix E. “Continuously Transmitted Data Table”)
On the PC:
HyperTermina l program window no longer receives
data.
Note 1:The PC may be a Notebook with an Integrated IR port. This operates as the Primary
Device.
2:USB cable (for power only).
Monitor
PC
2.3.3Demo #3 Operation - Echo Data Mode
In Demo #3, the MCP2150 Developer’s Board (MCP2150DM) will communicate via the
IR interface to the PC. The MCP2150DM is the Secondary Device, and will echo the
received data (after changing the case) to the Primary Device (PC). This shows the
command/response of an application system.
Figure 2-7 shows the system setup for this test, while Figure 2-8 shows the jumper
configuration for the MCP2150 board. Lastly, Table 2-4 shows the steps for Demo #2
operation.
1Place the Primary Device’s IR port and the MCP2150
Developer’s Board on a flat surface about 25 cm (10
inches) apart, and with the IR ports facing each other.
2On the MCP2150 Developer’s Board #1:
Ensure that the jumpers are configured as in
Figure 2-5. Jumpers shown in green are not required
and can be left open.
3On the MCP2150 Developer’s Boards:
Apply power to the unit via the USB connector.
4On the PC:
Open the HyperTerminal program window for the
Primary Device (such as COM 7).
Ensure that the window indicates that the HyperT erminal
program is connected.
Note:See D.1.2 “Configuring HyperTerminal to
connect to the IrDA Port (Virtual Port)”
5On the PC:
In the HyperTerminal program window, type some alpha
characters, such as “kLwtGh”.
6Continue typing any alpha characters (upper or lower
case)
7On the PC:
Disconnect the HyperTerminal program window.
—
—
On the MCP2150 Developer’s Board:
The green power LED (D1) will turn on.
On the MCP2150 Developer’s Board:
—
On the PC:
The system tray Icon will change from a single IR
Icon to two IR Icons facing each other. An IR Link is
now established.
On the PC:
The HyperTerminal program window will display
each character and its switched case version. So,
“kLwtGh” will show “kKLlwWtTGghH”.
The alpha character typed and its opposite case will
be displayed (such as “aA”, “Aa”, “Bb”, ...)
On the PC:
HyperTer minal program window no longer receives
data.
Note 1:The PC may be a Notebook with an Integrated IR port. This operates as the Primary
Device.
2:Serial cable. Connects Secondary Device to PC.
3:USB cable (for power only).
Monitor
PC
2.3.4Demo #4 Operation - IR / UART (DB-9) Pass Through PIC Mode
In Demo #4, the MCP2150 Developer’s Board will communicate to the PC (or IrDA to
serial interface Dongle) data received on the DB-9 port.
This demo shows the MCP2150 converting data between the IR port and the Host
UART port. The Primary Device’s IR packet is decode d and an y dat a is extracted an d
transmitted on the Host UART interface. Data received on the Host UART interface is
formatted into the IR data packet and transmitted to the Primary device.
Figure 2-9 shows the system setup for this test, while Figure 2-10 shows the jumper
configuration for the MCP2150 board. Lastly, Table 2-5 shows the steps for Demo #4
operation.
1Place the Primary Device’s IR port and the MCP2150
Developer’s Board on a flat surface about 25 cm (10
inches) apart, and with the IR ports facing each other.
2On the MCP2150 Developer’s Board:
Ensure that the jumpers are configured as in
Figure 2-10.
3On the MCP2150 Developer’s Board:
Apply power to the unit via the USB connector. The PIC
reset switch (S1) may be depressed and released to
ensure that the PIC had a good reset.
4Connect PC’s Serial Port to the DB-9 connector of the
MCP2150 Developer’s Board.
5On the PC:
Wait for the PC to make a sound and the system tray to
show an IR Icon. Placing the mouse over the Icon will
show the MCP2150 Device ID (currently “Generic
IrDA”).
6On the PC:
Open the HyperTerminal program window for the
Primary Device (such as COM 7).
Ensure that the window indicates that the HyperT erminal
program is connected.
Note:See D.1.2 “Configuring HyperTerminal to
connect to the IrDA Port (Virtual Port)”
7On the PC:
Open a second instance of HyperTerminal program
window attached to the PC’s Serial Port (such as
COM 2) to connect to the MCP2150 Developer’s Board.
Ensure that the window indicates that the HyperT erminal
program is connected.
Note:See D.1.3 “HyperT e rmi na l Co nfi gu ra ti on
for the Secondary Device”
8On the PC:
In one of the HyperTerminal program windows (such as
the Primary Device’s window), type some characters.
9On the PC:
In the other HyperTerminal program windows (Serial
Port window), type some characters.
10On the PC:
In either HyperTerminal pr ogram windows, select the
Transfer pull-down menu and then the Send Text File ...
option. Navigate to the folder that contains the
Transmit File.Txt file and select it. Then click
Open.
11On the PC:
Make this file transfer transmitting from the other
HyperTerminal prog ram window.
12Continue steps 8, 9 10, or 11 for as long as desired.—
—
—
On the MCP2150 Developer’s Board:
The green power LED (D1) will turn on.
—
—
On the MCP2150 Developer’s Board:
—
On the PC:
The system tray Icon will change from a single IR
Icon to two IR Icons facing each other. An IR Link is
now established.
—
On the PC:
In the other HyperTerminal program windows (the
Serial Port window), those characters appear.
On the PC:
In the other HyperTerminal program windows (the
Primary Device’s window), those characters
appear.
On the PC:
In the selected HyperTe rmin al program window the
displayed data is transmitted and is received and
displayed by the other HyperTerminal program
window.
On the PC:
In the selected HyperTerminal program window, the
displayed data is transmitted, being received and
displayed by the other HyperTerminal program
window.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some schematics and
board layouts may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
A.1INTRODUCTION
This appendix contains the following schematics and layouts for the MCP2150
Developer’s Board:
• Board - Schematic
• Board - Top Silk and Pads
• Board - Top Layer
• Board - Top Silk and Pads Top layer
• Board - Bottom Layer
•Board - V
• Board - Ground Layer
The layer order is shown in Figure A-1.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so the Bill Of Materials may
differ from those in this document. Please refer to our web site (www.microchip.com) to
obtain the latest documentation available.
The MCP2150 Developer’s Board allows the MCP2150 device to be evaluated. The
board supports customers in the evaluation of three additional optical transceiver
devices. This is done with component layout of these additional optical transceiver
circuits. The customer would be required to install the desired circui t for testing.
T able B-1 shows the components that are installed in the MCP2150 Developer’s Board
PCB, while Table B-2 shows the components that are NOT installed on the MCP2150
Developer’s Board PCB.
Appendix D. Configuring the HyperTerminal® Program
D.1CONFIGURING THE HyperTerminal® PROGRAM
In running a demo, one may need two instances of the HyperTerminal program in
operation. The instance for the Primary Devi ce will always be used, while the instance
for the Secondary Device will only be used for Test #1 and Test #4. The configuration
of HyperTerm i na l is different betwee n th ese two instances.
D.1.1HyperTerminal Configuration for the Primary Device
This configuration connects the HyperTerminal window to the PC’s IrDA Port (via a
virtual Serial Port, for example COM 7), which then can communicate to the Secondar y
Device (via the MCP2150 Developer’s Board IrDA interface).
To use a Laptop PC with an IrDA standard port as the Primary device, the application
program must connect to the IR port. Some standard Windows programs may not be
able to connect directly to the IR port (OS specific).
For a Windows
to “create” the “virtual port” that HyperTerminal needs to connect so that it allows to use
the IR port for communications. This driver is called IrCOMM2K and is available at
www.IRCOMM2K.de. Please evaluate this product before installing onto your system
to ensure that it will meet your requirements.
Microchip does not imply any suitability to your system requirements of any of these
3rd-party products. Please evaluate each pro duct’s specifications and requirements
before installing onto your system.
Once the IrCOMM2K driver is installed, it creates a “new” com port (such as COM7).
This is a virtual serial port that the PC Terminal Emulation application program (such
as HyperTerminal) can be connected to.
To ensure that the PC is able to communicate to the PICDEM™ HPC Explorer Demo
Board plus MCP2150 Developer’s Board, the HyperTerminal program must be
properly configured. This section describes the configuration that the HyperTerminal
program should be in.
Then, HyperTerminal needs to be configured. Refer to Section D.1.2 “Configuring HyperTerminal to connect to the IrDA Port (Virtual Port)”.
®
XP (or Windows 2000) system, a 3rd-party driver needs to be installed
3. If the HyperTerminal program window does not indicate that the window is
“Disconnected”, select Call>Disconnect
HyperTerminal program window will indicate “Disconnected”.
4. In the program menu, select File>Properties
FIGURE D-3:NEW CONNECTION PROPERTIES WINDOW
. In the lower-left corner, the
. The window in Figure D-3 is shown.
5. In the New Connection Properties window, on the Connect To tab, go to the
“Connect Using” pull-down and select the desired COM port. For the Primary
Device, this will be the virtual serial port created by the IrCOMM2K driver
installation (such as COM7). For the connection to the Embedded System, this
will be one of the standard COM ports (such as COM1, COM2, or COM3).
The port settings would then be configured as shown in Figure D-4.
8. Select the OK button. The Figure D-3 window will be shown.
9. In the New Connection Properties window, select the Settings tab. The window
will now look as shown in Figure D-5. Ensure that your settings match the
settings shown.
10. Configure the New Connection Properties Settings.
- Under the “Function, arrow and control keys act as” item, select the
Terminal Keys rad io bu tton.
- Under the “Backspace key sends” item, select the Ctrl+H radio button.
- From the “Emulati on ” pu ll-d ow n me n u, selec t Auto-detect.
- For “Telnet Terminal ID”, enter ANSI.
- For “Backscroll buffer lines”, select 500 from the pull-down menu.
11. Press the ASCII Setup button. This will open the ASCII Setup window
(Figure D-5).
16. In the New Connection Properties window, select the Input Translation button.
This will open the Host System Encoding Method window (Figure D-6).
- In the “Host System Encoding Method” window, select Shift-JIS and click
the OK button to close the window.
17. Then, click the OK button in the New Connection Properties window.
18. Now that all the settings are configured, in HyperTerminal’s pull-down menu,
select File>Save As.
configuration with a name that you can remember (one for the Primary Device
and the other for the Secondary Device).
FIGURE D-6:NEW CONNECTION PROPERTIES - HOST SYSTEM ENCODING METHOD
Select the name that you wish. You may wish to save each
D.1.3HyperTerminal Configuration for the Secondary Device
This configuration connects the HyperTerminal window to the selected PC’s Serial Port
(for example COM 2), which then can communicate to th e Embedded Syste m (via the
MCP2150 Developer’s Board DB-9 interface).
Figure D-7 through Figure D-10 show the HyperTerminal configuration for the PC
Serial Port connection to the MCP2150’s DB-9 inteface.
Figure D-7 shows the selected COM port to connect to and the configuration of that
COM port (9600 baud, 8-bits, 1 stop bit, no parity, with hardware flow control). The
COM port for your system may need to be different.
1. Clicking on the Settings tab displays the window shown in Figure D-8.
FIGURE D-7:NEW CONNECTION PROPERTIES - PORT CONFIGURATION
Figure E-1 shows the data table that is streamed to the Primary Device after a data byte
has been received. After the 250 bytes have been transmitted, the progr am returns to
the top of the table. This table is streamed continuously until the IR link is closed.
Note:The MCP2150DM is shipped with the default demonstration firmware
programmed into the PIC18F65J50.
The user may reprogram the PIC18F65J50 with their application firmware or the
supplied demo firmware.
The Programming will require the following items
• 1 PC USB port for programming
• 1 MPLAB ICD 2 module (with USB cable)
• 1 RJ-11 to ICSP Adapter (AC164110)
• CD with .HEX file to program into device (00265.HEX)
Figure F-1 shows a high level block diagram for programming the MCP2150
Developer’s Board. How to program is described in the appropriate MPLAB-IDE and
MPLAB-ICD2 documentation.
FIGURE F-1:PROGRAMMING BLOCK DIAGRAM
USER ’S GUIDE
SYSTEM HARDWARE REQUIREMENTS
QtyHardwarePurpose
1PC with one USB port To run MPLAB-IDE and communicate to the ICD or ICE hardware.
1ICD2, ICD3, or Real ICE To program the MCP2150 Developer’s Board PIC18F65J50 device.
1RJ-11 to ICSP Adapter