Renesas M16C/26A Series Hardware Manual page 165

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
13.1.1.1 Counter Measure for Communication Error Occurs
If a communication error occurs while transmitting or receiving in clock synchronous serial I/O mode,
follow the procedures below.
•Resetting the UiRB register (i=0 to 2)
(1) Set the RE bit in the UiC1 register to "0" (reception disabled)
(2) Set the SMD2 to SMD0 bits in the UiMR register to "000
(3) Set the SMD2 to SMD0 bits in the UiMR register to "001
(4) Set the RE bit in the UiC1 register to "1" (reception enabled)
•Resetting the UiTB register (i=0 to 2)
(1) Set the SMD2 to SMD0 bits in the UiMR register to "000
(2) Set the SMD2 to SMD0 bits in the UiMR register to "001
(3) "1" is written to RE bit in the UiC1 register (reception enabled), regardless to the TE bit in the UiC1
register.
13.1.1.2 CLK Polarity Select Function
Use the CKPOL bit in the UiC0 register (i = 0 to 2) to select the transfer clock polarity. Figure 13.1.1.2.1
shows the polarity of the transfer clock.
(1) When the CKPOL bit in the UiC0 register is set to "0" (transmit data output at the falling
edge and the receive data taken in at the rising edge of the transfer clock)
CLK
i
T
D
X
i
R
D
X
i
(2) When the CKPOL bit in the UiC0 register is set to "1" (transmit data output at the rising
edge and the receive data taken in at the falling edge of the transfer clock)
CLK
i
T
D
X
i
R
D
X
i
NOTES:
1. This applies to the case where the UFORM bit in the UiC0 register is set to "0" (LSB first) and the
UiLCH bit in the UiC1 register is set to "0" (no reverse).
2. When not transferring, the CLKi pin outputs a high signal.
3. When not transferring, the CLKi pin outputs a low signal.
i = 0 to 2
Figure 13.1.1.2.1. Polarity of transfer 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
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
D0
D
D
1
2
D
D
D
0
1
2
D
D
D
0
1
2
D
D
D
0
1
2
page 146
f o
3
2
9
6
C
2 /
6
) T
D
D
D
D
3
4
5
6
D
D
D
D
3
4
5
6
D
D
D
D
3
4
5
6
D
D
D
D
3
4
5
6
" (Serial I/O disabled)
2
" (Clock synchronous serial I/O mode)
2
" (Serial I/O disabled)
2
" (Clock synchronous serial I/O mode)
2
(2)
D
7
D
7
(3)
D
7
D
7
13. Serial I/O

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents