English
Language : 

SPRUGZ8D Datasheet, PDF (2686/3016 Pages) Texas Instruments – Technical Reference Manual
Architecture
www.ti.com
24.2.4 IrDA Mode
This section describes the IrDA connection with an external device. Figure 24-3 shows how UART3 can
be connected to an external infrared transceiver in the IrDA mode.
Figure 24-3. UART IrDA to External IR Device
UART/IrDA/CIR
Controller
UART_IRTX
UART_IRRX
UART_SD
UART_RCTX
IrDA transceiver
RXD(IrDA)
TXD
SD/MODE
RC(CIR)
The module performs serial-to-parallel conversion on received data characters and parallel-to-serial
conversion on transmitted data characters by the processor. The complete status of each channel of the
module and each received character/frame can be read at any time during functional operation via the line
status register (LSR).
The module can be placed in an alternate mode (FIFO mode) relieving the processor of excessive
software overhead by buffering received/transmitted characters. Both the receiver and transmitter FIFOs
can store up to 64 bytes of data (plus three additional bits of error status per byte for the receiver FIFO)
and have selectable trigger levels. Both interrupts and DMA are available to control the data-flow between
the LH and the module.
24.2.4.1 SIR Mode
In slow infrared (SIR) mode, data transfer takes place between the LH and peripheral devices at speeds of
up to 115200 bauds speed. A SIR transmit frame starts with start flags (either a single C0h, multiple C0h,
or a single C0h preceded by a number of FFh flags), followed by frame data, CRC-16 and ends with a
stop flag (C1h). The bit format for a single word uses a single start bit, eight data bits and one stop bit and
is unaffected by the use and settings of the LCR register.
Note that BLR[6] is used to select whether C0h or FFh start patterns is to be used, when multiple start
flags are required. The SIR transmit state machine attaches start flags, CRC-16 and stop flags. It checks
the outgoing data to establish if data transparency is required. SIR transparency is carried out if the
outgoing data, between the start and stop flags, contains C0h, C1h, or 7Dh. If one of these is about to be
transmitted, then the SIR state machine sends an escape character (7Dh) first, then inverts the fifth bit of
the real data to be sent, and sends this data immediately after the 7Dh character.
The SIR receive state machine recovers the receive clock, removes the start flags, removes any
transparency from the incoming data and determines frame boundary with reception of the stop flag. It
also checks for errors such as: frame abort (0x7D character followed immediately by a C1h stop flag,
without transparency), CRC error and frame-length error. At the end of a frame reception, the LH reads
the line status register (LSR) to find out possible errors of the received frame.
NOTE: Data can be transferred both ways by the module, but when the device is transmitting, the IR
RX circuitry is automatically disabled by hardware. See the UART3.ACREG[5] DIS_IR_RX
bit description. This applies to all three modes: SIR, MIR, and FIR.
2686 UART/IrDA/CIR Module
SPRUGZ8D – 14 November 2011 – Revised April 2013
Copyright © 2011–2013, Texas Instruments Incorporated
Submit Documentation Feedback