01.08.2013 Views

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

Chapter 19 Universal Asynchronous Receiver-Transmitter (UART).pdf

SHOW MORE
SHOW LESS

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.6.2 FIFO Interrupt Mode<br />

In FIFO interrupt mode (the FIFO control register <strong>UART</strong>i.<strong>UART</strong>_FCR[0] FIFO_EN bit is set to 1 and<br />

relevant interrupts are enabled by the <strong>UART</strong>i.<strong>UART</strong>_IER register), an interrupt signal informs the<br />

processor of the status of the receiver and transmitter. These interrupts are raised when the RX/TX FIFO<br />

threshold (the <strong>UART</strong>i.<strong>UART</strong>_TLR[7:4] RX_FIFO_TRIG_DMA and <strong>UART</strong>i.<strong>UART</strong>_TLR[3:0]<br />

TX_FIFO_TRIG_DMA bit fields or the <strong>UART</strong>i.<strong>UART</strong>_FCR[7:6] RX_FIFO_TRIG and<br />

<strong>UART</strong>i.<strong>UART</strong>_FCR[5:4] TX_FIFO_TRIG bit fields, respectively) is reached.<br />

The interrupt signals instruct the MPU to transfer data to the destination (from the <strong>UART</strong> in receive mode<br />

and/or from any source to the <strong>UART</strong> FIFO in transmit mode).<br />

When <strong>UART</strong> flow control is enabled with interrupt capabilities, the <strong>UART</strong> flow control FIFO threshold (the<br />

<strong>UART</strong>i.<strong>UART</strong>_TCR[3:0] RX_FIFO_TRIG_HALT bit field) must be greater than or equal to the RX FIFO<br />

threshold.<br />

Figure <strong>19</strong>-5 shows the generation of the RX FIFO interrupt request.<br />

RX FIFO level<br />

Programmable flow control threshold<br />

Programmable FIFO threshold<br />

Figure <strong>19</strong>-5. RX FIFO Interrupt Request Generation<br />

Zero byte<br />

Interrupt request<br />

MPU acknowledged interrupt request<br />

and transferred enough bytes to<br />

recover FIFO level below<br />

threshold<br />

Interrupt request active high<br />

In receive mode, no interrupt is generated until the RX FIFO reaches its threshold. Once low, the interrupt<br />

can be deasserted only when the MPU has handled enough bytes to put the FIFO level below threshold.<br />

The flow control threshold is set at a higher value than the FIFO threshold.<br />

Figure <strong>19</strong>-6 shows the generation of the TX FIFO interrupt request.<br />

3640 <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 />

Time<br />

Time<br />

uart-024

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!