EasyManua.ls Logo

Bluetrum Technology AB53 Series - Spi1; Features; Spi1 Special Function Registers

Default Icon
33 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...
8SPI1 27
Copyright © 2018, www. bluetrum.com. All Rights Reserved
27
8 SPI1
8.1 Features
SPI1 can support different mode
1. general 3 wire mode, 1-bit clock in/out, 1-bit data output, 1-bit data input
2. 2 wire mode, 1-bit clock in/out, 1-bit data output or input;
3. 2 data bus mode, 1-bit clock in/out, 2-bit data output or input;
8.2 SPI1 Special Function Registers
Register 8-1SPI1CON: SPI1 Control Register
Bit
Name
Mode
Default
Description
31:17
-
-
-
Unused
16
SPIPND
R
0
SPI pending
0: not finish SPI rx/tx
1: finish SPI rx/tx
15:11
-
-
-
Unused
10
SPIOSS
WR
0
SPI output data and sample data is at the same edge
0: disable
1: enable
9
SPIMBEN
WR
0
SPI multiple bit bus enable bit
0: disable
1: enable
8
SPILF_EN
WR
0
SPI LFSR enable bit
0: disable
1: enable
7
SPIIE
WR
0
SPI interrupt enable
0: disable
1: enable
6
SMPS
WR
0
SPI sampling edge select bit, when SPIOSS = 0, output data and
sample data is at different clock edge; when SPIOSS = 1, output
data and sample data is at the same clock edge
0: falling edge output data;
1: rising edge output data;
5
CLKIDS
WR
0
SPI clock state when idle
0: clock stay at 0
1: clock stay at 1
4
RXSEL
WR
0
When in DMA mode or 2-wire mode, configure SPI Receive or
Transmit select bit