EasyManua.ls Logo

APPOTECH CW6632B - SPI0 Operation Guide

Default Icon
133 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...
86 10.1 SPI0
CW6632B Bluetooth 3.0 Audio Player SOC Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
Position
7
6
5
4
3
2
1
0
Name
SPIBAUD
Default
x
x
x
x
x
x
x
x
Access
WO
WO
WO
WO
WO
WO
WO
WO
Baud rate = F
system_clock
/ [2(SPIBAUD+1)]
Register 10-3 SPI0BUF SPI0 Data Buffer
Position
7
6
5
4
3
2
1
0
Name
SPI0BUF
Default
x
x
x
x
x
x
x
X
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Register 10-4 SPIDMACNT SPI0 DMA counter
Position
7
6
5
4
3
2
1
0
Name
SPIDMACNT
Default
x
x
x
x
x
x
x
x
Access
WO
WO
WO
WO
WO
WO
WO
WO
Nunit = SPIDMACNT + 1
Nbyte = Nunit * 2 = (SPIDMACNT + 1) * 2
Register 10-5 SPIDMAPTRH SPI0 DMA Start Pointer high byte
Position
7
6
5
4
3
2
1
0
Name
SPIDMAPTRH
Default
x
x
x
x
x
x
x
x
Access
WO
WO
WO
WO
WO
WO
WO
WO
Register 10-6 SPIDMAPTRL SPI0 DMA Start Pointer low byte
Position
7
6
5
4
3
2
1
0
Name
SPIDMAPTRL
Default
x
x
x
x
x
x
x
x
Access
WO
WO
WO
WO
WO
WO
WO
WO
10.1.2 SPI0 Operation Guide
When SPI0CON1.1=0,
SPI0 Normal Mode Operation Flow:
1. Set IO in the correct direction.
2. Select SPI0RT in 2-wire mode if 2-wire mode is selected
3. Select master mode or slave mode
4. Configure clock frequency when master mode is selected in step 3
5. Select one of the four timing mode (refer to XFigure 10-1X)

Table of Contents