M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
13.1.4.1 Clock Phase Setting Function
One of four combinations of transfer clock phases and polarities can be selected using the CKPH bit
in the U2SMR3 register and the CKPOL bit in the U2C0 register.
Make sure the transfer clock polarity and phase are the same for the master and slave to communi-
cate.
13.1.4.1.1 Master (Internal Clock)
Figure 13.1.4.1.1.1 shows the transmission and reception timing in master (internal clock).
13.1.4.1.2 Slave (External Clock)
Figure 13.1.4.1.2.1 shows the transmission and reception timing (CKPH=0) in slave (external clock)
while Figure 13.1.4.1.2.2 shows the transmission and reception timing (CKPH=1) in slave (external
clock).
Clock output
(CKPOL=0, CKPH=0)
Clock output
(CKPOL=1, CKPH=0)
Clock output
(CKPOL=0, CKPH=1)
Clock output
(CKPOL=1, CKPH=1)
Data output timing
Data input timing
Figure 13.1.4.1.1.1. Transmission and Reception Timing in Master Mode (Internal Clock)
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
"H"
"L"
"H"
"L"
"H"
"L"
"H"
"L"
"H"
D
0
"L"
page 171
f o
3
2
9
C
2 /
6
) T
D
D
D
D
1
2
3
D
D
D
4
5
6
7
13. Serial I/O