Fujitsu MB90390 Series Hardware Manual page 344

Table of Contents

Advertisement

CHAPTER 19 UART0, UART1
■ Serial Mode Control Register (UMC) Contents
Table 19.3-1 Function of Each Bit of the Serial Control Register
Bit name
PEN:
bit7
Parity enable
SBL:
bit6
stop bit length
bit5,
MC1, MC0:
bit4
Mode control bits
SMDE:
bit3
Synchro mode enable
RFC:
bit2
Receiver flag clear
SCKE:
bit1
SCLK enable
SOE:
bit0
Serial output enable
316
Specifies whether to add (for transmit) or detect (for receive) a parity bit in serial data I/O. Set to "0"
in mode 2.
"0": Do not use parity
"1": Use parity
Specifies the number of stop bits for transmit data. For receive data, the first stop bit only is
recognized and any second stop bit is ignored.
"0": 1 bit length
"1": 2 bits length
These bits control the length of the transferred data. Table 19.4-1 lists the four transfer modes (data
lengths) selectable by these bits.
Mode
MC1
MC0
0
0
0
1
0
1
2
1
0
3
1
1
The figures enclosed in parentheses indicate the data length with parity.
"+1" means Address/Data-Bit instead of parity
This bit selects the transfer method.
"0": Start-stop CLK synchronous transfer (clocked synchronous transfer using start and stop bits.)
"1": Start-stop CLK asynchronous transfer
Writing "0" to this bit clears the RDRF, ORFE, and PE flags in the USR register. Writing "1" has no
effect. Reading always returns "1".
Note:
When receive interrupts are enabled during UART0, UART1 operation, only write "0" to RFC
when either RDRF, ORFE, or PE is "1".
Writing "1" to this bit in CLK synchronous mode switches the port pin to the UART0, 1 serial clock
output pin and outputs the synchronizing clock. Set to "0" in CLK asynchronous mode or external
clock mode.
"0": The pin functions as a general purpose I/O port and does not output the serial clock. The pin
functions as the external clock input pin when the port is set to input mode (DDR=0) and RC3
to RC0 are set to "1111
B
"1": The pin functions as the UART0, UART1 serial clock output pin.
Writing "1" to this bit switches the port pin to the UART0, UART1 serial data output pin and
enables serial output.
"0": The pin functions as a port pin and does not output serial data.
"1": The pin functions as the UART0, UART1 serial data output pin (SOT).
Function
Data Length
7 (6)
8 (7)
8 + 1
9 (8)
".

Advertisement

Table of Contents
loading

Table of Contents