English
Language : 

Z51F3220FNX Datasheet, PDF (180/312 Pages) Zilog, Inc. – Z8051 Series 8-Bit Microcontrollers
Z51F3220
Product Specification
SPICR (SPI 2 Control Register) : B5H
7
6
5
SPIEN
FLSB
MS
R/W
R/W
R/W
4
CPOL
R/W
3
CPHA
R/W
2
DSCR
R/W
1
SCR1
R/W
0
SCR0
R/W
Initial value : 00H
SPIEN
FLSB
MS
CPOL
CPHA
DSCR
SCR[2:0]
This bit controls the SPI 2 operation
0
Disable SPI 2 operation
1
Enable SPI 2 operation
This bit selects the data transmission sequence
0
MSB first
1
LSB first
This bit selects whether Master or Slave mode
0
Slave mode
1
Master mode
This two bits control the serial clock (SCK2) mode.
Clock polarity(CPOL) bit determine SCK2’s value at idle mode.
Clcok phase (CPHA) bit determine if data are sampled on the leading or
trailing edge of SCK2.
CPOL CPHA Leading edge
Trailing edge
0
0
Sample (Rising)
Setup (Falling)
0
1
Setup (Rising)
Sample (Falling)
1
0
Sample (Falling)
Setup (Rising)
1
1
Setup (Falling)
Sample (Rising)
These three bits select the SCK2 rate of the device configured as a
master. When DSCR bit is written one, SCK2 will be doubled in master
mode.
DSCR SCR1 SCR0 SCK2 frequency
0
0
0
fx/4
0
0
1
fx/16
0
1
0
fx/64
0
1
1
fx/128
1
0
0
fx/2
1
0
1
fx/8
1
1
0
fx/32
1
1
1
fx/64
PS029902-0212
PRELIMINARY
177