English
Language : 

M30218 Datasheet, PDF (104/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group
Serial I/O2
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Serial I/O2 control register 1
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
SIO2CON1
Address
034216
When reset
0016
Bit symbol
SCON10
SCON11
Bit name
Serial transfer select bits
Function
b1 b0
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)
RW
SCON12
SCON13
Serial I/O2 synchronous
clock select bits
(SSTB2 pin control bit)
b3 b2
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.)
SCON14
Serial I/O initialization bit 0: Serial I/O initialization
1: Serial I/O enabled
SCON15
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.)
SCON16
Transfer direction
select bit
SCON17 Serial I/O2 clock pin
select bit
0: LSB first
1: MSB first
0:SCLK21 (SCLK22 pin is an I/O port.)
1:SCLK22 (SCLK21 pin is an I/O port.)
Serial I/O2 control register 2
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
SIO2CON2
Address
034416
When reset
0016
Bit symbol
Bit name
Function
SRDY2 • SBUSY2 pin
SCON20 control bits
SCON21
SCON22
SCON23
b3b2b1b0
SRDY2 pin
0000 I/O port
0001 Not used
0010 SRDY2 output
0011 SRDY2 output
0100 I/O port
0101 I/O port
0110 I/O port
0111 I/O port
1000 SRDY2 input
1001 SRDY2 input
1010 SRDY2 input
1011 SRDY2 input
1100 SRDY2 output
1101 SRDY2 output
1110 SRDY2 output
1111 SRDY2 output
SBUSY2 pin
I/O port
I/O port
I/O port
SBUSY2 input
SBUSY2 input
SBUSY2 output
SBUSY2 output
SBUSY2 output
SBUSY2 output
SBUSY2 output
SBUSY2 output
SBUSY2 input
SBUSY2 input
SBUSY2 input
SBUSY2 input
SBUSY2 output • SSTB2 output
SCON24 function select bit
0: Functions as each 1-byte signal
1: Functions as signal for all transfer data
(Valid in automatic transfer mode)
SCON25 Serial transfer status flag
0: Serial transfer completion
1: Serial transferring
SCON26 SOUT2 pin control bit
(at no-transfer serial data)
SOUT2 P-channel output
SCON27 disable bit
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.)
RW
Figure GA-2. Serial I/O2 Control Registers 1, 2
103