Connection Example For 8-Bit Serial I/O - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

9.9

Connection Example for 8-bit Serial I/O

This section shows an example of connecting together two MB89950/950A series 8-bit
serial I/O and performing bi-directional serial I/O.
I Bi-directional serial I/O performing
Figure 9.9-1 Connection example for 8-bit serial I/O (interface between two MB89950/950A)
SIO-A
START
Halt operation SIO-A
(SST = "0")
Set the SI pin as serial
data input (input port).
- Set the SCK pin as the shift clock output
- Set the SO pin as the serial data output
- Select an internal shift clock
- Set the data transfer (shift) direction
NO
Is serial transfer
enabled on SIO-B? *1
Set output data
Start serial transfer *2
(SST = "1")
Serial data transfer
in progress
NO
Have 8 bits been transferred? *3
Read input data
YES
More data to send?
SO
SO
SIO-A
SIO-A
SI
SI
SCK
SCK
Internal shift clock
Internal shift clock
Figure 9.9-2 Operation of bi-directional serial I/O
YES
Transfer enable state
SIO-A
SIO-A outputs serial data
... Simultaneously, SIO-B inputs serial data
YES (SST="0")
SST: The SST bit is the serial I/O transfer start bit in the serial mode register (SMR).
*1: If the SO, SI, and SCK pins only are connected, there is no direct method of confirming whether
NO
SIO-B has enabled serial transfer. Therefore, SIO-A must use a software timer or similar to delay
time for a sufficient time for SIO-B to enable serial transfer.
END
*2: Data is not transferred correctly if SIO-A starts data transfer when SIO-B has not enabled
serial transfer.
*3. An interrupt request is generated after 8-bit data have been transferred.
SI
SI
SO
SO
Input
Input
Output
Output
SCK
SCK
External shift clock
External shift clock
START
Halt operation SIO-B
(SST = "0")
Set the SI pin as serial
data input (input port).
- Set the SCK pin as the shift clock output
- Set the SO pin as the serial data output
- Select an internal shift clock
- Select the same data transfer (shift)
direction as SIO-A
Set output data
Enable serial transfer
(SST = "1")
SIO-B
Serial data transfer
in progress
Have 8 bits been transferred? *3
Read input data
CHAPTER 9 8-BIT SERIAL I/O
SIO-B
SIO-B
SIO-B
NO
YES (SST="0")
189

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents