st62t18c STMicroelectronics, st62t18c Datasheet - Page 53

no-image

st62t18c

Manufacturer Part Number
st62t18c
Description
8-bit Mcus With A/d Converter, Auto-reload Timer, Uart, Osg, Safe Reset And 20-pin Package
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st62t18c3
Manufacturer:
ST
0
Part Number:
st62t18c6
Manufacturer:
ST
0
Part Number:
st62t18cB6
Manufacturer:
ST
0
Part Number:
st62t18cM6
Manufacturer:
ST
0
4.5 U. A. R. T. (Universal Asynchronous Receiver/Transmitter)
The UART provides the basic hardware for asyn-
chronous serial communication which, combined
with an appropriate software routine, gives a serial
interface providing communication with common
baud rates (up to 76,800 Baud with an 8MHz ex-
ternal oscillator) and flexible character formats.
Operating in Half-Duplex mode only, the UART
uses a 10-bit frame or a 11-bit frame according to
the choosen MCU option. Automatic parity bit gen-
eration is software selectable in the 10-bit charac-
ter format allowing either 7 data bit + 1 parity bit, or
8 data bit transmission. Transmitted data is sent di-
rectly, while received data is buffered allowing fur-
ther data characters to be received while the data
is being read out of the receive buffer register. Data
transmit has priority over data being received.
The UART is supplied with an MCU internal clock
that isalso available in WAIT mode of the processor.
Figure 30. UART Block Diagram
f
OSC
BAUD RATE x 8
INTE RRUPTS
WRIT E
READ
RX and TX
D8 D7 D6 D5 D4 D3 D2 D1 D0
DIN
CONTROL REGIST ER
RECEIV E BUFFER
PROGRAMMABLE
DATA SHIFT
BAUD RATE
DETECTOR
REGISTER
REGISTER
DIVIDE R
START
UARTOE
DOUT
D8
TXD
4.5.1 Ports Interfacing
RXD reception line and TXD emission line are
sharing the same external pins as two I/O lines.
Therefore, UART configuration requires to set
these two I/O lines through the relevant ports reg-
isters. The I/O line common with RXD line must be
defined as input mode (with or without pull-up)
while the I/O line common with TXD line must be
defined as output mode (Push-pull or open drain).
In the 11-bit character format option, the transmit-
ted data is inverted and can therefore use a single
transistor buffering stage. Defined as input, the
RXD line can be read at any time as an I/O line
during the UART operation. The TXD pin follows I/
O port registers value when UARTOE bit is
cleared, which means when no serial transmission
is in progress. As a consequence, a permanent
high level has to be written onto the I/O port in or-
der to achieve a proper stop condition on the TXD
line when no transmission is active.
DR
1
0
MUX
ST62T18C/E18C
TXD1
RXD1
VR02009
53/82
53

Related parts for st62t18c