Renesas M16C/64C User Manual page 514

Table of Contents

Advertisement

M16C/64C Group
Table 23.12
Registers Used and Settings in UART Mode
Register
PCLKR
PCLKSTP1
UiTB
UiRB
OER, FER, PER, SUM
UiBRG
SMD2 to SMD0
UiMR
UiC0
UiC1
UiSMR
UiSMR2
UiSMR3
UiSMR4
UCON
i = 0 to 2, 5 to 7; j = 2, 5 to 7
Notes:
1.
This table does not describe a procedure.
2.
The bits used for transmit/receive data are as follows: Bits 0 to 6 when character bit length is 7 bits; bits 0 to
7 when character bit length is 8 bits; bits 0 to 8 when character bit length is 9 bits.
3.
The TXD2 pin is N-channel open drain output. Nothing is assigned to the NCH bit in the U2C0 register. If
necessary, set it to 0.
4.
The values of bits 7 and 8 are undefined when character bit length is 7 bits.
The values of bit 8 is undefined when character bit length is 8 bits.
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
Bits
PCLK1
Select the count source for the UiBRG register.
PCKSTP1A
Set to 0 when using f1.
0 to 8
Set transmission data.
0 to 8
Reception data can be read.
Error flag
11
When read, the read value is undefined.
0 to 7
Set bit rate.
Set to 100b when character bit length is 7 bits.
Set to 101b when character bit length is 8 bits.
Set to 110b when character bit length is 9 bits.
CKDIR
Select the internal clock or external clock.
STPS
Select number of stop bits.
PRY, PRYE
Select whether parity is included and whether odd or even.
IOPOL
Select the TXD/RXD input/output polarity.
CLK0, CLK1
Select the count source for the UiBRG register.
If CTS or RTS is used, select which function to use.
CRS
TXEPT
Transmit register empty flag
Enable or disable the CTS or RTS function.
CRD
NCH
Select TXDi pin output mode.
CKPOL
Set to 0.
LSB first or MSB first can be selected when character bit length is 8 bits. Set to 0
UFORM
when character bit length is 7 or 9 bits.
TE
Set to 1 to enable transmission.
TI
Transmit buffer empty flag
RE
Set to 1 to enable reception.
RI
Reception complete flag
UjIRS
Select source of UARTj transmit interrupt.
UjRRM
Set to 0.
UiLCH
Set to 1 to use reversed data logic.
UiERE
Set to 0.
0 to 7
Set to 0.
0 to 7
Set to 0.
0 to 7
Set to 0.
0 to 7
Set to 0.
U0IRS
Select source of UART0 transmit interrupt.
U1IRS
Select source of UART1 transmit interrupt.
U0RRM
Set to 0.
U1RRM
Set to 0.
CLKMD0
Disabled because CLKMD1 is 0
CLKMD1
Set to 0.
Set to 1 to input CTS0 signal of UART0 from the P6_4 pin.
RCSP
7
Set to 0.
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
(1)
Function
(2)
(2, 4)
(3)
Page 481 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents