8 Universal Asynchronous Receiver/Transmitter (UART)
71
CW6632B Bluetooth 3.0 Audio Player SOC
Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
8
Universal Asynchronous
Receiver/Transmitter (UART)
8.1
UART0
8.1.1
Overview
UART0 is a serial port capable of asynchronous transmission. The UART0 can function in full duplex mode. Receive
data is buffered in a holding register. This allows the UART0 to start reception of a second incoming data byte before
software has finished reading the previous data byte.
When PSEL = 0
Receive pin (RX)
– UART0RX0
Transmit pin (TX)
– UART0TX0
When PSEL = 1
Receive pin (RX)
– UART0RX1
Transmit pin (TX)
– UART0TX1
8.1.2
UART0 Special Function Registers
Register 8-1 UARTCON
– UART0 control
Position
7
6
5
4
3
2
1
0
Name
UTSBS
UTTXNB
NBITEN
UTEN
UTTXINV
UTRXINV
TXIE
RXIE
Default
0
1
0
0
0
0
0
0
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
UTSBS
: Stop Bit Select
0 = 1 bit as Stop Bit
1 = 2 bits as Stop Bit
UTTXNB
: The ninth bit data of transmitter buffer. Write the ninth bit into this location that you want to transmit
NBITEN
: Nine-BIT mode Enable Bit
0 = Eight-bit mode
1 = Nine-bit mode
UTEN
: UART Enable Bit
0 = Disable UART module
1 = Enable UART module
UTTXINV
: Transmit Invert Selection Bit
0 = Transmitter output without inverted
1 = Transmitter output inverted