Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf
Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf
Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Functional Description www.ti.com<br />
<strong>19</strong>.3.8.3 CIR Mode<br />
In consumer infrared mode, the infrared operation is designed to function as a programmable (universal)<br />
remote control. By setting the MDR1 register, the <strong>UART</strong> can be set to CIR mode in the same way as the<br />
other IrDA modes are set using the MDR1 register.<br />
The CIR mode uses a variable pulse width modulation technique (based on multiples of a programmable<br />
T period) to encompass the various formats of infrared encoding for remote control applications. The CIR<br />
logic is to transmit and receive data packets according to the user definable frame structure and packet<br />
content.<br />
<strong>19</strong>.3.8.3.1 Consumer IR Encoding<br />
There are two distinct methods of encoding for remote control applications. The first uses time extended<br />
bit forms i.e. a variable pulse distance (or duration) whereby the difference between a logic one and logic<br />
zero is the length of the pulse width; and the second is the use of a bi-phase where the encoding of the<br />
logic zero and one is in the change of signal level from 1→0 or 0→1 respectively. Japanese<br />
manufacturers tend to favor the use of pulse duration encoding whereas European manufacturers favor<br />
the use of bi-phase encoding.<br />
The CIR mode is designed to use a completely flexible free format encoding where a digit ‘1’ from the<br />
TX/RX FIFO is to be transmitted/received as a modulated pulse with duration T. Equally, a ‘0’ is to be<br />
transmitted/received as a blank duration T. The protocol of the data is to be constructed and deciphered<br />
by the host CPU. For example, the RC-5 protocol using Manchester encoding can be emulated as using a<br />
“01” pair for one and “10” pair for a zero.<br />
Figure <strong>19</strong>-25. RC-5 Bit Encoding<br />
RC-5bit encoding<br />
T T T T<br />
1 0<br />
0<br />
1.778ms 1.778ms<br />
"0" "1"<br />
Since the CIR mode logic does not impose a fixed format for infrared packets of data, the CPU software is<br />
at liberty to define the format through the use of simple data structures that will then be modulated into an<br />
industry standard, such as RC5 or SIRC. To send a sequence of “0101” in RC5, the host software must<br />
write an eight bit binary character of “10011001” to the data TX FIFO of the <strong>UART</strong>.<br />
For SIRC, the modulation length (i.e. multiples of T) is the method to distinguish between a “1” or a “0”.<br />
The following SIRC digits show the difference in encoding between this and RC5 for example. Note: the<br />
pulse width is extended for “1” digits.<br />
3668 <strong>Universal</strong> <strong>Asynchronous</strong> <strong>Receiver</strong>/<strong>Transmitter</strong> (<strong>UART</strong>) SPRUH73E–October 2011–Revised May 2012<br />
Submit Documentation Feedback<br />
Copyright © 2011–2012, Texas Instruments Incorporated<br />
1