|
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
|
▷ |