Intel 81342 Developer's Manual page 815

Table of Contents

Advertisement

®
T i m e r s — I n t e l
8 1 3 4 1 a n d 8 1 3 4 2
1 2 . 4 . 2 . 1
B i t 0 — T e r m i n a l C o u n t S t a t u s B i t ( T M R x . t c )
T h e T M R x . t c b i t i s s e t w h e n t h e T i m e r C o u n t R e g i s t e r ( T C R x ) d e c r e m e n t s t o 0 a n d b i t 2
( T M R x . r e l o a d ) i s n o t s e t f o r a t i m e r . T h e T M R x . t c b i t a l l o w s a p p l i c a t i o n s t o m o n i t o r
t i m e r s t a t u s t h r o u g h s o f t w a r e i n s t e a d o f i n t e r r u p t s . T M R x . t c r e m a i n s s e t u n t i l s o f t w a r e
a c c e s s e s ( r e a d s o r w r i t e s ) T M R x . T h e a c c e s s c l e a r s T M R x . t c . T h e t i m e r i g n o r e s a n y
v a l u e s p e c i f i e d f o r T M R x . t c i n a w r i t e r e q u e s t .
W h e n a u t o - r e l o a d i s s e l e c t e d f o r a t i m e r a n d t h e t i m e r i s e n a b l e d , t h e T M R x . t c b i t
s t a t u s i s u n p r e d i c t a b l e . S o f t w a r e s h o u l d n o t r e l y o n t h e v a l u e o f t h e T M R x . t c b i t w h e n
a u t o - r e l o a d i s e n a b l e d .
T h e p r o c e s s o r a l s o c l e a r s t h e T M R x . t c b i t u p o n h a r d w a r e o r s o f t w a r e r e s e t . R e f e r t o
S e c t i o n 1 9 . 2 , " R e s e t O v e r v i e w " o n p a g e 9 9 3
1 2 . 4 . 2 . 2
B i t 1 — T i m e r E n a b l e ( T M R x . e n a b l e )
T M R x . e n a b l e b i t a l l o w s u s e r s o f t w a r e t o c o n t r o l t h e t i m e r ' s R U N / S T O P s t a t u s . W h e n :
T M R x . e n a b l e = 1 T h e T i m e r C o u n t R e g i s t e r ( T C R x ) v a l u e d e c r e m e n t s e v e r y T i m e r
T M R x . e n a b l e = 0 T h e t i m e r i s d i s a b l e d a n d i g n o r e s a l l i n p u t t r a n s i t i o n s .
U s e r s o f t w a r e s e t s t h i s b i t . O n c e s t a r t e d , t h e t i m e r c o n t i n u e s t o r u n , r e g a r d l e s s o f
o t h e r p r o c e s s o r a c t i v i t y . T h r e e e v e n t s c a n s t o p t h e t i m e r :
• U s e r s o f t w a r e e x p l i c i t l y c l e a r i n g t h i s b i t ( i . e . , T M R x . e n a b l e = 0 ) .
• T C R x v a l u e d e c r e m e n t s t o 0 , a n d T i m e r A u t o R e l o a d E n a b l e ( T M R x . r e l o a d ) b i t = 0 .
• H a r d w a r e o r s o f t w a r e r e s e t . R e f e r t o
1 2 . 4 . 2 . 3
B i t 2 — T i m e r A u t o R e l o a d E n a b l e ( T M R x . r e l o a d )
T h e T M R x . r e l o a d b i t d e t e r m i n e s w h e t h e r t h e t i m e r r u n s c o n t i n u o u s l y o r i n s i n g l e - s h o t
m o d e . W h e n T C R x = 0 a n d T M R x . e n a b l e = 1 a n d :
T M R x . r e l o a d = 1
1 . A u t o m a t i c a l l y l o a d s T C R x w i t h t h e v a l u e i n t h e T i m e r R e l o a d R e g i s t e r ( T R R x ) , w h e n
T C R x v a l u e d e c r e m e n t s t o 0 .
2 . D e c r e m e n t s T C R x u n t i l i t e q u a l s 0 a g a i n .
S t e p s 1 a n d 2 r e p e a t u n t i l s o f t w a r e c l e a r s T M R x b i t s 1 o r 2 .
T M R x . r e l o a d = 0
U s e r s o f t w a r e s e t s t h i s b i t . W h e n T M R x . e n a b l e a n d T M R x . r e l o a d a r e s e t a n d T R R x d o e s
n o t e q u a l 0 , t h e t i m e r c o n t i n u e s t o r u n i n a u t o - r e l o a d m o d e , r e g a r d l e s s o f o t h e r
p r o c e s s o r a c t i v i t y . T w o e v e n t s c a n s t o p t h e t i m e r :
• U s e r s o f t w a r e e x p l i c i t l y c l e a r i n g e i t h e r T M R x . e n a b l e o r T M R x . r e l o a d .
• H a r d w a r e o r s o f t w a r e r e s e t .
T h e p r o c e s s o r c l e a r s t h i s b i t u p o n h a r d w a r e o r s o f t w a r e r e s e t .
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
C l o c k ( T C L O C K ) c y c l e . T C L O C K i s d e t e r m i n e d b y t h e T i m e r I n p u t
C l o c k S e l e c t ( T M R x . c s e l b i t s 0 - 1 ) . S e e
T M R x . r e l o a d = 0 , t h e t i m e r a u t o m a t i c a l l y c l e a r s T M R x . e n a b l e w h e n
t h e c o u n t r e a c h e s z e r o . W h e n T M R x . r e l o a d = 1 , t h e b i t r e m a i n s s e t .
S e e
S e c t i o n 1 2 . 4 . 2 . 3
.
S e c t i o n 1 9 . 2 , " R e s e t O v e r v i e w " o n p a g e 9 9 3
T h e t i m e r r u n s c o n t i n u o u s l y . T h e p r o c e s s o r :
T h e t i m e r r u n s u n t i l t h e T i m e r C o u n t R e g i s t e r = 0 . T R R x h a s
n o e f f e c t o n t h e t i m e r .
.
S e c t i o n 1 2 . 4 . 2 . 5
®
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
. W h e n
.
D e v e l o p e r ' s M a n u a l
8 1 5

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents