R8C/1A Group, R8C/1B Group
15. Serial Interface
Rev.1.30
Dec 08, 2006
Page 155 of 315
REJ09B0252-0130
Figure 15.4
Registers U0MR to U1MR
UARTi Transmit / Receive Mode Register (i = 0 or 1)
Symbol
Address
After Reset
U0MR
00A0h
00h
U1MR
00A8h
00h
Bit Symbol
Bit Name
Function
RW
NOTES :
1.
2.
3.
Do not set bits SMD2 to SMD0 in the U1MR register to any values other than 000b, 100b, 101b, and 110b.
Set the CKDIR bit in UART1 to 0 (internal clock).
b0
SMD0
RW
b3 b2 b1
0
b7 b6 b5 b4
RW
Serial interface mode select
bits
(2)
b2 b1 b0
0 0 0 : Serial interface disabled
0 0 1 : Clock synchronous serial I/O mode
1 0 0 : UART mode transfer data 7 bits long
1 0 1 : UART mode transfer data 8 bits long
1 1 0 : UART mode transfer data 9 bits long
Other than above : Do not set.
SMD1
Set the PD1_6 bit in the PD1 register to 0 (input).
SMD2
RW
RW
STPS
RW
0 : 1 stop bit
1 : 2 stop bits
CKDIR
PRY
RW
RW
Odd / even parity select bit
Enabled w hen PRYE = 1.
0 : Odd parity
1 : Even parity
PRYE
Parity enable bit
0 : Parity disabled
1 : Parity enabled
RW
Set to 0.
Internal / external clock select
bit
(3)
0 : Internal clock
1 : External clock
(1)
Stop bit length select bit
—
(b7)
Reserved bit