Download USER`S MANUAL

Transcript
S3C4520A RISC MICROCONTROLLER
UART
UART STATUS REGISTERS
Table 10-4. UART Status Registers
Registers
USTAT
Offset Address
R/W
0xE04
R/W
Description
UART status register
Reset Value
0xE0900
Table 10-5. UART Status Register Description
Bit Number
[0]
Bit Name
Receive Data Valid
(RDV)
Reset Value
This bit automatically set to one when Receive FIFO-top or
URXBUF contains a valid data received over the serial port. The
received data can be read from Receive FIFO-top or URXBUF .
When this bit is "0", there is no valid data.
According to the current setting of the UART receive mode bits, an
interrupt or DMA request is generated when USTAT[0] is "1". In
case of UCON[3:2]='01' and UINTEN[0]=1,interrupt requested, and
UCON[3:2]='10' or '11', DMA request occurred.
You can clear this bit by reading Receive FIFO or URXBUF.
NOTE:
Whether Receive FIFO top or URXBUF is depends on
the UCON[17] RFEN.
[1]
Break Signal Detected
(BSD)
This bit automatically set to one to indicate that a break signal has
been received in Receive FIFO-top or URXBUF.
If the BSD interrupt enable bit, UINTEN[1], is "1", a interrupt is
generated when a break occurs.
You can clear this bit by writing '1' to this bit.
[2]
Frame Error (FER)
This bit automatically set to "1" whenever a frame error occurs
during a serial data receive operation. A frame error occurs when a
zero is detected instead of the Stop bit(s).
If the FER interrupt enable bit, UINTEN[2], is "1", a interrupt is
generated when a frame error occurs.
You can clear this bit by writing '1' to this bit.
[3]
Parity Error (PER)
This bit automatically set to "1" whenever a parity error occurs
during a serial data receive operation. If the PER interrupt enable
bit, UINTEN[3], is "1", a interrupt is generated when a parity error
occurs.
You can clear this bit by writing '1' to this bit.
10-9