English
Language : 

M30218 Datasheet, PDF (106/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group
Serial I/O2
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Table GA-2 lists the functions of the serial I/O2 input/output pins
Table GA-2. Functions of the serial I/O2 input/output pins
Pin name
SOUT2
(P94)
Function
Serial data output
SIN2
(P93)
SCLK21
(P95)
Serial data input
Transfer clock output
Method of selection
Port P94 direction register (bit 4 at address 03F316)= “1”
SOUT2 P-channel output disable bit (bit 7 at address 034416)= “0” , “1”
SOUT2 pin control bit (bit 6 at address 034416)= “0” , “1”
(Outputs dummy data when performing reception only)
Port P93 direction register (bit 4 at address 03F316)= “0”
Transfer mode select bit (bit 5 at address 034216)= “0”
(Input/output port when transfer mode select bit (bit 5 at address 034216)= “1”)
Serial I/O2 synchronous clock select bits (bits 2, 3 at address 034216) = “00” , “01”
Serial I/O2 clock pin select bit (bit 7 at address 034216) = “0”
SCLK22
(P96)
Transfer clock input
Transfer clock output
Serial I/O2 synchronous clock select bits (bits 2, 3 at address 034216) = “01” , “11”
Serial I/O2 clock pin select bit (bit 7 at address 034216) = “0”
Port P95 direction register (bit 5 at address 03F316)= “0”
Serial I/O2 synchronous clock select bits (bits 2, 3 at address 034216) = “00” , “01”
Serial I/O2 clock pin select bit (bit 7 at address 034216) = “1”
SRDY2
(P90)
SBUSY2
(P91)
SSTB2
(P92)
Transfer clock input
SRDY input / output
SBUSY input / output
SSTB input / output
Serial I/O2 synchronous clock select bits (bits 2, 3 at address 034216) = “01” , “11”
Serial I/O2 clock pin select bit (bit 7 at address 034216) = “1”
Port P96 direction register (bit 6 at address 03F316)= “0”
Set by SRDY2 • SBUSY2 pin control bits (bits 0 to 3 at address 034416)
Set by SRDY2 • SBUSY2 pin control bits (bits 0 to 3 at address 034416)
SBUSY2 output • SSTB2 output function select bit (bit 4 at address 034416)= “0” , “1”
Serial I/O2 synchronous clock select bits (bits 2, 3 at address 034216) = “10” , “11”
SBUSY2 output • SSTB2 output function select bit (bit 4 at address 034416)= “0” , “1”
SOUT2 Output
Either output active or high-impedance can be selected as a SOUT2 pin state at serial non-transfer by the
SOUT2 pin control bit (bit 6 of address 034416).
However, when the external synchronous clock is selected, perform the following setup to put the SOUT2
pin into a high-impedance state.
When the SCLK2i ( i = 1, 2) input is “H” after completion of transfer, set the SOUT2 pin control bit to “1”. When
the SCLK2i ( i = 1, 2) input goes to “L” after the start of the next serial transfer, the SOUT2 pin control bit is
automatically reset to “0” and put into an output active state.
105