Table 16-3. Uartdr Register; Table 16-4. Uartdr Fields; Register Definitions - Sharp LH79524 User Manual

Table of Contents

Advertisement

UARTs

16.3.2 Register Definitions

16.3.2.1 Data Register (UARTDR)
UARTDR is the Data Register for words that are to be transmitted or have been received
over the serial interface. Writing to this register initiates transmission from the UART.
• If the FIFOs are enabled, data written to this location is pushed to the transmit FIFO.
• If the FIFOs are not enabled, data is stored in the Transmitter Holding Register (THOR),
the bottom word of the transmit FIFO.
A read of this register pops the first word from the receive FIFO. This word consists of the
received character and the associated error bits.
BIT
FIELD
RESET
RW
BIT
FIELD
RESET
RW
ADDR
BIT
31:12
11
10
9
8
7:0
16-8

Table 16-3. UARTDR Register

31
30
29
28
0
0
0
0
RO
RO
RO
RO
RO
15
14
13
12
///
OE
0
0
0
0
RO
RO
RO
RO
RO
NAME
///
Reserved Reading returns 0. Write the reset value.
Receive FIFO Full/Empty This bit indicates an overrun condition.
OE
1 = Data is received and the receive FIFO is already full
0 = There is an empty space in the FIFO and a new character can be written
Break Error This bit indicates a Break has occurred. It is cleared to 0 after a Write to the
UARTECR Register. In FIFO Mode, this error is associated with the character at the top of
the FIFO. When a break occurs, only one 0 character is loaded into the FIFO. The next char-
acter is only enabled after the receive data input goes to a 1 (Idle state) and the next valid
BE
Start bit is received.
1 = A Break condition was detected, indicating that the received data input was held LOW
for longer than a full-word transmission time (defined as Start, data, parity and Stop bits)
0 = No Break
Parity Error/Address Received See Table 16-5. In FIFO mode, this error is associated
PEAR
with the character at the top of the FIFO.
Framing Error This bit indicates that a Framing Error has occurred. In FIFO Mode, this
error is associated with the character at the top of the FIFO.
FE
1 = The received character did not have a valid Stop bit (a valid Stop bit is 1)
0 = No Framing Error
Receive/Transmit Data Character This field contains the receive or transmit data.
DATA
Read = Receive data character
Write = Transmit data character
27
26
25
24
23
///
0
0
0
0
0
RO
RO
RO
RO
11
10
9
8
7
BE
PEAR
FE
0
0
0
0
0
RO
RO
RO
RW
UART 0: 0xFFFC0000 + 0x000
UART 1: 0xFFFC1000 + 0x000
UART 2: 0xFFFC2000 + 0x000

Table 16-4. UARTDR Fields

DESCRIPTION
Version 1.0
LH79524/LH79525 User's Guide
22
21
20
19
18
0
0
0
0
0
RO
RO
RO
RO
RO
6
5
4
3
2
DATA
0
0
0
0
0
RW
RW
RW
RW
RW
17
16
0
0
RO
RO
1
0
0
0
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents