58 STC12C5Axx
Technical Summary
The WCOL bit is set if the SPI data register
SPIDAT
is written during a data transfer. The
WCOL
flag is cleared in software by “writing 1 to this bit”.
Configure the device to Master/Slave mode
SPEN SSIG SS MSTR
Mode
MISO MOSI SPICLK
Remark
0
X
X
X
SPI disable
GPI/O GPI/O GPI/O SPI is disabled.
1
0
0
0
Active Salve output input input
Selected as slave
1 0 1 0
InActive
Slave
Hi-Z input input Not
selected.
1 0 0
1
→
0 slave
output input input
Convert from Master to
Slave
1
0
1
1
Master
input output output SPCLK depends on
CPOL
1 1 X 0
Slave
output
input input
Slave
1 1 X 1
Master input output output
Master
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/