English
Language : 

AT697F Datasheet, PDF (57/155 Pages) ATMEL Corporation – Rad-Hard 32 bit SPARC V8 Processor
AT697F ADVANCE INFORMATION
UARTs (UART1
and UART2)
The Universal Asynchronous Receiver and Transmitter (UART) is a highly flexible serial commu-
nication module. The AT697 implements two uarts : UART1 and UART2. Uarts on the processor
are defined as alternate functions of the general purpose interface (GPI).
Overview
The two UART’s provide double buffering. Each UART consists of a transmitter holding register,
a receiver holding register, a transmitter shift register, and a receiver shift register. Each of these
registers are 8-bit wide.
Figure 36. UART Block Diagram
Serial Frame
Frame formats
Uart Scaler Reg.
UASCAn
Uart Control Reg.
UACn
Uart Status Reg.
UASn
Baud-rate
generator
control logic
RX
Receiver Shift Register
Receiver Holding Register
Transmitter Shift Register
Transmitter Holding Register
CTS
RTS
TX
Uart Data Reg.
UADn
Each UART is fully controlled by a set of four registers including :
• a control register
• a status register
• a scaler register
• and a data register
A serial frame is defined to be one character of data bits with synchronisation bits (start and stop
bits), and optionnaly a parity bit for error checking.
Two frame formats are accepted by the AT697 UARTs, the only difference being the presence
or the absence of the parity bit. All the frames are built on an eight data bits basis.
A frame starts with the synchronization start bit followed by the least significant data bit. Then
the next data bits, up to a total of eight, are succeeding, ending with the most significant bit. If
enabled by setting the UACxJPEx, the parity bit is inserted after the data bits and before the
stop bit.
The following figure illustrates the accepted frame formats.
Figure 37. Data frame format
Data frame, no parity:
Start D0 D1 D2 D3 D4 D5 D6 D7 Stop
Parity bit
7703C–AERO–6/09
Data frame with parity:
Start D0 D1 D2 D3 D4 D5 D6 D7 Parity Stop
The parity bit is calculated by doing an exclusive-or of all the data bits. The odd parity is configured set-
ting logical one the UACxJPSx . In this case, the result of the exclusive or is inverted. An even parity can
be selected setting logical zero the UACxJPSx.
57