8 Universal Asynchronous Receiver/Transmitter (UART)
77
CW6632B Bluetooth 3.0 Audio Player SOC
Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
01 = 8 bytes
Figure 2015- = 16 bytes
11 = 32 bytes
dma_loop_cnt:
:UART receive data ram size
000 = 16 bytes
001 = 32 bytes
010 = 64 bytes
011 = 128 bytes
100 = 256 bytes
101 = 512 bytes
110 = 1K bytes
111 = forbidden
Register 8-19 UART1CNTH
–UART1 DMA receive count high byte
Portion
7
6
5
4
3
2
1
0
Name
UART1CNTH
Defeault
x
x
x
X
x
x
X
x
Access
R/O
R/O
R/O
R/O
R/O
R/O
R/O
R/O
Register 8-20 UART1CNTL
–UART1 DMA receive count low byte
Portion
7
6
5
4
3
2
1
0
Name
UART1CNTL
Defeault
x
x
x
x
x
x
x
x
Access
R/O
R/O
R/O
R/O
R/O
R/O
R/O
R/O
8.3
Operation Guide
Figure 2015-
UART1 Normal mode Operation Flow:
1.
Set IO in the correct direction.
2.
Configure UARTDIV and UART1BAUD to choose sample rate and baud.
3.
Enable UART1 module by setting UTEN to „1‟
4.
S
et TXIE or RXIE „to 1‟ if needed
5.
write data to UART1DATA
6.
Wait for PND to change to „1‟, or wait for interrupt
7.
Read received data from UART1DATA if needed
8.
Go to Step 5 to start another process if needed or turn off UART1 by UTEN.