Intel 81342 Developer's Manual page 886

Table of Contents

Advertisement

1 5 . 3 . 5
A u t o - B a u d - R a t e D e t e c t i o n
E a c h U A R T s u p p o r t s a u t o - b a u d - r a t e d e t e c t i o n . W h e n e n a b l e d , U A R T c o u n t s t h e n u m b e r
o f 3 3 . 3 3 4 M H z c l o c k c y c l e s w i t h i n t h e s t a r t - b i t p u l s e . T h i s n u m b e r i s t h e n w r i t t e n i n t o
t h e A u t o - B a u d - C o u n t r e g i s t e r ( A C R ) a n d u s e d t o c a l c u l a t e t h e b a u d r a t e . W h e n A C R i s
w r i t t e n , a n A u t o - B a u d - L o c k I n t e r r u p t i s g e n e r a t e d ( w h e n e n a b l e d ) , a n d t h e U A R T
a u t o m a t i c a l l y p r o g r a m s t h e D i v i s o r L a t c h r e g i s t e r s w i t h t h e a p p r o p r i a t e b a u d r a t e .
W h e n p r e f e r r e d , t h e p r o c e s s o r c a n r e a d t h e A u t o - B a u d - C o u n t r e g i s t e r u s i n g t h i s
i n f o r m a t i o n t o p r o g r a m t h e D i v i s o r - L a t c h r e g i s t e r s w i t h a b a u d r a t e c a l c u l a t e d b y t h e
p r o c e s s o r . A f t e r t h e b a u d r a t e h a s b e e n p r o g r a m m e d , t h e p r o c e s s o r i s r e s p o n s i b l e t o
v e r i f y t h a t t h e p r e d e t e r m i n e d c h a r a c t e r s ( u s u a l l y A T o r a t ) a r e b e i n g r e c e i v e d c o r r e c t l y .
W h e n t h e U A R T p r o g r a m s D i v i s o r L a t c h r e g i s t e r s , u s e r s c a n c h o o s e b e t w e e n t w o a u t o -
b a u d c a l c u l a t i o n m e t h o d s : t a b l e - a n d f o r m u l a - b a s e d . T h e m e t h o d i s s e l e c t e d v i a b i t
A B T o f t h e A u t o - B a u d C o n t r o l r e g i s t e r ( A B R ) . W h e n t h e f o r m u l a m e t h o d i s u s e d , a n y
b a u d r a t e a l l o w e d i n
w e l l f o r h i g h e r b a u d r a t e s , b u t c o u l d p o s s i b l y f a i l b e l o w 2 8 . 8 k b p s w h e n t h e r e m o t e
t r a n s m i t t e r ' s a c t u a l b a u d r a t e d i f f e r s b y m o r e t h a n o n e p e r c e n t o f i t s t a r g e t .
E q u a t i o n 3 4 . B a u d R a t e F o r m u l a
BaudRate
T h e t a b l e m e t h o d i s m o r e i m m u n e t o s u c h e r r o r s s i n c e t h e t a b l e r e j e c t s u n c o m m o n
b a u d r a t e s a n d r o u n d s t o t h e c o m m o n o n e s . T h e t a b l e m e t h o d a l l o w s a n y b a u d r a t e i n
E q u a t i o n 3 4
4 8 0 0 , 1 2 0 0 , a n d 3 0 0 b a u d c a n b e p r o g r a m m e d b y U A R T . S o m e t y p i c a l v a l u e s f o r
D i v i s o r a n d c o r r e s p o n d i n g b a u d r a t e s a r e p r o v i d e d i n
3 6 0 0 b a u d r e q u i r e o n l y D i v i s o r L a t c h L o w R e g i s t e r t o b e p r o g r a m m e d , s i n c e D i v i s o r
L a t c h H i g h R e g i s t e r w o u l d b e 0 .
T a b l e 5 6 0 . D i v i s o r V a l u e s f o r T y p i c a l B a u d R a t e s
B a u d R a t e
1 1 5 . 2 K
5 7 . 6 K
3 8 . 4 K
3 3 . 6 K
2 8 . 8 K
1 9 . 2 K
1 4 . 4 K
W h e n t h e b a u d r a t e i s d e t e c t e d , a u t o - b a u d c i r c u i t r y d i s a r m s i t s e l f b y c l e a r i n g b i t A B E o f
t h e A u t o - B a u d C o n t r o l r e g i s t e r ( A B R ) . T o r e a r m t h e c i r c u i t r y , A B E b i t m u s t b e r e w r i t t e n .
N o t e :
F o r t h e a u t o - b a u d - r a t e d e t e c t i o n c i r c u i t t o w o r k c o r r e c t l y , t h e f i r s t d a t a b i t t r a n s m i t t e d
a f t e r t h e s t a r t b i t m u s t b e a l o g i c ' 1 ' . W h e n a l o g i c ' 0 ' i s t r a n s m i t t e d i n s t e a d , t h e
a u t o b a u d c i r c u i t c o u n t s t h e z e r o a s p a r t o f t h e s t a r t b i t , w i t h a n i n c o r r e c t b a u d r a t e
b e i n g p r o g r a m m e d i n t o D L L a n d D L H r e g i s t e r s .
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 I / O P r o c e s s o r s
D e v e l o p e r ' s M a n u a l
8 8 6
E q u a t i o n 3 4
33.334MHz
=
- - - - - - - - - - - - - - - - - - - - - - - - - -
(
)
16XDivisor
a b o v e 2 8 . 8 k b p s . B e l o w 2 8 . 8 k b p s o n l y b a u d r a t e s o f 1 9 2 0 0 , 1 4 4 0 0 , 9 6 0 0 ,
D i v i s o r
1 8
36
54
62
72
109
145
217
9 6 0 0
434
4 8 0 0
579
3 6 0 0
2 4 0 0
8 6 8
1 2 0 0
1 7 3 6
6 0 0
3 4 7 2
3 0 0
6 9 4 4
c a n b e p r o g r a m m e d b y t h e U A R T . T h i s m e t h o d w o r k s
T a b l e 5 6 0
U A R T R a t e
1 1 5 . 7 4 K
57.87K
38.58K
33.60K
28.94K
19.29K
14.47K
9645
4800
3600
2400
1200
600
3 0 0
®
I n t e l
8 1 3 4 1 a n d 8 1 3 4 2 — U A R T s
. B a u d r a t e s a b o v e
E r r o r
0 . 4 7 %
0.47%
0.47%
0.01%
0.47%
0.47%
0.47%
0.47%
0.01%
0.01%
0.01%
0.01%
0.01%
0 . 0 1 %
D e c e m b e r 2 0 0 7
O r d e r N u m b e r : 3 1 5 0 3 7 - 0 0 2 U S

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents