SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 179
Version 1.1
0: Auto-baud has not finished.
1: Auto-baud has finished successfully and interrupt is enabled.
7:4
Reserved
R
0100b
3:1
INTID[2:0]
Interrupt identification which identifies an interrupt corresponding to the
USARTn RX FIFO.
0x3: 1 - Receive Line Status (RLS).
0x2: 2a - Receive Data Available (RDA).
0x1: 3a - THRE Interrupt.
0x7: 3b
– TEMT Interrupt.
Other: Reserved
R
0
0
INTSTATUS
Interrupt status. The pending interrupt can be determined by evaluating
USARTn_II[3:1].
0: At least one interrupt is pending.
1: No interrupt is pending.
R
1
Bits UARTn_II[9:8] are set by the auto-baud function and signal a time-out or end of auto-baud condition. The auto-baud
interrupt conditions are cleared by setting the corresponding Clear bits in the Auto-baud Control Register.
Given the status of UARTn_II[3:0], an interrupt handler routine can determine the cause of the interrupt and how to clear
the active interrupt. The UARTn_II register must be read in order to clear the interrupt prior to exiting the Interrupt
service routine.
Interrupt USARTn_II
[3:0]
Priority
Interrupt Source
Interrupt Reset
RLS
0110
Highest
Overrun error (OE)
,
Parity error (PE),
Framing error (FE)
or Break interrupt (BI)
Read UARTn_LS register
RDA
0100
2
nd
RX data in FIFO reached trigger level (FCR0=1)
Read UARTn_RB register
or UART FIFO drops
below trigger level
THRE
0010
3
rd
THRE
Read UARTn_II register
(if source of interrupt) or
Write THR register
TEMT
1110
3
rd
TEMT
Read UARTn_II register
(if source of interrupt) or
Write THR register
15.7.7 UART n Line Control register (UARTn_LC) (n=0,1,2,3)
Address Offset: 0x0C
This register determines the format of the data character that is to be transmitted or received.
Bit
Name
Description
Attribute
Reset
31:8
Reserved
R
0
7
DLAB
Divisor Latch Access bit
0: Disable access to Divisor Latches.
1: Enable access to Divisor Latches.
R/W
0
6
BC
Break Control bit
0: Disable break transmission.
1: Enable break transmission. Output pin UART TXD is forced to logic 0.
R/W
0
5:4
PS[1:0]
Parity Select bits
00: Odd parity. Number of 1s in the transmitted character and the attached
parity bit will be odd.
01: Even Parity. Number of 1s in the transmitted character and the
attached parity bit will be even.
10: Forced 1 stick parity.
11: Forced 0 stick parity.
R/W
0
3
PE
Parity Enable bit
R/W
0