18 uaRT
18-10
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
D0
TDBe: Transmit Data Buffer empty Flag Bit
Indicates the transmit data buffer status.
1 (R):
Buffer empty (default)
0 (R):
Data exists
TDBE is reset to 0 when transmit data is written to the transmit data buffer and is set to 1 when the data
is transferred to the shift register.
uaRT Ch.
x
Transmit Data Registers (uaRT_TXD
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
uaRT Ch.
x
Transmit Data
Register
(uaRT_TXD
x
)
0x4101
0x4121
(8 bits)
D7–0 TXD[7:0]
Transmit data
TXD7(6) = MSB
TXD0 = LSB
0x0 to 0xff (0x7f)
0x0 R/W
D[7:0]
TXD[7:0]: Transmit Data
Write transmit data to be set in the transmit data buffer. (Default: 0x0)
The UART starts transmitting when data is written to this register. Data written to TXD[7:0] is retained
until sent to the transmit data buffer. Transmitting data from within the transmit data buffer generates a
cause of transmit buffer empty interrupt.
TXD7 (MSB) is invalid in 7-bit mode.
Serial converted data is output from the SOUT
x
pin beginning with the LSB, in which the bits set to 1
are output as High level and bits set to 0 as Low level signals.
This register can also be read.
uaRT Ch.
x
Receive Data Registers (uaRT_RXD
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
uaRT Ch.
x
Receive Data
Register
(uaRT_RXD
x
)
0x4102
0x4122
(8 bits)
D7–0 RXD[7:0]
Receive data in the receive data
buffer
RXD7(6) = MSB
RXD0 = LSB
0x0 to 0xff (0x7f)
0x0
R Older data in the buf-
fer is read out first.
D[7:0]
RXD[7:0]: Receive Data
Data in the receive data buffer is read out in sequence, starting with the oldest. Received data is placed in
the receive data buffer. The receive data buffer is a 2-byte FIFO that allows proper data reception until it
fills, even if data is not read out. If the buffer is full and the shift register also contains received data, an
overrun error will occur, unless the data is read out before reception of the subsequent data starts.
The receive circuit includes two receive buffer status flags: RDRY/UART_ST
x
register and RD2B/
UART_ST
x
register. The RDRY flag indicates the presence of valid received data in the receive data
buffer, while the RD2B flag indicates the presence of two received data in the receive data buffer.
A receive buffer full interrupt occurs when the received data in the receive data buffer reaches the num-
ber specified by RBFI/UART_CTL
x
register.
0 is loaded into RXD7 in 7-bit mode.
Serial data input via the SIN
x
pin is converted to parallel, with the initial bit as LSB, the High level bit
as 1, and the Low level bit as 0. This data is then loaded into the receive data buffer.
This register is read-only. (Default: 0x0)
uaRT Ch.
x
Mode Registers (uaRT_MOD
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
uaRT Ch.
x
Mode Register
(uaRT_MOD
x
)
0x4103
0x4123
(8 bits)
D7–5 –
reserved
–
–
–
0 when being read.
D4
Chln
Character length select
1 8 bits
0 7 bits
0
R/W
D3
PRen
Parity enable
1 With parity
0 No parity
0
R/W
D2
PMD
Parity mode select
1 Odd
0 Even
0
R/W
D1
STPB
Stop bit select
1 2 bits
0 1 bit
0
R/W
D0
SSCK
Input clock select
1 External
0 Internal
0
R/W
D[7:5]
Reserved