Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 722

Table of Contents

Advertisement

Operating Modes
Operating Modes
The two UART operation modes are described in the following sections.
Data Packing
The UART provides packed and unpacked modes of data transfer to and
from the internal memory of the processors. This mode is set using the
bit (bit 0) in the
UARTPACK
word is appended to the left with 24 zeros during transmission or recep-
tion. In packed mode, two words of data are transmitted or received with
their corresponding higher bytes filled with zeros. For example, consecu-
tive data words 0xAB and 0xCD are packed as 0x00CD 00AB in the
receiver, and 0x00CD 00AB is transmitted as two words of 0xAB and
0xCD successively from the transmitter. Packing is available in both I/O
and DMA modes. A control bit,
the packing. For information on using the UART for DMA transfers, see
"DMA Transfers" on page
The packed feature is provided to use the internal memory of the
processor in a more efficient manner.
Note that in packed mode, both the transmitter and receiver operate with
an even number of words. A transmit-buffer-empty or receive-buffer-full
interrupt is generated only after an even number of words are transferred.
Programs must use care when using the packing feature in 9-bit
mode.
9-Bit Transmission Mode
To select 9-bit transmission mode in the transmitter, set the
register and the
UART_MODE
transmission). The 9-bit data (TX9D) can be directly written to the
buffer – either in packed or unpacked format. The UART
UART_THR
20-8
www.BDTIC.com/ADI
register. In unpacked mode, the data
UARTMODE
UARTPKSYN
20-13.
bit in the
UAEN
ADSP-214xx SHARC Processor Hardware Reference
, can be used to re synchronize
TX9
register (to enable
UART_TXCTL
bit in the

Advertisement

Table of Contents
loading

Table of Contents