![Sino Wealth SH79F3283 Скачать руководство пользователя страница 108](http://html1.mh-extra.com/html/sino-wealth/sh79f3283/sh79f3283_manual_1283063108.webp)
SH79F3283
108
8.6.9 Registers
Table 8.33
Serial Peripheral Control Register
A2H, Bank0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SPCON
DIR
MSTR
CPHA
CPOL
SSDIS
SPR2
SPR1
SPR0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
(POR/WDT/LVR/PIN)
0
0
0
0
0
0
0
0
Bit Number
Bit Mnemonic
Description
7
DIR
Transfer Direction Selection
0: MSB first
1: LSB first
6
MSTR
Serial Peripheral Master
0: Configure the SPI as a Slave
1: Configure the SPI as a Master
5
CPHA
Clock Phase
0: Data sampled on first edge of SCK period
1: Data sampled on second edge of SCK period
4
CPOL
Clock Polarity
0: SCK line low in idle state
1: SCK line high in idle state
3
SSDIS
SS
———
Disable
0: Enable SS
———
pin in both Master and Slave modes
1: Disable SS
———
pin in both master and slave modes
MODF interrupt request will not generate, if SSDIS is set.
In Slave mode, this bit has no effect if CPHA = 0.
2-0
SPR[2:0]
Serial Peripheral Clock Rate
000: f
SYS
/4
001: f
SYS
/8
010: f
SYS
/16
011: f
SYS
/32
100: f
SYS
/64
Others: f
SYS
/128