Renesas M16C/26A Series Hardware Manual page 170

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
Table 13.1.2.2. Registers to Be Used and Settings in UART Mode
Register
Bit
UiTB
0 to 8
UiRB
0 to 8
OER,FER,PER,SUM Error flag
UiBRG
0 to 7
UiMR
SMD2 to SMD0
CKDIR
STPS
PRY, PRYE
IOPOL(i=2)
UiC0
CLK0, CLK1
CRS
TXEPT
CRD
NCH
CKPOL
UFORM
UiC1
TE
TI
RE
RI
(2)
U2IRS
U2RRM
U2LCH
U2ERE
U2SMR
0 to 7
U2SMR2
0 to 7
U2SMR3
0 to 7
U2SMR4
0 to 7
UCON
U0IRS, U1IRS
U0RRM, U1RRM
CLKMD0
CLKMD1
RCSP
7
NOTES:
1. The bits used for transmit/receive data are as follows: Bit 0 to bit 6 when transfer data is 7 bits long; bit 0 to
bit 7 when transfer data is 8 bits long; bit 0 to bit 8 when transfer data is 9 bits long.
2. Set the bit 4 to bit 5 in the U0C1 and U1C1 registers to "0". The U0IRS, U1IRS, U0RRM and U1RRM bits
are included in the UCON register.
3. Set the bit 6 to bit 7 in the U0C1 and U1C1 registers to "0".
4. Set the bit 7 the U0MR and U1MR registers to "0".
i=0 to 2
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
Set transmission data
Reception data can be read
Set a transfer rate
Set these bits to '100
Set these bits to '101
Set these bits to '110
Select the internal clock or external clock
Select the stop bit
Select whether parity is included and whether odd or even
(4)
Select the TxD/RxD input/output polarity
Select the count source for the UiBRG register
_______
Select CTS or RTS to use
Transmit register empty flag
Enable or disable the CTS or RTS function
Select TxDi pin output mode
Set to "0"
LSB first or MSB first can be selected when transfer data is 8 bits long. Set this
bit to "0" when transfer data is 7 or 9 bits long.
Set this bit to "1" to enable transmission
Transmit buffer empty flag
Set this bit to "1" to enable reception
Reception complete flag
Select the source of UART2 transmit interrupt
(2)
Set to "0"
(3)
Set this bit to "1" to use UART2 inverted data logic
(3)
Set to "0"
Set to "0"
Set to "0"
Set to "0"
Set to "0"
Select the source of UART0/UART1 transmit interrupt
Set to "0"
Invalid because CLKMD1 = 0
Set to "0"
Set this bit to "1" to accept as input the UART0 CTS
Set to "0"
page 151
f o
3
2
9
6
C
2 /
6
) T
Function
(1)
(1)
' when transfer data is 7 bits long
2
' when transfer data is 8 bits long
2
' when transfer data is 9 bits long
2
_______
_______
_______
_________
signal from the P6
pin or P7
0
4
13. Serial I/O
pin
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents