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
RX pending
0: RX one byte not finish
1: RX one byte finish
TX pending
0: TX one byte not finish
1: TX one byte finish
RX enable
0: RX disable
1: RX enable
One-line mode
0: TX/RX separate
1: TX/RX one line
Clock source select
0: system clock
1: uart_inc
Two Stop Bit enable
0:1-bit Stop Bit
1: 2 bit Stop Bit
Transmit Interrupt Enable
0 = Transmit interrupt disable
1 = Transmit interrupt enable
Receive Interrupt Enable
0: Receiver interrupt disable
1: Receiver interrupt enable
BIT9 Enable Bit
0: Eight-bit mode
1: Nine-bit mode
UART Enable Bit
0: Disable UART module
1: Enable UART module
Register 7-2UART0CPND: UART0 clear pending Register
Reset Key match pending clear
0: N/A
1: Clear Reset key match Pending
Key match pending clear
0: N/A
1: Clear key match Pending