CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U13850EJ4V0UM
247
Figure 10-2. Serial Operation Mode Registers 0 to 3 (CSIM0 to CSIM3)
After reset:
00H
R/W
Address: CSIM0
FFFFF2A2H
CSIM1
FFFFF2B2H
CSIM2
FFFFF2C2H
CSIM3
FFFFF2D2H
<7>
6
5
4
3
2
1
0
CSIMn
CSIEn
0
0
0
0
MODEn
SCLn1
SCLn0
(n = 0 to 3)
SIOn operation enable/disable specification
CSIEn
Shift register operation
Serial counter
Port
0
Operation disable
Clear
Port function
Note 1
1
Operation enable
Count operation enable
Serial fu port
function
Note 2
Transfer operation mode flag
MODEn
Operation mode
Transfer start trigger
SOn output
0
Transmit/receive mode
SIOn write
Normal output
1
Receive-only mode
SIOn read
Port function
SCLn2
SCLn1
SCLn0
Clock selection
0
0
0
External clock input (SCKn)
0
0
1
at n = 0, 3: Output of TO2
at n = 1, 2: Output of TO3
0
1
0
f
XX
/8
0
1
1
f
XX
/16
1
0
0
Setting prohibited
1
0
1
Setting prohibited
1
1
0
f
XX
/32
1
1
1
f
XX
/64
Notes 1.
The SIn, SOn, and SCKn pins are used as port function pins when CSIEn = 0 (SIOn operation stop
status).
2.
When CSIEn = 1 (SIOn operation enable status), the port function is available for the SIn pin when
only using the transmit function and SOn pin when only using the receive function.
Caution Do not perform bit manipulation of SCLn1 and SCLn0.
Remarks 1.
Refer to
Figure 10-3
for the SCLn2 bit.
2.
When the output of the timer is selected as the clock, it is not necessary to set the P26/TO2/TI2 and
P27/TO3/TI3 pins in the timer output mode.