Control Registers; Clocked Serial Interface Mode Register (Csim) - NEC uPD784038 Series User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

18.3 CONTROL REGISTERS

18.3.1 Clocked Serial Interface Mode Register (CSIM)

The CSIM is an 8-bit register that specifies the serial interface operating mode, serial clock, etc.
This register can be read or written to with an 8-bit manipulation instruction or bit manipulation instruction. The CSIM
format is shown in Figure 18-2.
RESET input clears the CSIM register to 00H.
Figure 18-2 Clocked Serial Interface Mode Register (CSIM) Format
7
6
CSIM
CTXE
CRXE
CHAPTER 18 3-WIRE/2-WIRE SERIAL I/O MODE
5
4
3
2
0
0
MOD1
MOD0
User's Manual U11316EJ4V1UD
1
0
Address
After Reset
CLS1
CLS0
0FF82H
CLS1
CLS0
Serial Clock Specification
0
0
External clock
0
0
Internal clock
1
0
1
1
Operating Mode Selection Bit
MOD1
MOD0
Operating Mode Transfer Direction Pins Used
3-wire serial I/O
0
0
mode
3-wire serial I/O
0
1
mode
2-wire serial I/O
1
0
mode
1
1
Setting prohibited
Receive Operations
CRXE
Disabled
0
Enabled
1
Transmit Operations
CTXE
0
Disabled
Enabled
1
R/W
R/W
00H
SCK0, SCL
Pin
Slave
Input
TM3/2
Master
Output
SPRS
f
/16
XX
MSB-first
SO0, SI0,
SCK0
LSB-first
SDA, SCL
MSB-first
449

Advertisement

Table of Contents
loading

Table of Contents