Typical Timing Diagram
Clock Cycle
SPICLK(CPOL=0)
Driven from Master
1
2
3
4
5
6
7
8
SPICLK(CPOL=1)
Driven from Master
MOSI (input)
Driven from Master
DORD=0
DORD=1
MSB
LSB
6
1
5
2
4
3
3
4
2
5
1
6
LSB
MSB
MOSI turns to input
DORD=0
DORD=1
MISO (output)
MSB
LSB
MISO turns to output
6
1
5
2
4
3
3
4
2
5
1
6
LSB
MSB
SS pin (if SSIG bit = 0 )
Driven from Master
SPI slave transfer format with CPHA=0
Clock Cycle
SPICLK(CPOL=0)
Driven from Master
1
2
3
4
5
6
7
8
SPICLK(CPOL=1)
Driven from Master
MOSI (input)
Driven from Master
DORD=0
DORD=1
MSB
LSB
6
1
5
2
4
3
3
4
2
5
1
6
LSB
MSB
MOSI turns to input
DORD=0
DORD=1
MISO (output)
MSB
LSB
MISO turns to output
6
1
5
2
4
3
3
4
2
5
1
6
LSB
MSB
SS pin (if SSIG bit = 0 )
Driven from Master
SPI slave transfer format with CPHA=1
Clock Cycle
SPICLK is strongly output-driving.
1
2
3
4
5
6
7
8
SPICLK(CPOL=0)
SPICLK(CPOL=1)
SPEN=1 and MSTR=1, MOSI turns to output data
MISO turns to input data
SPEN=0 or MSTR=0, MOSI switched not to output
data of SPI communication, also SPICLK is
released from SPI control
MOSI (Output)
DORD=0
DORD=1
MSB
LSB
6
1
MOV SPDAT,#data in software
5
2
4
3
3
4
2
5
1
6
LSB
MSB
MISO (Input)
Driven from the target slave
DORD=0
DORD=1
MSB
LSB
6
1
5
2
4
3
3
4
2
5
1
6
LSB
MSB
Target slave SS pin
Control GPIO pin by software
SS pin( if SSIG=0)
SPI master transfer format with CPHA=0
52
MPC82x54A Data Sheet
MEGAWIN