Figure 10.3.1 Serial 1 Mode Register (Smr1) - Fujitsu F2MC-8L MB89620 Series Hardware Manual

8-bit microcontroller
Table of Contents

Advertisement

10.3 Structure of 8-bit Serial I/O-1
10.3.1 Serial 1 Mode Register (SMR1)
The serial 1 mode register (SMR1) is used to enable or disable operation, select the
shift clock, set the transfer direction, control interrupts, and check the state of 8-bit
serial I/O-1.
n Serial 1 Mode Register (SMR1)
Address
001C
H
R/W : Readable and writable
204
CHAPTER 10 8-BIT SERIAL I/O (SERIAL I/O-1 AND SERIAL I/O-2)
Bit 7
Bit 6
Bit 5
Bit 4
SIOF
SIOE
SCKE
SOE
R/W
R/W
R/W
R/W
: Initial value

Figure 10.3.1 Serial 1 Mode Register (SMR1)

Bit 3
Bit 2
Bit 1
Bit 0
CKS1
CKS0
BDS
SST
R/W
R/W
R/W
R/W
SST
0
Serial transfer stopped.
1
Serial transfer operating.
BDS
Transfer direction selection bit
LSB first
0
(starts transfer from the least significant bit)
MSB first
1
(starts transfer from the most significant bit)
CKS1 CKS0
0
0
0
1
Internal shift clock
1
0
1
1
External shift clock
t
: Instruction cycle
inst
SOE
0
Functions P32/SO1 as a general-purpose port.
Functions P32/SO1 as the serial data output
1
pin.
SCKE
Functions P31/SCK1 as a general-purpose port
0
or shift clock input pin.
Functions P31/SCK1 as the shift clock output
1
pin.
SIOE
0
Disables interrupt request output.
1
Enables interrupt request output.
SIOF
0
Transfer has not completed.
1
Transfer has completed.
Initial value
00000000
B
Serial I/O transfer start bit
Read
Write
Stops/disables serial transfer.
Starts/enables serial transfer.
Shift clock selection bits
2 t
inst
8 t
inst
32 t
inst
Serial data output enable bit
Shift clock output enable bit
Interrupt request enable bit
Interrupt request flag bit
Read
Write
Clears this bit.
No effect. The bit does not
change.
MB89620 series
SCK1
pin
Output
Output
Output
Input

Advertisement

Table of Contents
loading

Table of Contents