Datasheet

1-10 MCF5407 User’s Manual
ColdFire Module Description
1.3.5 UART Modules
The MCF5407 contains two UARTs, which function independently. One UART has been
enhanced to provide synchronous operation and a CODEC interface for soft modem
support. Either UART can be clocked by the system bus clock, eliminating the need for an
external crystal. Each UART module interfaces directly to the CPU, as shown in Figure 1-2.
Figure 1-2. UART Module Block Diagram
Each UART module consists of the following major functional areas:
Serial communication channel
16-bit divider for clock generation
Internal channel control logic
Interrupt control logic
UART1 is enhanced to provide a CODEC interface for soft modem support. UART1 can be
programmed to function like UART0 or in one of following modem modes:
An 8-bit CODEC interface
A 16-bit CODEC interface
An audio CODEC ’97 (AC97) digital interface controller
Each UART contains an programmable clock-rate generator. Data formats can be 5, 6, 7,
or 8 bits with even, odd, or no parity, and up to 2 stop bits in 1/16 increments. The UARTs
include the following transmit and receive FIFO buffers:
UART0 has a 4-byte FIFO receive buffer and a 2-byte FIFO transmit buffer.
In UART1, the Tx and Rx FIFOs can hold the following:
32 1-byte samples when programmed as a UART or as an 8-bit CODEC interface
16 2-byte samples when programmed as a 16-bit CODEC interface
16 20-bit samples when programmed as a Digital AC ’97 Controller
The UART modules also provide several error-detection and maskable-interrupt
capabilities. Modem support includes request-to-send (RTS
) and clear-to-send (CTS) lines.
CLKIN provides the time base through a programmable prescaler. The UART time scale
can also be sourced from a timer input. Full-duplex, auto-echo loopback, local loopback,
Serial
Interrupt Control
Logic
CTS
RTS
RxD
TxD
CLKIN
or
External clock (TIN)
Internal Channel
Control Logic
Programmable
Clock
Communications
Channel
Generation
System Integration
Module (SIM)
Interrupt
Controller
UART