Example Showing Uart Receiving 5 Characters With 2 Errors - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

S3C2416X RISC MICROPROCESSOR
2.1.7 UART Error Status FIFO
UART has the error status FIFO besides the Rx FIFO register. The error status FIFO indicates which data, among
FIFO registers, is received with an error. The error interrupt will be issued only when the data, which has an error,
is ready to read out. To clear the error status FIFO, the URXHn with an error and UERSTATn must be read out.
For example,
It is assumed that the UART Rx FIFO receives A, B, C, D and E characters sequentially and the frame error
occurs while receiving 'B', and the parity error occurs while receiving 'D'.
The actual UART receive error will not generate any error interrupt because the character which is received with
an error would have not been read. The error interrupt will occur once the character is read.
Figure 14-3 shows the UART receiving the five characters including the two errors.
Time
Sequence Flow
#0
When no character is read out
#1
A, B, C, D, and E is received
#2
After A is read out
#3
After B is read out
#4
After C is read out
#5
After D is read out
#6
After E is read out
Rx FIFO
'E'
'D'
'C'
'B'
'A'
Figure 14-3. Example showing UART Receiving 5 Characters with 2 Errors
The frame error (in B) interrupt occurs. The 'B' has to be read out.
The parity error (in D) interrupt occurs. The 'D' has to be read out.
-
-
-
-
-
-
-
-
-
-
-
URXHn
Error Interrupt
Error Status FIFO
break error
UERSTATn
parity error
frame error
Error Status Generator Unit
UART
Note
14-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents