Fujitsu F2MC-8L Series Hardware Manual page 223

8-bit microcontroller
Hide thumbs Also See for F2MC-8L Series:
Table of Contents

Advertisement

CHAPTER 8 8-BIT SERIAL I/O
Shift clock control circuit
Selects the shift clock from one external and three internal clocks.
If an internal shift clock is selected, the shift clock can be output to the SCK pin. If the external
shift clock is selected, the clock input from the SCK pin is used as the shift clock. The SDR
register shifts in sync with the shift clock and the shifted-out value is output to the SO pin.
Similarly, the serial input is obtained by shifting-in the SI pin input to the SDR register.
Shift clock counter
The shift clock counter counts the number of SDR register shifts generated by the shift clock
and overflows after eight shifts.
The overflow clears the serial I/O transfer start bit in the SMR register (SST = "0") and sets the
interrupt request flag (SIOF = "1"). The shift clock counter stops counting when serial transfer
halts (SST = "0"). The shift clock counter is cleared when serial transfer restarts (SST = "1").
Serial data register (SDR)
The SDR register is used to store the transfer data. Data written to this register is converted to
serial data and output. Serial input is converted to parallel data and stored in this register.
Serial mode register (SMR)
The SMR register is a serial I/O control register used to enable or disable serial I/O operation,
select the shift clock, set the transfer (shift) direction, control interrupts, and check the serial I/O
status.
Serial I/O interrupt
IRQ4:
196
If interrupt request output has been enabled (SMR: SIOE = "1"), an interrupt request
(IRQ4) is generated when 8-bit serial data is input or output by the serial I/O function.

Advertisement

Table of Contents
loading

Table of Contents