12.4 Operations
12.4 Operations
12.4.1 Operation modes
Table 12.4.1a lists the operation modes of UART. The modes can be switched by setting a value in the
SMR or SCR register.
Mode
0
1
2
Note: In asynchronous mode, the stop bit length can be specified for transmission only; the
stop bit is always one bit long for reception. If a two-bit stop bit length is specified, the
UART does not operate.
Note: When using clock synchronous mode, start bit and stop bit is not attached to the data
byte.
12.4.2 UART clock selection
(1) Dedicated baud rate generator
When a dedicated baud rate generator is selected, the following baud rates are used:
CS2
CS1
0
0
0
0
0
1
0
1
1
0
CS2
CS1
0
0
0
0
0
1
0
1
1
0
Note: ∅ : Machine clock
div: Division ration
Please refer to chaper 11, Communication Prescaler.
132
Chapter 12: UART
Table 12.4.1a UART operation modes
Data
Parity
length
Yes/No
7
Yes/No
8
No
8 + 1
No
8
Table 12.4.2a Baud rate (f indicates the machine clock.)
CS0
0
1
0
1
0
CS0
CLK synchronous
0
1
500
1
250
0
125
1
62.5
0
Operation mode
Asynchronous normal mode
Asynchronous multi-processor
mode
CLK synchronous mode
Asynchronous
9615
4808
2404
1202
31250
M
K
K
K
K
Stop bit length
1 bit or 2 bits
No
Calculation
(∅÷div) / (8×13×2)
2
(∅÷div) / (8×13×2
)
3
(∅÷div) / (8×13×2
)
4
(∅÷div) / (8×13×2
)
6
(∅÷div) / 2
Calculation
(∅÷div) / 2
(∅÷div) / 2
2
(∅÷div) / 2
3
(∅÷div) / 2
4
5
(∅÷div) / 2
MB90580 Series