SLAA202B February   2005  – December 2018 MSP430F149 , MSP430F149 , MSP430F2252-Q1 , MSP430F2252-Q1 , MSP430F2272-Q1 , MSP430F2272-Q1 , MSP430F2274 , MSP430F2274 , MSP430FG4619 , MSP430FG4619

 

  1.   Implementing IrDA With MSP430™ MCUs
    1.     Trademarks
    2. 1 Introduction
    3. 2 Hardware Description
      1. 2.1 Hardware Overview
      2. 2.2 Circuit Description
    4. 3 Software Description
      1. 3.1 Implementing IrPHY Layer Using Timer_A
        1. 3.1.1 Transmission
        2. 3.1.2 Reception
      2. 3.2 Implementing IrPHY Layer using USCI_A0
      3. 3.3 Implementing IrLAP
        1. 3.3.1 Discovery Services
        2. 3.3.2 Connect Services
        3. 3.3.3 Data Services
        4. 3.3.4 Disconnect Services
      4. 3.4 Implementing IrLMP
        1. 3.4.1 Discovery Services
        2. 3.4.2 Link Connect and Connect Services
        3. 3.4.3 Data Services
        4. 3.4.4 Disconnect Services
      5. 3.5 IAS Implementation
      6. 3.6 TTP Implementation
      7. 3.7 IrCOMM Implementation
      8. 3.8 Application Layer
    5. 4 PC Demonstration Application
    6. 5 IrDA Protocol Basics
      1. 5.1 Physical (IrPHY) Layer
      2. 5.2 Link Access Protocol (IrLAP) Layer
      3. 5.3 Link Management Protocol (IrLMP) Layer
      4. 5.4 Information Access Services (IAS)
      5. 5.5 Tiny Transfer Protocol (TTP)
      6. 5.6 IrCOMM
    7. 6 IrDA Communication Diagram
    8. 7 Frame Exchange Log
    9. 8 References
  2.   Revision History

Tiny Transfer Protocol (TTP)

Tiny transfer protocol (TTP) provides a higher level of flow control than that of the IrLAP layer. It makes use of the multiplexing capabilities of the IrLMP layer to enable two different LMP connections to use the same underlying IrLAP connection without the loss of any data in the process. The way in which TTP is able to provide this service is by issuing a credit to each party. This credit is directly proportional to the buffer space that one side has. Sending data causes one credit to be used. Periodically, the receiver issues more credit to the sender to keep receiving the intended data. TTP also has segmentation and reassembly capabilities; this feature is not described in this application report.

TTP has its own set of primitives that describe the behavior of this layer. The primitives for TTP are:

  • Connect services
  • Disconnect services
  • Reliable or unreliable data services
  • Local flow control services

Two frame formats are used in TTP. Both add overhead to the User-Data field of the IrLMP

frame. These frames, as shown in Figure 20, establish a connection where initial credit (IC) is issued or transfer data where delta credit is accounted for. Delta credit (DC) is the amount of data frames that a device is allowed to send before it has to turn the connection over to another device.

ttp-frame-formats.gifFigure 20. TTP Frame Formats