English
Language : 

M16C30P_07 Datasheet, PDF (140/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
15. Serial Interface
UARTi Bit Rate Generation Register (i=0 to 2) (1, 2, 3)
b7
b0
Symbol
U0BRG
U1BRG
U2BRG
Address
03A1h
03A9h
0379h
After Reset
Indeterminate
Indeterminate
Indeterminate
Function
Setting Range RW
Assuming that set value = n, UiBRG divides the count source by n + 1 00h to FFh
WO
NOTES :
1. Write to this register w hile serial interface is neither transmitting nor receiving.
2. Use MOV instruction to w rite to this register.
3. Write to this register after setting the CLK1 to CLK0 bits in the UiC0 register.
UARTi Transmit/Receive Mode Register (i=0 to 2)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Address
After Reset
U0MR to U2MR 03A0h, 03A8h, 0378h
00h
Bit Symbol
Bit Name
Function
RW
Serial I/O Mode Select Bit (2) b2 b1 b0
SMD0
0 0 0 : Serial interface disabled
RW
0 0 1 : Clock synchronous serial I/O mode
0 1 0 : I2C mode (3)
SMD1
1 0 0 : UART mode transfer data 7 bits long
RW
1 0 1 : UART mode transfer data 8 bits long
1 1 0 : UART mode transfer data 9 bits long
SMD2
Do not set except above
RW
Internal/External Clock Select 0 : Internal clock
CKDIR Bit
1 : External clock (1)
RW
Stop Bit Length Select Bit
0 : 1 stop bit
STPS
1 : 2 stop bits
RW
Odd/Even Parity Select Bit
Effective w hen PRYE = 1
PRY
0 : Odd parity
RW
1 : Even parity
Parity Enable Bit
0 : Parity disabled
PRYE
1 : Parity enabled
RW
TXD, RXD I/O Polarity Reverse 0 : No reverse
IOPOL Bit
1 : Reverse
RW
NOTES :
1. Set the corresponding port direction bit for each CLKi pin to “0” (input mode).
2. To receive data, set the corresponding port direction bit for each RXDi pin to “0” (input mode).
3. Set the corresponding port direction bit for SCL and SDA pins to “0” (input mode).
Figure 15.6 UiBRG and UiMR Registers
Rev.1.22 Mar 29, 2007 Page 124 of 291
REJ09B0179-0122