Intel 81342 Developer's Manual page 749

Table of Contents

Advertisement

I n t e r r u p t C o n t r o l l e r U n i t — I n t e l
T h e I N T B A S E a n d I N T S I Z E r e g i s t e r s a r e u s e d t o e s t a b l i s h a c o n t i g u o u s I n t e r r u p t
S e r v i c e R o u t i n e ( I S R ) m e m o r y r a n g e f o r a l l o f 1 2 8 p o s s i b l e s o u r c e s . T h e a r c h i t e c t u r e
p r o v i d e s f o r a n I S R r a n g i n g f r o m 4 b y t e s t o 6 4 K b y t e s p e r s o u r c e .
T h e a c t u a l v e c t o r v a l u e i s a f u n c t i o n o f t h e I N T B A S E a n d t h e I N T S I Z E r e g i s t e r s a n d i s
b a s e d o n a f i x e d o r d e r o f a l l 1 2 8 p o s s i b l e i n t e r r u p t s o u r c e s . T h e v e c t o r s b e g i n a t
I N T B A S E w i t h s o u r c e 0 ( i . e . , I I N T S R C 0 b i t 0 ) , a n d e n d a t I N T B A S E + I N T S I Z E ( p e r
s o u r c e ) × 1 2 7 w i t h s o u r c e 1 2 7 ( t h a t i s , I I N T S R C 3 b i t 3 1 ) .
E x a m p l e 1 6 . D e t e r m i n i n g t h e L o c a t i o n o f t h e I n t e r r u p t H a n d l e r f o r S o u r c e 2 5
INTBASE = 0x81400000 ; 4 Mbyte Aligned Base Address
INTSIZE = 0xE ; 32 Kbytes per source (ISR Memory Range of 4 Mbytes)
ISR Address(25) = 0x81400000 + conv_hex(2^15*25) = 0x814C8000
B a s e d o n I I N T S R C [ 3 : 0 ] , F I N T S R C [ 3 : 0 ] , I P R [ 7 : 0 ] , I N T B A S E , a n d I N T S I Z E , t h e i n t e r r u p t
c o n t r o l l e r g e n e r a t e s t h e v a l u e s p r o v i d e d b y t h e I I N T V E C a n d F I N T V E C r e g i s t e r s a s
i l l u s t r a t e d i n
a c t i v e i n t e r r u p t s o u r c e w i t h t h e h i g h e s t p r i o r i t y t o t h e I R Q a n d F I Q e x c e p t i o n h a n d l e r s ,
r e s p e c t i v e l y .
F i g u r e 1 1 4 . I n t e r r u p t C o n t r o l l e r B l o c k D i a g r a m ( F I Q / I R Q I n t e r r u p t V e c t o r G e n e r a t i o n )
N o t e :
T h e 8 1 3 4 1 a n d 8 1 3 4 2 d o e s n o t u s e a l l 1 2 8 p o s s i b l e s o u r c e s .
I C U r e g i s t e r s r e s i d e i n C o p r o c e s s o r 6 ( C P 6 ) . T h e y m a y b e a c c e s s e d / m a n i p u l a t e d w i t h
t h e M C R , M R C , S T C , a n d L D C i n s t r u c t i o n s . T h e i n s t r u c t i o n C R n f i e l d d e n o t e s t h e
a c c e s s e d r e g i s t e r n u m b e r . T h e i n s t r u c t i o n o p c o d e _ 1 , o p c o d e _ 2 , a n d C R m f i e l d s s h o u l d
b e z e r o . M o s t s y s t e m s r e s t r i c t a c c e s s t o C P 6 t o p r i v i l e g e d p r o c e s s e s . T o c o n t r o l a c c e s s
t o C P 6 , u s e C o p r o c e s s o r A c c e s s R e g i s t e r .
A n i n s t r u c t i o n t h a t m o d i f i e s a n I C U r e g i s t e r i s i n s u r e d t o t a k e e f f e c t b e f o r e t h e n e x t
i n s t r u c t i o n e x e c u t e s . F o r e x a m p l e , w h e n a n i n s t r u c t i o n m a s k s a n i n t e r r u p t s o u r c e ,
s u b s e q u e n t i n s t r u c t i o n s e x e c u t e i n a n e n v i r o n m e n t i n w h i c h t h e m a s k e d i n t e r r u p t d o e s
n o t o c c u r .
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
®
8 1 3 4 1 a n d 8 1 3 4 2
F i g u r e 1 1 4
. T h e I I N T V E C a n d F I N T V E C r e g i s t e r s p r e s e n t t h e v e c t o r f o r t h e
I n t e r r u p t
S o u r c e
1 2 8 - b i t
P r i o r i t i z e r
R e g i s t e r s
( F I Q o r I R Q )
I n t e r r u p t
P r i o r i t y
R e g i s t e r s
[ 0 : 7 ]
V e c t o r
1 2 8 - b i t
3 2 - b i t
G e n e r a t o r
I N T S R C ( x )
V e c t o r = I N T B A S E
R e g i s t e r +
I N T S I Z E R e g i s t e r * x
®
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
F I Q o r I R Q
I n t e r r u p t
V e c t o r
R e g i s t e r
B 6 2 7 3 - 0 1
D e v e l o p e r ' s M a n u a l
7 4 9

Advertisement

Table of Contents
loading

This manual is also suitable for:

81341

Table of Contents