3 irda connectivity, 3 irda connectivity -20, Table 17-4. devicecfg.ionu2 pin function -20 – Cirrus Logic EP93xx User Manual

Page 616

Advertising
background image

17-20

DS785UM1

Copyright 2007 Cirrus Logic

IrDA
EP93xx User’s Guide

1

7

1

7

17

When unexpected frame termination is selected and an underrun occurs, the transmit logic
outputs an abort and interrupts the CPU. An abort continues to be transmitted until data is
once again available in the transmit buffer. The FIR then transmits 16 preambles, a start flag
and starts the new frame. The remote receiver may choose to ignore the abort and continue
to receive data, or to signal the FIR to retry transmission of the aborted frame.

At the end of each frame transmitted, the FIR outputs a pulse called the serial infrared
interaction pulse (SIP). A SIP is required at least every 500 ms to keep slower speed devices
(115.2 kbps and slower) from colliding with the higher speed transmission. The SIP simulates
a start bit which causes all low speed devices to stay off the bus for at least another 500 ms.
Transmission of the SIP pulse causes the transmit pin to be forced high for a duration of
1.625

μ

s and low for 7.375

μ

s (total SIP period = 9.0

μ

s). After the 9.0

μ

s elapses, the

preamble is then transmitted continuously to indicate to the remote receiver that the FIR’s
transmitter is in the idle state. The preamble continues to be transmitted until new data is
available within the transmit buffer, or the FIR’s transmitter is disabled. Note that it is the
responsibility of the user to ensure that a frame completes once every 500 ms such that a
SIP pulse is produced keeping all low speed devices from interrupting transmission. Because
most IrDA compatible devices produce a SIP after each frame transmitted, the user may only
need to ensure that a frame is either transmitted or received by the FIR every 500 ms.

Note that frame length does not represent a significant portion of the 500 ms time frame in
which a SIP must be produced. At 4.0 Mbps, the longest frame allowed is 16,568 bits, which
takes just over 4 ms to transmit. Also note that the FIR issues a SIP when the transmitter is
first enabled, to ensure all low speed devices are silenced before transmitting its first frame.

If the user disables the FIR’s transmitter during operation, transmission of the current data
byte is stopped immediately, the serial shifter and transmit buffer are cleared. All clocks used
by the transmit logic are automatically shut off to conserve power.

17.5.3 IrDA Connectivity

The IrDA controller uses package pins RXD1 and TXD1. The IrDA input signal is always
RXD1. Syscon register DeviceCfg.IonU2 controls what drives bit TXD1. See

Figure 17-4

.

Therefore, to use any IrDA mode, FIR, MIR or SIR, set IonU2. To use UART2 as a UART,
clear IonU2.

Table 17-4. DeviceCfg.IonU2 Pin Function

DeviceCfg.IonU2

Pin TXD1 Function

0

UART2 is the output signal

1

Logical OR of IrDA output signal and UART2 SIR output signal

Advertising