UART
Mitsubishi microcomputers
M16C / 62 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
364
Figure 2.5.12. Set-up procedure of reception in UART mode (1)
Continued to the next page
UART transmit/receive control register 2
UCON [Address 03B016]
Invalid in UART mode
Must be fixed to “0” in UART mode
Invalid in UART mode
Separate CTS/RTS bit
0 : CTS/RTS shared pin
b7
b0
00
Setting UART transmit/receive control register 2 and UART2 transmit/receive control register 1
UART2 transmit/receive control register 1
U2C1 [Address 037D16]
Invalid in UART mode
Error signal output enable bit
0 : Output disabled
Data logic select bit
0 : No reverse
b7
b0
00
Setting UARTi transmit/receive mode register (i=0 to 2)
Internal/external clock select bit
0 : Internal clock
UART0 transmit/receive mode register
U0MR
[Address 03A016]
UART1 transmit/receive mode register
U1MR
[Address 03A816]
Valid when bit 6 = “1”
Parity enable bit
0 : Parity diabled
b7
b0
01
0
Sleep select bit
0 : Sleep mode deselected
Serial I/O mode select bit
1 0 1 : Transfer data 8 bits long
b2 b1 b0
00
Stop bit length select bit
0 : One stop bit
Parity enable bit
0 : Parity diabled
b7
b0
01
0
Sleep select bit
0 : Sleep mode deselected
Serial I/O mode select bit
1 0 1 : Transfer data 8 bits long
b2 b1 b0
00
Stop bit length select bit
0 : One stop bit
UART2 transmit/receive mode register
U2MR
[Address 037816]
Must be fixed to “0” in UART mode
Valid when bit 6 = “1”
Transmit register empty flag
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit register
(transmission completed)
Must be fixed to “0” in UART mode
Setting UARTi transmit/receive control register 0 (i=0 to 2)
UART2 transmit/receive control register 0
U2C0 [Address 037C16]
Transfer format select bit
0 : LSB first
Must be fixed to “0” in UART mode
Transmit register empty flag
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit register
(transmission completed)
Must be fixed to “0” in UART mode
Data output select bit
0 : TxDi pin is CMOS output
1 : TxDi pin is N-channel open-drain output
b7
b0
01
00
BRG count source select bit
0 0 : f1 is selected
0 1 : f8 is selected
1 0 : f32 is selected
1 1 : Inhibited
b1 b0
CTS/RTS function select bit
(Valid when bit 4 = “0”)
1 : RTS function is selected
CTS/RTS disable bit
0 : CTS/RTS function enabled
UART0 transmit/receive control register 0
U0C0 [Address 03A416]
UART1 transmit/receive control register 0
U1C0 [Address 03AC16]
b7
b0
01
00
BRG count source select bit
0 0 : f1 is selected
0 1 : f8 is selected
1 0 : f32 is selected
1 1 : Inhibited
b1 b0
CTS/RTS function select bit
(Valid when bit 4 = “0”)
1 : RTS function is selected
CTS/RTS disable bit
0 : CTS/RTS function enabled
0
Transmit register empty flag
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit register
(transmission completed)
Must be fixed to “0” in UART mode