273
Chapter 10 Clock Synchronous Serial Interface
10
Fig. 10-10 Format of Clock Synchronous Serial Interface Mode Register (CSIM)
Caution Do not change CTXE from 0 to 1 or CRXE from 1 to 0, or vice versa, by means of a single instruction. If this is attempted, the serial
clock counter will malfunction and the first communication after the change will be terminated before the eighth bit is sent. To
change those statuses, use two instructions as shown below:
Example Changing CTXE from 1 to 0 and CRXE from 0 to 1
CLR1 CTXE
SET1 CRXE
CTXE
7
CRXE
6
WUP
5
0
4
MOD1
3
0
2
CLS1
1
CLS0
0
CSIM
CLS1
Internal
clock
External clock
Selects serial clock
0
0
CLS0
0
1
SCK pin Master/slave selection in
SBI mode
8-bit timer/counter 3
output/2
Input
10
11
fCLK/32
fCLK/8
Input
Slave
Master
WUP
3-wire serial I/O mode
Operation mode
0
0
MOD1
0
1
Controls wakeup function
SBI mode
11
Generates interrupt request at
each serial transfer
Generates interrupt request only
when address is received
CRXE
Disabled
Reception
0
1Enabled
CTXE
Disabled
Transmission
0
1Enabled
(00H when RESET is input)