![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 384](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630384.webp)
www.geehy.com Page 383
Register name
Description
Offset address
SPI_TXCRC
SPI transmit CRC register
0x18
SPI_I2SCFG
SPI I2S configuration register
0x1C
SPI_I2SPSC
SPI I2S prescaler register
0x20
Register functional description
These peripheral registers can be operated by half word (16 bits) or word (32
bits).
SPI control register 1 (SPI_CTRL1) (not used in I2S mode)
Offset address: 0x00
Reset value: 0x0000
Field
Name
R/W
Description
0
CPHA
R/W
Clock Phase Configure
This bit indicates on the edge of which clock to start sampling
0: On the edge of No. 1 clock
1: On the edge of No. 2 clock
Note: This bit cannot be modified during communication.
1
CPOL
R/W
Clock Polarity Configure
Level state maintained by SCK when SPI is in idle state.
0: Low level
1: High level
Note: This bit cannot be modified during communication
2
MSMCFG
R/W
Master/Salve Mode Configure
0: Configure as slave mode
1: Configure as master mode
Note: This bit cannot be modified during communication
5:3
BRSEL
R/W
Baud Rate Divider Factor Select
000: DIV=2
001: DIV=4
010: DIV=8
011: DIV=16
100: DIV=32
101: DIV=64
110: DIV=128
111: DIV=256
Baud rate=FPCLK/DIV
Note: This bit cannot be modified during communication
6
SPIEN
R/W
SPI Device Enable
0: Disable
1: Enable
Note: When SPI device is disabled, please operate according to the
process of closing SPI.