Microchip MCP2155 Bedienungsanleitung


Lesen Sie kostenlos die đź“– deutsche Bedienungsanleitung fĂĽr Microchip MCP2155 (76 Seiten) in der Kategorie Nicht kategorisiert. Dieser Bedienungsanleitung war fĂĽr 14 Personen hilfreich und wurde von 2 Benutzern mit durchschnittlich 4.5 Sternen bewertet

Seite 1/76
© 2007 Microchip Technology Inc. DS00941B-page 1
AN941
INTRODUCTION
This application note details the tools, supporting
technologies and procedures for the development of
infrared applications on Windows XP® based PC.
A Windows XP (WinXP) application that interfaces with
an embedded system via IrCOMM is included in the
appendices of this application note. This source code
demonstrates the use of the Windows® Application
Programming Interface (API) required for IrDA®
standard IR communication on Windows XP based
platforms.
Appendix A: “Example Irda® Standard System
Description” describes the system and documents the
tool used to create this Windows XP application
program, while Appendix B: “Win XP Source Code -
IrDA DEMO.CPP” through Appendix C: “WinXP
Source Code - IrDA DemoDlg.cpp” is the WinXP
Application Program source code.
FIGURE 1 shows an IrDA standard system, where a
Windows XP based PC is communicating with an
embedded system. In this system, the PC operates as
the Primary device (Client) and the embedded system
operates as the Secondary device (Server). The terms
Client and Server are used in reference to Windows
(PC) programming, while Primary device and
Secondary device are terms used by the IrDA
standard.
FIGURE 1: WINDOWS XP - EMBEDDED SYSTEM BLOCK DIAGRAM
Author: Joseph Snyder, Microchip Technology Inc.
Frank Ableson, Unwired Tools, LLC
Windows® XP PC
with IrDA® Standard Port
Embedded System with IrDA® Standard Port
MCP215X Optical
Transceiver
Circuitry
Host Controller
and Embedded
Circuitry
or
MCP2140
(Secondary Device/Server)
(Primary Device/Client)
Programming Windows XP®
for Embedded IR Applications
AN941
DS00941B-page 2 © 2007 Microchip Technology Inc.
Terminology
Below is a list of useful terms and their definitions:
•Microsoft® Foundation Class (MFC): Class
library and framework for application development
on Windows based platforms.
•Microsoft Visual Studio® .NET: Development
environment for the development of Windows
desktop applications using Visual C++®, Visual
Basic®, Visual C#® and the .NET framework.
Available for purchase from Microsoft’s web site
at www.microsoft.com.
• Microsoft Software Development Kit (SDK):
Documentation, samples, header files, libraries
and tools needed to develop applications that run
on the Windows operating system.
•Primary Device: The IrDA standard device that
queries for other devices.
•Secondary Device: The IrDA standard device
that waits to detect IR communication before
performing any IR communication.
•Host Controller: The controller in the embedded
system that communicates to the MCP215X or
MCP2140.
•MCP215X: An IrCOMM protocol handler IC that
supports IR communication from 9600 baud to
115,200 baud.
•MCP2140: A low-cost IrCOMM protocol handler
IC that supports IR communication at 9600 baud.
•Protocol Stack: A set of network protocol layers
that work together. Figure 2 shows the IrDA
standard protocol stack.
•IrCOMM (9-wire “cooked” service class): IrDA
standard specification for the protocol to replace
the serial cable (using flow control).
FIGURE 2: IrDA® STANDARD DATA -
PROTOCOL STACKS
IrTran-P IrObex IrLan IrComm (1) IrMC
LM-IAS Tiny Transport Protocol (Tiny TP)
IR Link Management - Mux (IrLMP)
IR Link Access Protocol (IrLAP)
Asynchronous
Serial IR (2, 3)
(9600 -115200 b/s)
Serial IR
(1.152 Mb/s)
Synchronous
4 PPM
(4 Mb/s)
Synchronous
Note 1: The MCP215X and MCP2140
implement the 9-wire “cooked” service
class serial replicator.
2: An optical transceiver is required.
3: The MCP2140 support 9600 baud IR
communication only.
Supported by
the MCP215X
and MCP2140.
Optional IrDA® standard
data protocols not
supported by the MCP215X
and MCP2140.
© 2007 Microchip Technology Inc. DS00941B-page 3
AN941
INFRARED COMMUNICATIONS
The application built and discussed in this application
note uses a high-level, infrared protocol called
IrCOMM. This protocol is designed to be a wire-
replacement technology. Infrared technology is an
excellent choice for data collection for many reasons,
including:
• Availability: Virtually every late-model PDA and
laptop contains an IrDA standard port.
• Cost: IrDA standard communications may be
added to a custom design very economically, as
demonstrated in this application note.
• Convenience and compatibility: Working without
wires means no cables, gender-changers or any
other gadgets that allow two devices to
communicate. This is vital to the frequent traveler
or technician in the field.
For more information regarding the IrComm protocol,
visit the IrDA organization’s web site at:
http://www.irda.org.
WINDOWS XP DEVELOPMENT
Visual Studio .NET is available from Microsoft for the
development of Windows based applications. With
Visual Studio .NET, the developer can create applica-
tions using Microsoft's familiar API's (Win32®, ATL,
MFC, .NET Compact Framework).
Windows XP Tools
Microsoft’s Visual Studio .NET offers a wide range of
development choices, including the Visual C++, Visual
Basic and Visual C# programming languages. This
application note focuses on development of IrDA
standard applications using Microsoft's Visual Studio
.NET using C++.
While this project is Visual Studio 2003 compatible, it is
actually “WIN32” code, not “managed” .NET code. The
source code in this project will build in any MFC aware
environment including Visual Studio 6.X, Visual Studio
2003, and Visual Studio 2005.
Note: The sample application created in this
Application Note is a Microsoft Foundation
Class (MFC) C++ application which relies
heavily on the characteristics of object
oriented programming. Therefore, to get
the most out of this application note’s
examples requires an understanding of
C+ programming. However, it is possible
to employ “C” to perform IrDA program-
ming under the Windows environment. For
examples of non-MFC IrDA programming,
see Appendix I: “MCHP941.C SOURCE
Code”.


Produktspezifikationen

Marke: Microchip
Kategorie: Nicht kategorisiert
Modell: MCP2155

Brauchst du Hilfe?

Wenn Sie Hilfe mit Microchip MCP2155 benötigen, stellen Sie unten eine Frage und andere Benutzer werden Ihnen antworten




Bedienungsanleitung Nicht kategorisiert Microchip

Bedienungsanleitung Nicht kategorisiert

Neueste Bedienungsanleitung fĂĽr -Kategorien-