|
M38203M4 Datasheet, PDF (239/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.6 Serial I/O2
[Notes on use]
Notes 1: When SRDY2 signal output is not used, set the SRDY2 output enable bit (bit 4) to
â0â in  below.
2: In the duplex data transfer mode, write transmit data in  below.
3: To use a serial I/O2 interrupt, set in the following sequence.
4: When no serial I/O2 interrupt is used, omit settings Â, Â, Â,  and  below.
ÂDisable Serial I/O2 interrupt
b7
b0
00
ICON2: Interrupt control register 2 [Address 3F16]
b6: Serial I/O2 interrupt enable bit
0: Interrupts disabled
ÂSetting of serial I/O2 control register
Selection of serial I/O2, or others
b7
b0
1
SIO2CON: Serial I/O2 control register [Address 1D16]
b2âb0: Internal synchronization clock select bits
000: f(XIN)/8 011: f(XIN)/64
001: f(XIN)/16 110: f(XIN)/128
010: f(XIN)/32 111: f(XIN)/256
b3: Serial I/O2 port selection bit
1: SOUT2, SCLK2 signal output
b4: SRDY2 output enable bit
0: I/O port
1: SRDY2 signal output
b5: Transfer direction selection bit
0: LSB first
1: MSB first
b6: Synchronization clock selection bit
0: External clock
1: Internal clock
: Nothing is allocated
ÂOne or more instructions (e.g., NOP) after Â
ÂSet the serial I/O2 interrupt request to â0â
b7
b0
0
IREQ2: Interrupt request register 2 [Address 3D16]
b6: Serial I/O2 interrupt request bit
0: No interrupts request issued
: Nothing is allocated
ÂEnable serial I/O2 interrupt
b7
b0
01
ICON2: Interrupt control register 2 [Address 3F16]
b6: Serial I/O2 interrupt enable bit
1: Interrupts enabled
ÂSet dummy data to serial I/O2 register SIO2 [Address 1F16]
(When SRDY2 is used, âLâ is output from the P53/SRDY2 pin)
ÂProcessing of serial I/O2 interrupt
Fig. 2.6.12 Receiving method of serial I/O2
3820 GROUP USERâS MANUAL
2â153
|
▷ |