11 SYNCHRONOUS SERIAL INTERFACE (SPI)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
11-11
(Rev. 1.0)
Control Registers
11.7
SPi Ch.
n
Mode Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
SPI
n
MOD
15–8 –
0x00
–
R
–
7–6 –
0x0
–
R
5
PUEN
0
H0
R/W
4
NOCLKDIV
0
H0
R/W
3
LSBFST
0
H0
R/W
2
CPHA
0
H0
R/W
1
CPOL
0
H0
R/W
0
MST
0
H0
R/W
Bits 15–6 Reserved
Bit 5
Puen
This bit enables pull-up/down of the input pins.
1 (R/W): Enable pull-up/down
0 (R/W): Disable pull-up/down
For more information, refer to “Input Pin Pull-Up/Pull-Down Function.”
Bit 4
nOClKDiV
This bit selects SPICLK
n
in master mode. This setting is ineffective in slave mode.
1 (R/W): SPICLK
n
frequency = CLK_SPI
n
frequency ( = 16-bit timer operating clock frequency)
0 (R/W): SPICLK
n
frequency = 16-bit timer output frequency / 2
For more information, refer to “SPI Operating Clock.”
Bit 3
lSBFST
This bit configures the data format (input/output permutation).
1 (R/W): LSB first
0 (R/W): MSB first
Bit 2
CPha
Bit 1
CPOl
These bits set the SPI clock phase and polarity. For more information, refer to “SPI Clock (SPICLK
n
)
Phase and Polarity.”
Bit 0
MST
This bit sets the SPI operating mode (master mode or slave mode).
1 (R/W): Master mode
0 (R/W): Slave mode
Note: The SPI
n
MOD register settings can be altered only when the SPI
n
CTL.MODEN bit = 0.
SPi Ch.
n
Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
SPI
n
CTL
15–8 –
0x00
–
R
–
7–2 –
0x00
–
R
1
SFTRST
0
H0
R/W
0
MODEN
0
H0
R/W
Bits 15–2 Reserved