174
8271D–AVR–05/11
ATmega48A/PA/88A/PA/168A/PA/328/P
Figure 19-3.
SPI Transfer Format with CPHA = 0
Figure 19-4.
SPI Transfer Format with CPHA = 1
Bit 1
Bit 6
L
S
B
M
S
B
S
CK (CPOL = 0)
mode 0
S
AMPLE I
MO
S
I/MI
S
O
CHANGE 0
MO
S
I PIN
CHANGE 0
MI
S
O PIN
S
CK (CPOL = 1)
mode 2
SS
M
S
B
L
S
B
Bit 6
Bit 1
Bit 5
Bit 2
Bit 4
Bit
3
Bit
3
Bit 4
Bit 2
Bit 5
M
S
B fir
s
t (DORD = 0)
L
S
B fir
s
t (DORD = 1)
S
CK (CPOL = 0)
mode 1
S
AMPLE I
MO
S
I/MI
S
O
CHANGE 0
MO
S
I PIN
CHANGE 0
MI
S
O PIN
S
CK (CPOL = 1)
mode
3
SS
M
S
B
L
S
B
Bit 6
Bit 1
Bit 5
Bit 2
Bit 4
Bit
3
Bit
3
Bit 4
Bit 2
Bit 5
Bit 1
Bit 6
L
S
B
M
S
B
M
S
B fir
s
t (DORD = 0)
L
S
B fir
s
t (DORD = 1)