XR20V2172
19
REV. 1.0.2
TWO CHANNEL I2C/SPI UART WITH 64-BYTE FIFO AND RS232 TRANSCEIVER
2.16
Infrared Mode (UART Channel B Only)
The L402 includes an infrared encoder and decoder compatible to the IrDA (Infrared Data Association) version
1.0 and 1.1. The IrDA 1.0 standard that stipulates the infrared encoder sends out a 3/16 of a bit wide HIGH-
pulse for each “0” bit in the transmit data stream with a data rate up to 115.2 Kbps. For the IrDA 1.1 standard,
the infrared encoder sends out a 1/4 of a bit time wide HIGH-pulse for each "0" bit in the transmit data stream
with a data rate up to 1.152 Mbps. This signal encoding reduces the on-time of the infrared LED, hence
reduces the power consumption. See Figure 13 below.
The infrared encoder and decoder are enabled by setting MCR register bit-6 to a ‘1’. With this bit enabled, the
infrared encoder and decoder is compatible to the IrDA 1.0 standard. For the infrared encoder and decoder to
be compatible to the IrDA 1.1 standard, EFCR bit-7 will also need to be set to a ’1’. When the infrared feature
is enabled, the transmit data output, TX, idles LOW. Likewise, the RX input also idles LOW, see Figure 13.
The wireless infrared decoder receives the input pulse from the infrared sensing diode on the RX pin. Each
time it senses a light pulse, it returns a logic 1 to the data bit stream.
The Infrared Mode can only be used with channel B of the L402 using the TXB output and the RXB input pins.
FIGURE 13. INFRARED TRANSMIT DATA ENCODING AND RECEIVE DATA DECODING
Character
Data Bits
Star
t
Sto
p
00
0
11
1
11
TX Data
Transmit
IR Pulse
(TX Pin)
Bit Time
1/2 Bit Time
3/16 or 1/4
Bit Time
IrEncoder-1
Character
Data Bits
St
ar
t
St
op
00
0
11
1 1
1
Bit Time
1/16 Clock Delay
IRdecoder-1
RX Data
Receive
IR Pulse
(RX pin)