
NUC126
Aug. 08, 2018
Page
609
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
SPI Clock Divider Register (SPIx_CLKDIV)
Register
Offset
R/W
Description
Reset Value
SPIx_CLKDIV
0x04
R/W
SPI Clock Divider Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
Reserved
7
6
5
4
3
2
1
0
DIVIDER
Bits
Description
[31:8]
Reserved
Reserved.
[7:0]
DIVIDER
Clock Divider
The value in this field is the frequency divider for generating the peripheral clock, f
spi_eclk
,
and the SPI bus clock of SPI Master. The frequency is obtained according to the following
equation.
)
1
(
_
_
_
DIVIDER
f
f
src
clock
spi
eclk
spi
where
f
src
clock
spi
_
_
is the peripheral clock source, which is defined in the clock control
register, CLK_CLKSEL2.
Note:
Not supported in I
2
S mode.
Note:
User should set
DIVIDER
carefully because the peripheral clock frequency must be slower than or equal to system
frequency.