DS785UM1
17-7
Copyright 2007 Cirrus Logic
IrDA
EP93xx User’s Guide
1
7
1
7
17
The data word and flags are held in the 39-bit wide receiver FIFO. Reading an IrData word
removes both the data and its associated flag bits from the FIFO causing the next word in the
FIFO (if present) to be transferred into the IrFlag and data registers. However, all error
conditions encountered during a frame are remembered. At the end of frame they can be
read form the IrRIB register.
When a receive overrun (ROR) or FIR framing error (FRE) is detected the remainder of the
frame will be discarded by the receive logic (not put into the receive FIFO). In the case of
receive overruns, if the end of frame (EOF) bit in the last entry in the FIFO is clear then the
Receive Buffer Overrun (ROR) and EOF bits will be set. If an overrun occurs and the last
entry in the FIFO already has the EOF bit set then the RFL interrupt will be triggered. In the
case of a framing error an extra entry will be put into the FIFO with FIR Framing Error (FRE)
and EOF set, this entry will not contain any valid data.
If programmed IO is used to service the IrDA interface instead of DMA a similar process
occurs. Interrupt requests to service the receive FIFO will not occur until the rest of the frame
has been discarded.
At the end of a frame, a valid end of frame (EOF) or an abort (RAB), a DMA request
corresponding to the last word (which may hold 1, 2, 3, or 4 bytes of valid data) of the
received frame will be raised. DMA will take the word. At that point the receive FIFO should
be empty and the DMA request may be deasserted. The DMA request will be reasserted
when data for a following frame is loaded into the receive FIFO.
The above behavior means there is no need for ARM Core intervention to service the IrDA
interface between successive receive frames.
17.3.2.4 Special Conditions
17.3.2.4.1 Early Termination of Transmission
Clearing IrCon.TXE (transmit enable bit) stops transmission immediately. All data within the
FIFO, transmit buffer and serial output shifter is cleared.
17.3.2.4.2 Early Termination of Reception
Clearing IrCon.RXE receive enable bit stops reception immediately. All data within the
receive buffer, serial input shifter and FIFO is cleared.
17.3.2.4.3 Changing IrDA Mode
Poll the Transmitter Disabled bits – FD or MD bits – in IrEnable register until end of
transmission is indicated. The new mode can then be set as described in 4.2.1General
Configuration.
17.3.2.4.4 Loopback Mode
For test purposes, data will be looped back – internally – from the output of the transmit serial
shifter into the input of the receive serial shifter when IrEnable.LBM is set.
Summary of Contents for EP93 Series
Page 28: ...P 6 DS785UM1 Copyright 2007 Cirrus Logic Preface EP93xx User s Guide PP P ...
Page 162: ...5 36 DS785UM1 Copyright 2007 Cirrus Logic System Controller EP93xx User s Guide 55 5 ...
Page 576: ...15 18 DS785UM1 Copyright 2007 Cirrus Logic UART2 EP93xx User s Guide 1515 15 ...
Page 634: ...17 38 DS785UM1 Copyright 2007 Cirrus Logic IrDA EP93xx User s Guide 1717 17 ...
Page 648: ...19 6 DS785UM1 Copyright 2007 Cirrus Logic Watchdog Timer EP93xx User s Guide 1919 19 ...
Page 688: ...21 32 DS785UM1 Copyright 2007 Cirrus Logic I2S Controller EP93xx User s Guide 2121 21 ...
Page 790: ...27 20 DS785UM1 Copyright 2007 Cirrus Logic IDE Interface EP93xx User s Guide 2727 27 ...
Page 808: ...28 18 DS785UM1 Copyright 2007 Cirrus Logic GPIO Interface EP93xx User s Guide 2828 28 ...