8SPI1
29
Copyright © 2018, www.
bluetrum.com. All Rights Reserved
29
Bit
Name
Mode
Default
Description
15:0
-
-
-
Unused
Register 8-4 SPI1BUF: SPI1 receive/send Data Register
Bit
Name
Mode
Default
Description
31:8
-
-
-
Unused
7:0
SPI1BUF
WR
x
SPI Data
Write this register will load the data to transmitter buffer.
Read this register will read the data from the receiver buffer..
Register 8-5 SPI1DMACNT: SPI1 DMA counter Register
Bit
Name
Mode
Default
Description
31:16
-
-
-
Unused
15:0
SPI1DMACNT
W
x
SPIDMA byte counter
Write this register will kick start spi send/receive data
Total number of bytes received / send is SPI1DMACNT
Register 8-6 SPI1DMAADR: SPI1 DMA address Register
Bit
Name
Mode
Default
Description
31:21
-
-
-
Unused
20:0
SPI1DMAADR
W
x
SPIDMA byte address
8.3
User Guide
SPI Normal 1bit-Mode Operation Flow:
1.
Set 3-wire mdoe or 2-wire mode and select the pin map
2.
Select RXSEL for Transmit or receive
3.
Configure clock frequency
4.
Select one of the four timing mode
5.
Enable SPI module by setting SPIEN ‘1’