25.08.2015 Views

UM10139

UM10139 Volume 1: LPC214x User Manual - Fab@Home

UM10139 Volume 1: LPC214x User Manual - Fab@Home

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Philips SemiconductorsVolume 1<strong>UM10139</strong>Chapter 10: UART1Auto-RTSThe auto-RTS function is enabled by setting the CTSen bit. Auto-RTS data flow controloriginates in the U1RBR module and is linked to the programmed receiver FIFO triggerlevel. If auto-RTS is enabled, when the receiver FIFO level reaches the programmedtrigger level RTS1 is deasserted (to a high value). The sending UART may send anadditional byte after the trigger level is reached (assuming the sending UART has anotherbyte to send) because it may not recognize the deassertion of RTS1 until after it hasbegun sending the additional byte. RTS1 is automatically reasserted (to a low value) oncethe receiver FIFO has reached the previous trigger level. The reassertion of RTS1 signalsthe sending UART to continue transmitting data.If auto-RTS mode is disabled the RTSen bit controls the RTS1 output of the UART1. Ifauto-RTS mode is enabled hardware controls the RTS1 output and the actual value ofRTS1 will be copied in the RTSen bit of the UART1. As long as auto-RTS is enabled thevalue if the RTSen bit is read-only for software.Example: Suppose the UART1 operating in type 550 has trigger level in U1FCR set to 0x2then if auto-RTS is enabled the UART1 will deassert the RTS1 output as soon as thereceive FIFO contains 8 bytes (Table 123 on page 122). The RTS1 output will bereasserted as soon as the receive FIFO hits the previous trigger level: 4 bytes.UART1 RxRTS1 pinUART1 RxFIFO readUART1 RxFIFO levelstart byte N stop start bits0..7 stop start bits0..7 stopN-1 N N-1 N-2 N-1 N-2 M+2 M+1 M M-1~ ~ ~ ~ ~Fig 20. Auto-RTS functional timingAuto-CTSThe auto-CTS function is enabled by setting the CTSen bit. If auto-CTS is enabled thetransmitter circuitry in the U1TSR module checks CTS1 input before sending the next databyte. When CTS1 is active (low), the transmitter sends the next byte. To stop thetransmitter from sending the following byte, CTS1 must be released before the middle ofthe last stop bit that is currently being sent. In auto-CTS mode a change of the CTS1signal does not trigger a modem status interrupt unless the CTS Interrupt Enable bit is set,Delta CTS bit in the U1MSR will be set though. Table 126 lists the conditions forgenerating a Modem Status interrupt.© Koninklijke Philips Electronics N.V. 2005. All rights reserved.User manual Rev. 01 — 15 August 2005 124

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

Saved successfully!

Ooh no, something went wrong!