English
Language : 

M38203M4 Datasheet, PDF (215/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.5 Serial I/O1
2.5.4 Register setting example
(1) Clock synchronous serial I/O mode
Figure 2.5.18 and Figure 2.5.19 show a transmitting method in the clock synchronous mode. Figure
2.5.20 and Figure 2.5.21 show a receiving method in the clock synchronous mode.
[Notes on use]
Notes 1: To use an INT pin or input port for watching SRDY1, set as required.
2: When an external clock is selected in setting Ž below, BRG setting is not required in
setting  below.
3: In the full duplex data transfer mode, set the receive enable bit (bit 5) to “1” (receive
enabled) in setting Ž below.
4: To use a serial I/O1 transmit interrupt, set in the following sequence.
5: When no serial I/O1 transmit interrupt is used, omit settings Œ, , , ‘ and “ below.
ŒDisable Serial I/O1 transmit interrupt
b7
b0
0
ICON1: Interrupt control register 1 [Address 3E16]
b3: Serial I/O1 transmit interrupt enable bit
0: Interrupts disabled
Set the value to baud rate generator (BRG) [Address 1C16]
ŽSetting of serial I/O1 control register
Selection of clock synchronous, transmit, or others
b7
b0
11 1
SIO1CON: Serial I/O1 control register [Address 1A16]
b0: BRG count source selection bit
0: f(XIN)
1: f(XIN)/4
b1: Serial I/O1 synchronization clock selection bit
(In clock synchronous mode)
0: BRG output/4
1: External clock input
b2: SRDY1 output enable bit
0: P47/SRDY1 pin operates as I/O port P47
1: P47/SRDY1 pin operates as signal output pin SRDY1
(SRDY1 signal indicates receive enable state)
b3: Transmit interrupt source selection bit
0: When transmit buffer has emptied
1: When transmit shift operation is completed
b4: Transmit enable bit
1: Transmit enabled
b5: Receive enable bit
0: Receive disabled
1: Receive enabled
b6: Serial I/O1 mode selection bit
1: Clock synchronous serial I/O1 mode
b7: Serial I/O1 enable bit
1: Serial I/O1 enabled
(pins P44–P47 operate as serial I/O1 pins)
Continued to Figure 2.5.19
Fig. 2.5.18 Transmitting method in clock synchronous mode (1)
3820 GROUP USER’S MANUAL
2–129