EasyManua.ls Logo

Bluetrum Technology AB53 Series - Uart0; Features; Uart0 Special Function Registers

Default Icon
33 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7UART0 25
Copyright © 2018, www. bluetrum.com. All Rights Reserved
25
7 UART0
7.1 Features
1. UART is a serial port capable of asynchronous transmission.
2. The UART can function in full duplex mode.
7.2 UART0 Special Function Registers
Register 7-1UART0CON: UART Control Register
Bit
Name
Mode
Default
Description
31:10
-
-
-
Unused
9
RXPND
R
0
RX pending
0: RX one byte not finish
1: RX one byte finish
8
TXPND
R
0
TX pending
0: TX one byte not finish
1: TX one byte finish
7
RXEN
WR
0
RX enable
0: RX disable
1: RX enable
6
ONELINE
WR
0
One-line mode
0: TX/RX separate
1: TX/RX one line
5
CLKSRC
WR
0
Clock source select
0: system clock
1: uart_inc
4
SB2EN
WR
0
Two Stop Bit enable
0:1-bit Stop Bit
1: 2 bit Stop Bit
3
TXIE
WR
0
Transmit Interrupt Enable
0 = Transmit interrupt disable
1 = Transmit interrupt enable
2
RXIE
WR
0
Receive Interrupt Enable
0: Receiver interrupt disable
1: Receiver interrupt enable
1
BIT9EN
WR
0
BIT9 Enable Bit
0: Eight-bit mode
1: Nine-bit mode
0
UTEN
WR
0
UART Enable Bit
0: Disable UART module
1: Enable UART module
Register 7-2UART0CPND: UART0 clear pending Register
Bit
Name
Mode
Default
Description
31:18
-
-
-
Unused
17
CRSTKEYPND
W
0
Reset Key match pending clear
0: N/A
1: Clear Reset key match Pending
16
CKEYPND
W
0
Key match pending clear
0: N/A
1: Clear key match Pending