Asynchronous Serial Port
10-3
10.1.1.3
CTS/RTR Protocol
Note: The clear-to-send/ready-to-receive (CTS/RTR) protocol provides flow control when
both ports are sending and receiving data, as shown in Figure 10-2.
Figure 10-2
CTS/RTR Protocol
The Am186ES and Am188ES microcontrollers’ serial ports can be configured for the CTS/
RTR protocol by clearing both the ENRX and the RTS bits for the associated serial port.
This is the default configuration.
The CTS/RTR protocol provides a symmetrical interface. When a device is ready to receive
data, i.e., there is no unread data in the serial port receive register, the device asserts the
RTR signal. A device does not begin transmitting data until the CTS signal is asserted.
10.1.1.4
Flow Control and Transmission Rates
Although the use of flow control can eliminate the possibility of overrun errors—data loss
due to reception of new data before the last received data has been read—it can have an
effect on serial port transmission rates.
On the Am186ES and Am188ES microcontrollers, the RTR signal is not asserted until valid
data from a previous transmission has been read out of the receive register, i.e., the RDR
bit in the serial port status register is cleared. This means that the transmitting serial port
will not begin transmission of the next data item until software running on the Am186ES
and Am188ES microcontrollers has had a chance to read the last data item. This is not the
case when flow control is not being used and data continues to be sent, allowing software
a minimum of one frame transmission time to read the data in order to prevent overrun
errors. To minimize this delay, the receive register should be read as soon as possible after
the completion of the reception of data. Using the serial port receiver as a DMA source
provides the shortest possible delay.
10.2
PROGRAMMABLE REGISTERS
The asynchronous serial ports are programmed through the use of 10, 16-bit peripheral
registers. See Table 10-2.
CTS
RTR
CTS
RTR
CTS = Clear to send input to transmitter
RTR = Ready to receive output from receiver
Содержание Am186 ES
Страница 1: ...Am186 ES and Am188 ES User s Manual...
Страница 4: ...iv...
Страница 12: ...Table of Contents xii...
Страница 22: ...Features and Performance 1 8...
Страница 60: ...System Overview 3 28...
Страница 84: ...Chip Select Unit 5 14...
Страница 132: ...Timer Control Unit 8 8...
Страница 166: ...Programmable I O Pins 11 6...
Страница 184: ...Register Summary A 18...