BAT32G1x9 user manual | Chapter 21 Serial interface SPI
821 / 1149
Rev.1.02
21.3.3
SPI clock selection register (n).
This register specifies the timing of data send/receive and sets the serial clock.
can be set by 8-bit storage operation instructions.
A reset signal is generated to clear the register to 01H.
Figure 21-3 Format of the clock selection register (n).
Address: SPI0: 0x40046C04 SPI1: 0x40047004 After reset: 01H
R/W
symbol
7
6
5
4
3
2
1
0
SPICn
0
0
0
CPOLn
CPHAn
CKS2n
CKS1n
CKS0n
data transmit /Specify the receiving timing
(output timing
sequence)
(input timing sequence)
(output timing
sequence)
(input timing sequence)
(output timing
sequence)
(input timing sequence)
(output timing
sequence)
(input timing sequence)
Note 1.Write TOPICn is prohibited when SPIE n=1 (operation enabled).
2. The phase type of the data clock after reset is Type 1.
Note: n=0,1
CKS2n
CKS1n
CKS0n
SPI serial clock selection
mode
0
0
0
fCLK
Host mode
0
0
1
fCLK/2
0
1
0
fCLK/2
2
0
1
1
fCLK/2
3
1
0
0
fCLK/2
4
1
0
1
fCLK/2
5
1
1
0
fCLK/2
6
1
1
1
An external clock input from
SCK
Slave mode