SLAA202B February 2005 – December 2018 MSP430F149 , MSP430F149 , MSP430F2252-Q1 , MSP430F2252-Q1 , MSP430F2272-Q1 , MSP430F2272-Q1 , MSP430F2274 , MSP430F2274 , MSP430FG4619 , MSP430FG4619
The development of wireless communications has occurred rapidly throughout the past decade. One of the standards used is the Infrared Data Association (IrDA) specification. The protocol introduced by this entity consists of three basic layers: IrPHY, IrLAP, and IrLMP, which supply a base for many other applications.
This application report implements the IrDA Lite protocol (IrPHY, IrLAP, and IrLMP) on select MSP430™ microcontrollers (MCUs), as well as Tiny Transfer Protocol (TTP) and IrCOMM 3-wire services as a passive secondary-only device. IrPHY implementations are provided using a Timer_A-based approach and also using the USCI_A hardware module.
The source code and software described in this application report can be downloaded from http://www.ti.com/lit/zip/slaa202.
MSP430 is a trademark of Texas Instruments.
Windows is a registered trademark of Microsoft Corporation.
Sharp is a registered trademark of Sharp Microelectronics.
All other trademarks are the property of their respective owners.
It is helpful if the reader of this application report has some prior knowledge of the Infrared Data Association (IrDA) specifications. Some general information on the stack is provided in Section 5 but this is by no means interchangeable with the full documentation and specifications for IrDA.
This implementation follows the standards defined by IrDA Lite. The application uses IrPHY, IrLAP, IrLMP, TTP, and IrCOMM 3-wire services to implement an IrDA serial port connection as a passive, secondary-only device. When a primary IrDA peer transmits the string "t" to the MSP430 MCU, the MCU detects the string, reads the ADC internal temperature sensor, and responds with the temperature reading. Within this application report, three different projects are included:
To provide a more complete solution, a demonstration application for Windows®-based PCs is also included. This application is written in the C programming language and shows how to establish an IrDA connection between a PC and the MSP430 IrDA stack using only standard Windows API calls.