
104
Serial I/O2
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Figure 88. Serial I/O2 Control Registers 1, 2
Serial I/O2 control register 2
SymbolAddressWhen reset
SIO2CON2034416
0016
Bit nameFunction
R
Bit symbol
W
b7b6b5b4
b3b2b1b0
SRDY2 SBUSY2 pin
control bits
SCON20
SCON21
SCON22
SCON23
Serial I/O2 control register 1
SymbolAddressWhen reset
SIO2CON1034216
0016
Bit nameFunction
Bit symbol
R
W
b7b6b5b4b3b2b1b0
Serial transfer select bits
SCON10
SCON11
SCON12
SCON13
Serial I/O2 synchronous
clock select bits
(SSTB2 pin control bit)
00: Internal synchronous clock
(SSTB2 pin is an I/O port.)
01: External synchronous clock
(SSTB2 pin is an I/O port.)
10: Internal synchronous clock
(SSTB2 pin is an SSTB2 output.)
11: Internal synchronous clock
(SSTB2 pin is an SSTB2 output.)
0: Serial I/O initialization
1: Serial I/O enabled
Serial I/O initialization bit
Transfer mode select bit
0: Full duplex (transmit and receive) mode
(SIN2 pin is a SIN2 input.)
1: Transmit-only mode (SIN2 pin is an I/O port.)
SCON14
SCON15
Serial I/O2 clock pin
select bit
Transfer direction
select bit
SCON16
SCON17
00: Serial I/O disabled
(serial I/O pins are I/O ports)
01: 8-bits serial I/O
10: Inhibit
11: Automatic transfer serial I/O (8-bits)
0: LSB first
1: MSB first
0:SCLK21 (SCLK22 pin is an I/O port.)
1:SCLK22 (SCLK21 pin is an I/O port.)
0: Functions as each 1-byte signal
1: Functions as signal for all transfer data
SBUSY2 output SSTB2 output
function select bit
(Valid in automatic transfer mode)
Serial transfer status flag
0: Serial transfer completion
1: Serial transferring
SCON24
SCON25
SOUT2 P-channel output
disable bit
SOUT2 pin control bit
(at no-transfer serial data)
SCON26
SCON27
0: Output active
1: Output high-impedance
0: CMOS 3-state (P-channel output is valid.)
1: N-channel open-drain
(P-channel output is invalid.)
b3b2b1b0
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
SRDY2 pinSBUSY2 pin
I/O portI/O port
Not used
SRDY2 outputI/O port
I/O portSBUSY2 input
I/O portSBUSY2 output
SRDY2 inputSBUSY2 output
SRDY2 outputSBUSY2 input
b1 b0
b3 b2