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

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.5.3. Serial interface special function-related registers (2)
U A R T i t r a n s m i t / r e c e i v e m o d e r e g i s t e r ( i = 0 t o 3 )
b 7
b7
UARTi bit rate generator (o=0 to 3) (Note 1, 2)
b 6
b 5
b 4
b 3
b 2
b 1
page 89 of 354
b 0
b0
N o t e 1 : W h e n I
N o t e 2 : N o r m a l l y s e t t o “ 0 ” .
N o t e 3 : S e t t h e R x D i p i n ' s p o r t d i r e c t i o n r e g i s t e r t o “ 0 ” w h e n r e c e i v i n g .
s y m b o l
C K D I R
S M D 0
S M D 1
S M D 2
P R Y E
S T P S
S L E P
P R Y
B i t
( S C L i ) t o 0 , o r t h e p o r t d i r e c t i o n r e g i s t e r t o 1 a n d t h e p o r t d a t a r e g i s t e r t o 1 . W h e n a m o d e o t h e r t h a n
s e r i a l I / O m o d e i s s e l e c t e d , s e t t h e p o r t d i r e c t i o n r e g i s t e r f o r t h e c o r r e s p o n d i n g p o r t ( C L K i ) t o 0 .
S y m b o l
U 0 M R
U 1 M R
U 2 M R
U 3 M R
S e r i a l I / O m o d e s e l e c t b i t
I n t e r n a l / e x t e r n a l c l o c k
s e l e c t b i t
S t o p b i t l e n g t h s e l e c t b i t
O d d / e v e n p a r i t y s e l e c t b i t
P a r i t y e n a b l e b i t
T x D , R x D i n p u t / o u t p u t
p o l a r i t y s w i t c h b i t ( N o t e 2 )
2
C b u s i n t e r f a c e m o d e i s s e l e c t e d , s e t t h e p o r t d i r e c t i o n r e g i s t e r f o r t h e c o r r e s p o n d i n g p o r t
Note 1: Use MOV instruction to write to this register.
Note 2: Write a value to this register while transmit/receive halts.
Assuming that set value = n, BRGi divides the count source by
n + 1
B i t n a m e
( N o t e 3 )
A d d r e s s
0 3 A 8
0 3 6 8
0 3 3 8
0 3 2 8
Symbol
U0BRG
U1BRG
U2BRG
U3BRG
1 6
1 6
1 6
1 6
0 : I n t e r n a l c l o c k
1 : E x t e r n a l c l o c k ( N o t e 1 )
0 : N o r m a l
1 : R e v e r s e d
I n h i b i t e d e x c e p t i n c a s e s
l i s t e d a b o v e
I n v a l i d
I n v a l i d
I n v a l i d
( D u r i n g c l o c k s y n c h r o n o u s
M u s t b e f i x e d t o 0 0 1
0 0 0 : S e r i a l I / O i n v a l i d
0 1 0 : S e r i a l I / O m o d e
0 1 1 : I
b 2 b 1 b 0
Function
s e r i a l I / O m o d e )
W h e n r e s e t
2
F u n c t i o n
C m o d e
0 0
0 0
0 0
0 0
Address
03A9
0369
0339
0329
1 6
1 6
1 6
1 6
16
16
16
16
Indeterminate
Indeterminate
Indeterminate
Indeterminate
When reset
0 : I n t e r n a l c l o c k
1 : E x t e r n a l c l o c k ( N o t e 1 )
0 : O n e s t o p b i t
1 : T w o s t o p b i t s
V a l i d w h e n b i t 6 = “ 1 ”
0 : O d d p a r i t y
1 : E v e n p a r i t y
0 : P a r i t y d i s a b l e d
1 : P a r i t y e n a b l e d
1 0 0 : T r a n s f e r d a t a 7 b i t s l o n g
1 0 1 : T r a n s f e r d a t a 8 b i t s l o n g
1 1 0 : T r a n s f e r d a t a 9 b i t s l o n g
I n h i b i t e d e x c e p t i n c a s e s
l i s t e d a b o v e
b 2 b 1 b 0
2. Serial Interface Special Function
( D u r i n g U A R T m o d e )
Values that can be set
F u n c t i o n
00
16
to FF
16
R
R
W
W

Related parts for M30245_06