Preliminary
Architecture
www.ti.com
19.2.7.3 IrDA Mode Interrupts
In IrDA modes, there are eight possible interrupts. The interrupt line is activated when any of the eight
interrupts is generated (there is no priority). For IIR[5], interrupt source 1 is used with interrupt reset
method 1 and interrupt source 2 is used with interrupt reset method 2.
summarizes the
interrupt control functions.
Table 19-5. IrDA Mode Interrupts
IIR Bit
Interrupt Type
Interrupt Source
Interrupt Reset Method
0
RHR interrupt
DRDY (data ready) (FIFO disable)
Read RHR register until interrupt condition
disappears.
RX FIFO above trigger level (FIFO enable)
1
THR interrupt
TFE (THR empty) (FIFO disable)
Write to THR register until interrupt
condition disappears.
TX FIFO below trigger level (FIFO enable)
2
Last byte in RX FIFO
Last byte of frame in RX FIFO is available
Read RHR register.
to be read at the RHR port.
3
RX overrun
Write to RHR register when RX FIFO full.
Read RESUME register.
4
Status FIFO interrupt
Status FIFO triggers level reached.
Read SFREGL/H, SFLSR. Status FIFO
read pointer is incremented only when
reading SFLSR.
5
TX status
1.
THR empty before EOF sent. Last bit of
1.
Read RESUME register.
(indicated by MDR2[0]
transmission of the IrDA frame
OR
(IRTX_UNDERRUN)
occurred, but with an underrun error.
2.
Read IIR register.
OR
2.
Transmission of the last bit of the IrDA
frame completed successfully.
6
Receiver line status
CRC, ABORT, or frame-length error is
Read STATUS FIFO (read until empty -
interrupt
written into STATUS FIFO.
maximum of eight reads required).
7
Received EOF
Received end-of-frame.
Read IIR register.
19.2.7.4 CIR Mode Interrupts
The CIR mode uses a subset of the existing IrDA mode interrupts.
summarizes the interrupt
modes that are to be maintained. In CIR mode, IIR bit 5 has a single purpose of indicating that the last
bit of infrared data has been passed to the IR TX pin.
Table 19-6. CIR Mode Interrupts
IIR Bit
Interrupt Type
Interrupt Source
Interrupt Reset Method
0
RHR interrupt
DRDY (data ready) (FIFO disable)
Read RHR register until interrupt condition
disappears.
RX FIFO above trigger level (FIFO enable)
1
THR interrupt
TFE (THR empty) (FIFO disable)
Write to THR register until interrupt
condition disappears.
TX FIFO below trigger level (FIFO enable)
2
RXSTOPIT interrupt
Receive stop interrupt (depending on value
Read IIR register.
set in the BOF length register (EBLR))
3
RXOEIT interrupt
Write to RHR register when RX FIFO full.
Read RESUME register.
4
N/A for CIR mode
5
TX status
Transmission of the last bit of the frame is
Read IIR register.
completed successfully.
6-7
N/A for CIR mode
1708UART/IrDA/CIR Module
SPRUGX9 – 15 April 2011
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...