Renesas M16C Series User Manual page 98

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents