MB90210 Series
40
4. UART
The UART is a serial I/O port for synchronous or asynchronous communication with external resources. It has
the following features:
Full duplex double buffer
Data transfer synchronous or asynchronous with clock pulses
Multiprocessor mode support (Mode 2)
Built-in dedicated baud-rate generator (Nine types)
Arbitrary baud-rate setting from external clock input or internal timer
(Use the 16-bit reroad timer 1 channel 2 for internal timer.)
Variable data length (7 to 9 bits (without parity bit); 6 to 8 bits (with parity bit))
Variable data length (7 to 9 bit no parity, 6 to 8 bit with parity)
Error detection function (Framing, overrun, parity)
Interrupt function (Two sources for transmission and reception)
Transfer in NRZ format
The MB90210 series contains three channels for the UART.
UART channel 0 has the CTS function.
UART channel 2 provides dual I/O pin switching.
(1) Register Configuration
000021 H
000025H
000029H
ch.0
ch.1
ch.2
Address:
Status register
000022 H
000026H
00002AH
ch.0
ch.1
ch.2
Address:
Input data register/output data register
15
14
13
12
11
10
9
8
7654
3210
Bit
D7
D0
D1
D2
D3
D4
D5
D6
RDRF
TBF
RBF
TIE
RIE
TDRE
PE
ORFE
UIDR (read)/
UODR (write)
USR
(R)
(0)
(R)
(0)
(R)
(0)
(R)
(1)
(R/W)
(0)
(R)
(0)
(R)
(0)
(R/W)
(0)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
Read/write
Initial value
Read/write
Initial value
→
000020 H
000024H
000028H
ch.0
ch.1
ch.2
Address:
Serial mode control register
7654
3210
Bit
PEN
SOE
SCKE
RFC
SMDE
MC0
MC1
SBL
UMC
(R/W)
(0)
(R/W)
(0)
(R/W)
(0)
(R/W)
(0)
(R/W)
(0)
(R/W)
(0)
(R/W)
(0)
(W)
(1)
Read/write
Initial value
→
Status register (USR)
Serial mode control register (UMC)
Input data register (UIDR)/output data register (UODR)