R01UH0092EJ0110 Rev.1.10
Page 458 of 807
Jul 31, 2012
M16C/64C Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
23.2.2
UARTi Transmit/Receive Mode Register (UiMR) (i = 0 to 2, 5 to 7)
SMD2 to SMD0 (Serial I/O mode select bit) (b2 to b0)
When setting bits SMD2 to SMD0 to 000b (serial interface disabled), set the TE bit in the UiC1 register
to 0 (transmission disabled) and the RE bit to 0 (reception disabled).
When using I
2
C mode, set the IICM bit in the UiSMR register to 1 (I
2
C mode), then set bits SMD2 to
SMD0 to 010b (I2C mode).
b7 b6 b5 b4
b1
b2
b3
b0
Function
Bit Symbol
Bit Name
RW
RW
STPS
Stop bit length select bit
0 : 1 stop bit
1 : 2 stop bit
RW
CKDIR
Internal/external clock
select bit
0 : Internal clock
1 : External clock
RW
PRY
Odd/even parity select bit
Enabled when PRYE is 1
0 : Odd parity
1 : Even parity
RW
IOPOL
TXD, RXD I/O polarity
inverse bit
0 : Not inverted
1 : Inverted
RW
PRYE
Parity enable bit
0 : Parity disabled
1 : Parity enabled
SMD0
SMD1
SMD2
RW
RW
RW
Serial I/O mode select bit
b2 b1 b0
0 0 0 : Serial interface disabled
0 0 1 : Clock synchronous serial I/O mode
0 1 0 : I
2
C mode
1 0 0 : UART mode character bit length is 7 bits
1 0 1 : UART mode character bit length is 8 bits
1 1 0 : UART mode character bit length is 9 bits
Only set the values listed above.
UARTi Transmit/Receive Mode Register (i = 0 to 2, 5 to 7)
Symbol
Address
Reset Value
U0MR, U1MR, U2MR
0248h, 0258h, 0268h
00h
U5MR, U6MR, U7MR
0288h, 0298h, 02A8h
00h
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...