M30245_06 RENESAS [Renesas Technology Corp], M30245_06 Datasheet - Page 71

no-image

M30245_06

Manufacturer Part Number
M30245_06
Description
RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
M30245 Group
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Figure 2.4.5. UARTi-related registers (3)
U A R T i t r a n s m i t / r e c e i v e c o n t r o l r e g i s t e r 0 ( i = 0 t o 3 )
b 7 b 6 b 5 b4 b 3 b 2 b 1 b 0
UARTi transmit/receive control register 1 (i= 0 to 3)
b7
b6
b5
b4
page 62 of 354
b3
N o t e 1 : S e t t h e c o r r e s p o n d i n g p o r t d i r e c t i o n r e g i s t e r t o “ 0 ” .
N o t e 2 : U A R T 2 t r a n s f e r p i n ( T x D
N o t e 3 : O n l y c l o c k s y n c h r o n o u s s e r i a l I / O m o d e a n d 8 - b i t U A R T m o d e a r e v a l i d .
N o t e 4 : T h e c o r r e s p o n d i n g p o r t r e g i s t e r a n d p o r t d i r e c t i o n r e g i s t e r a r e i n v a l i d .
b2
U F O R M T r a n s f e r f o r m a t s e l e c t b i t
N C H
( N o t e 2 )
C K P O L
T X E P T
s y m b o l
C L K 0
C L K 1
C R S
C R D
B i t
b1
U i C 0 ( i = 0 t o 3 )
b0
I t c a n n o t b e s e t t o C M O S o u t p u t .
S y m b o l
Note 1: When disabling the error signal output, set the UiERE bit to “0” after setting the
( N o t e 3 )
D a t a o u t p u t s e l e c t b i t
Bit Symbol
B R G c o u n t s o u r c e
s e l e c t b i t
C T S / R T S f u n c t i o n
s e l e c t b i t
T r a n s m i t r e g i s t e r e m p t y
f l a g
C T S / R T S d i s a b l e b i t
C L K p o l a r i t y s e l e c t b i t
UiRRM
UiLCH
UiERE
UiIRS
RE
TE
RI
TI
UiMR register.
B i t n a m e
Symbol
UiC1 (i=0 to 3)
Transmit enable
Transmit buffer
empty flag
Receive enable
bit
Receive
complete flag
UARTi transmit
interrupt cause
select bit
UARTi continuous
receive mode
enable bit
Data logic
select bit
Error signal
output enable bit
bit
Bit Name
0 3 A C
2
b 1 b 0
0 0 : f
0 1 : f
1 0 : f
1 1 : I n h i b i t e d
V a l i d w h e n b i t 4 = “ 0 ”
0 : C T S f u n c t i o n i s s e l e c t e d ( N o t e 1 )
1 : R T S f u n c t i o n i s s e l e c t e d ( N o t e 4 )
0 : D a t a p r e s e n t i n t r a n s m i t r e g i s t e r
1 : N o d a t a p r e s e n t i n t r a n s m i t
0 : C T S / R T S f u n c t i o n e n a b l e d
1 : C T S / R T S f u n c t i o n d i s a b l e d
0 : T x D i / S D A i a n d S C L i p i n i s C M O S
1 : T x D i / S D A i a n d S C L i p i n i s
0 : T r a n s m i t d a t a i s o u t p u t a t
1 : T r a n s m i t d a t a i s o u t p u t a t
0 : L S B f i r s t
1 : M S B f i r s t
: P 7
03AD
( D u r i n g c l o c k s y n c h r o n o u s
Set to “0”
The value is
indeterminate when read.
0 : Transmit disabled
1 : Transmit enabled
0 : Data present in transmit buffer register
1 : No data present in transmit buffer register
0 : Receive disabled
1 : Receive enabled
0 : Data packet in receive buffer register
1 : No data packet in receive buffer register
0 : Transmit buffer empty (TI =1)
1 : Transmit buffer completed ( TXEPT =1)
1 6
( d u r i n g t r a n s m i s s i o n )
r e g i s t e r ( t r a n s m i s s i o n c o m p l e t e d )
o u t p u t
N - c h a n n e l o p e n d r a i n o u t p u t
0 : Continuous receive
1 : Continuous receive
0 : No reverse
1 : Reverse
f a l l i n g e d g e o f t r a n s f e r c l o c k
a n d r e c e i v e d a t a i s i n p u t a t
r i s i n g e d g e
r i s i n g e d g e o f t r a n s f e r c l o c k
a n d r e c e i v e d a t a i s i n p u t a t
f a l l i n g e d g e
(clock synchronous
, 0 3 6 C
0
serial I/O mode)
1
8
3 2
mode disabled
mode enabled
16
s e r i a l I / O m o d e )
a n d S C L 2 : P 7
i s s e l e c t e d
i s s e l e c t e d
, 036D
i s s e l e c t e d
Function
A d d r e s s
Address
F u n c t i o n
1 6
, 0 3 3 C
16
, 033D
1 6
16
, 0 3 2 C
1
) i s N - c h a n n e l o p e n d r a i n o u t p u t .
, 032D
Set to “0”
0 : Output disabled
1 : Output enabled
1 6
16
,
b 1 b 0
0 0 : f
0 0 : f
0 0 : f
0 0 : f
0 1 : f
0 1 : f
0 1 : f
0 1 : f
1 0 : f
1 0 : f
1 0 : f
1 0 : f
1 1 : I n h i b i t e d
1 1 : I n h i b i t e d
1 1 : I n h i b i t e d
1 1 : I n h i b i t e d
V a l i d w h e n b i t 4 = “ 0 ”
0 : C T S f u n c t i o n i s s e l e c t e d ( N o t e 1 )
1 : R T S f u n c t i o n i s s e l e c t e d ( N o t e 4 )
0 : D a t a p r e s e n t i n t r a n s m i t r e g i s t e r
1 : N o d a t a p r e s e n t i n t r a n s m i t
0 : C T S / R T S f u n c t i o n e n a b l e d
1 : C T S / R T S f u n c t i o n d i s a b l e d
S e t t o “ 0 ”
0 : L S B f i r s t
1 : M S B f i r s t
0 : T x D i / S D A i a n d S C L i p i n i s C M O S
1 : T x D i / S D A i a n d S C L i p i n i s
(UART mode)
( d u r i n g t r a n s m i s s i o n )
r e g i s t e r ( t r a n s m i s s i o n c o m p l e t e d )
Function
o u t p u t
N - c h a n n e l o p e n d r a i n o u t p u t
( D u r i n g U A R T m o d e )
1
1
1
1
8
8
8
8
3 2
3 2
3 2
3 2
(Note 1)
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
i s s e l e c t e d
When reset
W h e n r e s e t
F u n c t i o n
02
0 8
16
1 6
R W
R
W
2. UART

Related parts for M30245_06