10 UART (UART)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
10-1
(Rev. 1.0)
UART (UART)
10
Overview
10.1
The UART is an asynchronous serial interface. The features of the UART are listed below.
• Includes a baud rate generator for generating the transfer clock.
• Supports 7- and 8-bit data length (LSB first).
• Odd parity, even parity, or non-parity mode is selectable.
• The start bit length is fixed at 1 bit.
• The stop bit length is selectable from 1 bit and 2 bits.
• Supports full-duplex communications.
• Includes a 2-byte receive data buffer and a 1-byte transmit data buffer.
• Includes an RZI modulator/demodulator circuit to support IrDA 1.0-compatible infrared communications.
• Can detect parity error, framing error, and overrun error.
• Can generate receive buffer full (1 byte/2 bytes), transmit buffer empty, end of transmission, parity error, framing
error, and overrun error interrupts.
• Input pin can be pulled up with an internal resistor.
• The output pin is configurable as an open-drain output.
Figure 10.1.1 shows the UART configuration.
Channel configuration in this IC
• 1 channel (Ch.0)
UART Ch.
n
Interrupt
control circuit
Baud rate
generator
Transmit/receive
control circuit
Receive data buffer
RXD[7:0]
Clock generator
Interrupt
controller
CLK_UART
n
Shift register
RZI demodulator
Transmit data buffer
TXD[7:0]
Shift register
RZI modulator
PUEN
OUTMD
IRMD
FMD[3:0]
BRT[7:0]
USIN
n
USOUT
n
CLKSRC[1:0]
CLKDIV[1:0]
DBRUN
MODEN
TENDIE
FEIE
PEIE
OEIE
RB2FIE
RB1FIE
TBEIE
TENDIF
FEIF
PEIF
OEIF
RB2FIF
RB1FIF
TBEIF
STPB
SFTRST
RBSY
TBSY
PRMD
PREN
CHLN
Inter
nal data
bu
s
INVIRTX
INVIRRX
1.1 UART Configuration
Figure 10.