ST10F269-T3
14 - SERIAL CHANNELS
Serial communication with other microcontrollers,
microprocessors, terminals or external peripheral
components is provided by two serial interfaces: the
asynchronous / synchronous serial channel (ASCO)
and the high-speed synchronous serial channel
(SSC). Two dedicated Baud rate generators set up
all standard Baud rates without the requirement of
oscillator tuning. For transmission, reception and
erroneous reception, 3 separate interrupt vectors
are provided for each serial channel.
14.1 - Asynchronous / Synchronous Serial
Interface (ASCO)
The asynchronous / synchronous serial interface
(ASCO) provides serial communication between
the ST10F269-T6 and other microcontrollers,
microprocessors or external peripherals.
A set of registers is used to configure and to
control the ASCO serial interface:
鈥?P3, DP3, ODP3 for pin configuration
鈥?SOBG for Baud rate generator
鈥?SOTBUF for transmit buffer
鈥?SOTIC for transmit interrupt control
鈥?SOTBIC for transmit buffer interrupt control
鈥?SOCON for control
鈥?SORBUF for receive buffer (read only)
鈥?SORIC for receive interrupt control
鈥?SOEIC for error interrupt control
14.1.1 - ASCO in Asynchronous Mode
In asynchronous mode, 8 or 9-bit data transfer,
parity generation and the number of stop bit can
be selected. Parity framing and overrun error
detection is provided to increase the reliability of
data transfers. Transmission and reception of data
is double-buffered. Full-duplex communication up
to 1MBauds (at 32MHz of f
CPU
) is supported in
this mode.
Figure 44 :
Asynchronous Mode of Serial Channel ASC0
Reload Register
CPU
Clock
2
Baud Rate Timer
16
S0R
S0M S0STP
S0FE S0PE S0OE
S0REN
S0FEN
S0PEN
Input
RXD0/P3.11
Pin
S0OEN
S0LB
Clock
S0RIR
Receive Interrupt
Request
Transmit Interrupt
Request
Error Interrupt
Request
Serial Port Control
S0TIR
Shift Clock
S0EIR
0
MUX
1
Sampling
Receive Shift
Register
Transmit Shift
Register
Pin
TXD0 / P3.10
Output
Receive Buffer
Register S0RBUF
Transmit Buffer
Register S0TBUF
Internal Bus
91/160