Part Number Hot Search : 
SAA7152 SG2812 HC595 OM8505SF A4759 17S05LVI 09081 55C10
Product Description
Full Text Search
 

To Download PAK-III Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
         
            ? 1998 b y a w c , a ll r i g h t s r e s e r v e d a w c 310 i v y g l e n c t . l ea gu e c i t y , t x 77573 s t a m p @ a l - w illi a m s . c o m h tt p :// www . a l - w illi a m s . c o m / a w c / a w ce . h t m v 1 . 1 25 j a n 99

o v e r v i e w t h e s t a m p p a k iii i s a n 8 - b i t i / o c o p r o ce ss o r w i t h a v e r s a t il e i n t e r f ace t h a t m a k e s i t ea s y t o i n t e r f ace i t w i t h a v a r i e t y o f mi c r o c o n t r o ll e r s i n c l ud i n g t h e b a s i c s t a m p f r o m p a r a ll a x . h o w e v e r , y o u ca n ea s il y i n t e r f ace t h e p a k iii w i t h p r ac t i ca ll y a n y m o d e r n mi c r o p r o ce ss o r . h e r e a r e s o m e o f t h e p a k iii ' s m a j o r f ea t u r e s : r o b u s t , s p ee d i n d e p e n d e n t s e r i a l i n t e r f ace u s e s a s f e w a s 2 p i n s t o c o nn ec t t o t h e h o s t c a n c o nn ec t m u l t i p l e d e v i ce s t o t h e s a m e 2 p i n s w i t h o n e a dd i t i o n a l p i n p e r d e v i ce w o r k s w i t h s t a m p ii ' s s h i f t o u t a n d s h i f t i n c o mm a n d s s y n c h r o n o u s o p e r a t i o n C r ea d r e s u l t s w h e n y o u a r e r ea d y f o r t h e m a dd s 8 - b i t s o f g e n e r a l - pu r p o s e d i g i t a l i / o p i n s 64 b y t e s o f ee p r o m s t o r a g e a d v a n ce d i / o f ea t u r e s ( p w m , c o u n t , p u l s e i / o , e t c . ) e a s y t o u s e t h e p a k iii i s a s t a n d a r d 18 - p i n i c . i n o r d e r t o o p e r a t e i t m u s t h a v e a r e gu l a t e d s upp l y o f 5 v a n d c o nn ec t i o n t o a c l o c k e l e m e n t . t h e s t a m p p a k iii i n c l ud e s a 10 m h z ce r a mi c r e s o n a t o r t h a t y o u ca n u s e t o c l o c k t h e c h i p . o t h e r t h a n t h e p o w e r a n d c l o c k c o nn ec t i o n s , t h e p a k iii r e qu i r e s a t l ea s t t w o w i r e s t o c o nn ec t b e t w ee n y o u r mi c r o c o n t r o ll e r ( t h e h o s t ) a n d i t s e l f . d e p e n d i n g o n t h e h o s t ' s ca p a b ili t i e s a n d y o u r a pp li ca t i o n , y o u m a y w a n t t o u s e m o r e p i n s f o r i / o ( up t o 5 p i n s . sin sout clk reset vss b0 b1 b2 b3 b4 b5 b6 b7 vdd res1 res2 enable/busy busy/mode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 PAK-III
i f y ou n ee d h e l p i f y o u r e qu i r e a ss i s t a n ce w i t h y o u r p ak - iii , p l ea s e f ee l f r ee t o c o n t ac t u s . t h e b e s t w a y t o g e t s upp o r t i s v i a e - m a il ( s t a m p @ a l - w illi a m s . c o m ) . h o w e v e r , y o u m a y a l s o ca ll b e t w ee n 9 a m - 4 p m c e n t r a l t im e a t ( 281 ) 334 - 4341 . y o u ca n a l s o f a x t o ( 281 ) 538 - 2147 . b e s u r e t o c h ec k o u t o u r w e b p a g e f o r upd a t e s a t www . a l - w illi a m s . c o m / a w c / a w ce . h t m . r e g i s t e r i ng y ou r p a k - iii p l ea s e t a k e a m o m e n t t o r e g i s t e r y o u r e - m a il a dd r e ss w i t h a w c . s im p l y s e n d a n e - m a il m e ss a g e t o a s p r e g @ a l - w illi a m s . c o m . a w c w ill n o t m a k e y o u r a dd r e ss a v a il a b l e t o o t h e r c o m p a n i e s , b u t w e m a y p e r i o d i ca ll y s e n d y o u upd a t e d t ec hn i ca l n o t e s . y o u ll a l s o r ece i v e i n f o r m a t i o n a b o u t n e w mi c r o c o n t r o ll e r p r o du c t s a n d s p ec i a l s . p i n c onn ec t i on s p i n n a m e t y p e d e s c r i p t i on 18 b u s y / m od e i n pu t/ o u t pu t t h i s p i n h a s t w o f u n c t i on s . a t s t a r t up , i f t h e p i n i s pu ll e d up b y a r e s i s t o r , t h e p a k 3 u s e s t h i s p i n a s a bu s y i nd i c a t o r . t h e p i n w ill r e a d 0 w h e n t h e p a k 3 i s no t bu s y . h o w e v e r , i f a t s t a r t up t h e p i n i s pu ll e d t o g r o u nd , t h e p a k 3 w ill i nd i c a t e i t s bu s y s t a t u s on t h e e n a b l e / b u s y p i n . 17 e n a b l e / b u s y i n pu t o r o p e n c o ll e c t o r o u t pu t if b u s y / m od e i s pu ll e d h i gh a t s t a r t up , t h e e n a b l e / b u s y p i n i s on l y a n i n pu t . b r i ng i t l o w t o d i s a b l e t h e p a k 3 , o r h i gh t o e n a b l e i t . h o w e v e r , i f b u s y / m od e i s pu ll e d l o w a t s t a r t up , t h i s p i n s e r v e s a s a n o p e n - c o ll e c t o r i / o p i n . if t h e ho s t pu ll s t h e p i n l o w , i t d i s a b l e s t h e p a k 3 . if t h e p a k 3 i s bu s y , i t pu ll s t h e p i n l o w . 3 c l k i n pu t t h e ho s t pu l s e s t h e c l k p i n t o s h i f t d a t a i n o r o u t o f t h e p a k 3 . 1 s i n i n pu t t h e p a k 3 r e a d s d a t a f r o m t h i s p i n . y o u m a y s ho r t s i n a nd s o u t a nd u s e t h e s a m e p i n f o r i n pu t a nd o u t pu t i f t h e ho s t i s c a p a b l e o f t r e a t i ng a s i ng l e p i n a s a n i / o p i n . 2 s o u t o p e n c o ll e c t o r o u t pu t t h e p a k 3 w r i t e s d a t a t o t h e ho s t on t h i s p i n . s i n c e t h e p i n i s o p e n c o ll e c t o r , yo u ' ll n ee d a r e s i s t o r t o 5 v on t h i s p i n . y o u m a y s ho r t s i n a nd s o u t t og e t h e r t o u s e on e p i n f o r i / o 4 r e s e t i n pu t h a r d w a r e r e s e t s t h e p a k 3 w h e n l o w . 5 v ss p o w e r g r o u nd 14 v dd p o w e r + 5 v 15 r e s 1 c l o c k c onn e c t s t o r e s on a t o r 16 r e s 2 c l o c k c onn e c t s t o r e s on a t o r 6 - 13 b 0 - b 7 i / o g e n e r a l pu r p o s e i / o
s o ft w a r e c o mm a nd s b it p a tt e r n n a m e a r gu m e n t r e t u r n s d e s c r i p ti o n 0001 bbb 0 i n p u t n o n e 0 s e t s p i n t o i n pu t 0001 bbb 1 o u t p u t n o n e 0 s e t s p i n t o o u t pu t 0010 bbb 0 l o w n o n e 0 s e t s p i n t o o u t pu t a n d s e t s t a t e l o w 0010 bbb 1 h i g h n o n e 0 s e t s p i n t o o u t pu t a n d s e t s t a t e h i g h 0011 bbb 0 b i t r e ad n o n e 0 o r 1 r e a d s i n pu t p i n 0100 bbb 0 r e v e r s e n o n e 0 s e t s i n pu t t o o u t pu t a n d v i ce v e r s a 0100 bbb 1 t ogg l e n o n e 0 t o gg l e s o u t pu t p i n 0101 bbb 0 p u l s o u t p l e n 0 p u l s e s o u t ( du r a ti o n i s a 16 - b it w o r d s p ec i f y i n g 4u s u n it s ) 0110 bbb 0 p u l s i n 0 n o n e 0 , p l e n m e a s u r e s l o w pu l s e i n 4u s u n it s ( p l e n i s 16 - b it s ) 0110 bbb 1 p u l s i n 1 n o n e 0 , p l e n s a m e a s p u l s i n 0 b u t m e a s u r e s a h i g h pu l s e 0111 bbb 0 s h i f t i n m b i t s 0 , b y t s h i f t d a t a i n u s i n g p i n a s d a t a a n d t h e n e x t p i n a s c l o c k ; m b i t s s p ec i f i e s a m o d e a n d b it l e n g t h . 0111 bbb 1 s h i f t o u t m b i t s , b y t 0 s h i f t d a t a o u t u s i n g p i n a s d a t a a n d t h e n e x t p i n a s c l o c k ; m b i t s s p ec i f i e s a m o d e a n d b it l e n g t h 1000 bbb 0 c o u n t p e r 0 , c t c o u n t s t r a n s iti o n s o n p i n f o r s p ec i f i e d p e r i o d ( 16 - b it w o r d i n 8u s u n it s ) . r e t u r n s 16 - b it c o u n t 1001 bbb 0 p w m d u t y , p e r 0 p w m o n p i n w it h s p ec i f i e d du t y c y c l e ( b y t e ) a n d p e r i o d ( 2 m s p e r u n it; 16 - b it s ) 1010 bbb 0 r c t i m e 0 n o n e 0 , p l e n m e a s u r e r c c h a r g e i n 4u s u n it s ( 16 - b it s ) 1010 bbb 1 r c t i m e 1 n o n e 0 , p l e n m e a s u r e r c d i s c h a r g e i n 4u s u n it s ( 16 - b it s ) 10110000 r e ad add r 0 , b y t r e a d ee p r o m ( a dd r e ss i s a b y t e f r o m 0 - 63 ) 10110010 w r i te add r , b y t 0 w r it e s ee p r o m ( a dd r e ss i s a b y t e f r o m 0 - 63 ) 10110011 g et r and n o n e 0 , b y t g e t s qu a s i - r a n d o m b y t e 11000000 p u ll o ff n o n e 0 t u r n s o ff pu ll up r e s i s t o r s 11000001 p u ll on n o n e 0 t u r n s o n pu ll up r e s i s t o r s 1101 bbb 0 f r e qo u t f r e q , p e r i od 0 m a k e s s i n g l e t o n e . f r e qu e n c y i s 16 - b it w o r d ( h e r t z ) , p e r i o d i s 16 - b it w o r d ( milli s ec o n d s ) 1101 bbb 1 f r e qo u t 2 f r e q , f r e q , p e r i od 0 l i k e f r e qo u t , b u t m a k e s t w o t o n e s 10110110 c h e c k n o n e $31 c o mm u n i c a ti o n s / v e r s i o n c h ec k n o t e s a n d k e y : bbb = b it n u m b e r ( 0 - 7 ) c o rr e s p o n d i n g t o b 0 t o b 7 p l e n = 16 - b it w o r d s p ec i f y i n g pu l s e l e n g t h i n 4u s u n it s m b i t s = 8 - b it v a l u e . t o p 4 b it s s p ec i f y m o d e ( s ee r e f e r e n ce ) ; bo tt o m 4 b it s i n d i c a t e b it l e n g t h ( 1 - 8 ) b y t = b y t e v a l u e p e r = 16 - b it p e r i o d i n 8u s u n it s d u t y = b y t e i n d i c a ti n g du t y c y c l e i n 1 / 255 u n it s add r = ee p r o m a dd r e ss ( b y t e ) f r o m 0 t o 63 f r e q = f r e qu e n c y ( 16 - b it s ) i n h e r t z p e r i od = d u r a ti o n ( 16 - b it s ) i n milli s ec o n d s
i/o c on s i d e r a t i on s e ac h i / o p i n o n t h e p a k iii ca n s i n k 25 m a o r s o u r ce 20 m a s u b j ec t t o a t o t a l limi t o f 150 m a t o t a l s i n k a n d 100 m a t o t a l s o u r ce . i n pu t s c o n s i d e r v o l t a g e s b e l o w . 8 v a s a 0 a n d v o l t a g e s g r ea t e r t h a n 2 . 4 v a s a 1 . o u t pu t s w ill b e l e ss t h a n . 6 v o r g r ea t e r t h a n 4 . 3 v ( f o r a 1 o r a 0 , r e s p ec t i v e l y ) . r ese tt i ng t h e r e a r e s e v e r a l w a y s y o u ca n r e s e t t h e p a k iii . i t i s a g oo d i d ea t o r e s e t t h e u n i t b e f o r e u s i n g i t , o r a n y t im e t h a t y o u w a n t t o m a k e s u r e i t i s i n a k n o w n s t a t e . t h i s i s e s p ec i a ll y t r u e w h e n u s i n g t h e s t a m p . e ac h t im e t h e s t a m p r e s e t s o r w a k e s up f r o m s l ee p , t h e i / o p i n s b r i e f l y b ec o m e i n pu t s . t h i s ca n f oo l t h e p a k iii i n t o s t a r t i n g a d a t a t r a n s f e r . a l w a y s r e s e t t h e p a k iii f i r s t . t h e b e s t w a y t o r e s e t t h e p a k iii ( w h e n u s i n g o n l y o n e u n i t ) i s t o s e n d a s p ec i a l r e s e t s e qu e n ce o v e r t h e c l o c k a n d d a t a li n e s . t h i s h a s t h e a d v a n t a g e t h a t i t d o e s n' t r e qu i r e a n y e x t r a i / o f r o m t h e h o s t . t o s e n d a r e s e t s e qu e n ce , b r i n g t h e d a t a p i n t o 0 a n d r a i s e t h e c l o c k t o a 1 . w h il e t h e c l o c k r e m a i n s i n t h e 1 s t a t e , b r i n g t h e d a t a p i n h i g h . t h i s w ill i n d i ca t e t o t h e p a k iii t h a t y o u w i s h t o r e s e t . w h e n t h e c l o c k r e t u r n s t o a ze r o s t a t e , t h e p a k iii w ill r e s e t . t h e r e s e t d o e s n' t c h a n g e a n y r e g i s t e r v a l u e s o r p o r t p i n s , b u t i t d o e s r e s e t c o mm u n i ca t i o n s t o a k n o w n s t a t e . y o u ca n g e t t h e s a m e r e s u l t b y b r i n g i n g t h e e n a b l e p i n l o w a n d t h e n r e t u r n i n g i t t o h i g h t o e n a b l e t h e p a k iii . t h i s i s u s e f u l i f y o u a r e c o nn ec t i n g m o r e t h a n o n e p a k t o t h e s a m e d a t a a n d c l o c k li n e s . y o u ' ll n ee d t o u s e t h e e n a b l e p i n t h e n a n y w a y , a n d i t m a k e s s u r e t h a t t h e s e l ec t e d p a k i s a l w a y s i n a k n o w n s t a t e . d o n' t u s e t h e d a t a li n e r e s e t w h e n u s i n g m u l t i p l e p a k s o n t h e s a m e c l o c k a n d d a t a li n e s . f i n a ll y , y o u ca n f o r ce a h a r d w a r e r e s e t b y b r i n g i n g t h e r e s e t p i n l o w . t h i s mi g h t b e u s e f u l i f y o u r c i r c u i t g e n e r a t e s a h a r d w a r e r e s e t s i g n a l b a s e d o n a b r o w n - o u t d e t ec t o r o r o t h e r m a s t e r r e s e t c i r c u i t . n o r m a ll y , y o u ' ll j u s t c o nn ec t t h e r e s e t p i n t o t h e + 5 v s upp l y a n d a ll o w t h e p a k iii t o r e s e t i t s e l f o n p o w e r up . i f y o u d o w a n t t o d r i v e t h i s p i n , m a k e s u r e t h a t i t i s a t 5 v f o r n o r m a l o p e r a t i o n . y o u ca n u s e a r e s e t s w i t c h o r o t h e r d e v i ce i f y o u pu ll up t h e r e s e t p i n w i t h a 10 k - 22 k r e s i s t o r . t h i s i s t h e o n l y r e s e t t h a t w ill i n t e rr up t a n o p e r a t i o n i n p r o g r e ss . c o mm un i ca t i on s t h e r e a r e s e v e r a l s c h e m e s y o u ca n u s e t o c o mm u n i ca t e w i t h t h e p a k iii . a ll o f t h e m r e v o l v e a r o u n d a s y n c h r o n o u s p r o t o c o l i nv o l v i n g a c l o c k p i n a n d 1 o r 2 d a t a p i n s . d a t a i s s h i f t e d m o s t s i g n i f i ca n t b i t f i r s t , a n d s a m p l e s a t t h e r i s i n g e dg e o f t h e c l o c k . t h e p a k iii e x p o s e s a s e p a r a t e i n pu t ( s i n ) a n d o u t pu t ( s ou t ) p i n s f o r h o s t s t h a t ca n' t ea s il y h a n d l e b i - d i r ec t i o n a l i / o li n e s . h o w e v e r , f o r h o s t s li k e t h e s t a m p o r p i c , i t i s a s im p l e m a tt e r t o t i e t h e s e li n e s t o g e t h e r s i n ce s ou t i s o p e n c o ll ec t o r . t h e r e f o r e , t h e mi n im u m n u m b e r o f li n e s y o u n ee d a r e t w o . a n o u t pu t f o r t h e c l o c k a n d a n i / o li n e t o c o nn ec t t o s i n a n d s ou t . y o u ' ll c o nn ec t t h e e n a b l e / b u s y p i n t o + 5 v a n d u s e a pu ll up r e s i s t o r t o 5 v o n t h e b u s y / m o d e p i n . t h i s a ll o w s y o u t o r e s e t t h e d e v i ce
a n d c o mm u n i ca t e w i t h i t . t h e o n l y p r o b l e m i s , y o u w ill h a v e t o m a k e s u r e n o t t o a s k t h e d e v i ce f o r d a t a w h il e i t i s p r o ce ss i n g . m o s t o p e r a t i o n s a r e qu i t e f a s t , b u t s o m e o p e r a t i o n s ( g e n e r a t i n g a t o n e , o r w r i t i n g t o ee p r o m , f o r e x a m p l e ) ca n t a k e a l o n g t im e d e p e n d i n g o n w h a t p a r a m e t e r s y o u s p ec i f y . i f y o u n ee d t o d i s a b l e a n d e n a b l e t h e d e v i ce , y o u ' ll w a n t t o d r i v e t h e e n a b l e / b u s y p i n . u s i n g t h i s p i n a ll o w s y o u t o s h a r e t h e s i n , s ou t , a n d c l k li n e s w i t h o t h e r d e v i ce s t h a t u s e a s imil a r p r o t o c o l . s o t o c o nn ec t 5 p a k s y o u ' d o n l y n ee d 7 i / o li n e s ( 5 e n a b l e s , 1 s i n / s ou t , a n d 1 c l k li n e ) . y o u d r i v e t h e e n a b l e / b u s y p i n l o w t o d i s a b l e t h e d e v i ce . i f y o u d o n' t p l a n t o u s e t h i s ca p a b ili t y , j u s t pu ll t h e p i n h i g h w i t h a pu ll up r e s i s t o r . i f y o u a r e u s i n g t h e b u s y / m o d e i n pu t ( s ee b e l o w ) y o u ca n s t ill u s e a pu ll up r e s i s t o r , o r j u s t t i e t h e e n a b l e / b u s y p i n d i r ec t l y t o + 5 v . i f y o u g r o u n d t h e b u s y / m o d e i n pu t a t s t a r t up , t h e d e v i ce w ill a l s o u s e t h e e n a b l e / b u s y p i n t o t e ll y o u w h e n i t i s u n a v a il a b l e . i t d o e s t h i s b y d r i v i n g t h e li n e l o w w h e n i t i s n o t r ea d y . t h a t m ea n s t h e h o s t m u s t d r i v e t h e p i n w i t h a n o p e n c o ll ec t o r o u t pu t i f i t w a n t s t o d i s a b l e t h e d e v i ce . i f y o u d o n' t n ee d t o d i s a b l e t h e d e v i ce , y o u ca n j u s t c o nn ec t t h e p i n t o a pu ll up r e s i s t o r a n d c o nn ec t t h e e n a b l e / b u s y p i n t o a n i n pu t o n t h e h o s t . i f y o u w a n t t o u s e a n o r m a l o u t pu t t o d r i v e t h e e n a b l e / b u s y p i n , b u t y o u s t ill w a n t a b u s y i n d i ca t i o n , y o u ca n c o nn ec t t h e b u s y / m o d e p i n t o 5 v t h r o ug h a pu ll up r e s i s t o r . t h e n t h e p a k iii w ill u s e t h e b u s y / m o d e p i n t o s i g n i f y i t i s b u s y ( t h e p i n i s h i g h w h e n b u s y ) . i n t h i s ca s e , t h e e n a b l e / b u s y p i n i s a l w a y s a n i n pu t a n d y o u ca n d r i v e i t n o r m a ll y . o n e t h i n g t o n o t e a b o u t t h e s t a t u s r e t u r n s : a ll o f t h e c o mm a n d s w ill r e t u r n ze r o s i n t h e t o p b i t o f t h e r e s p o n s e . y o u ca n u s e t h i s a s a f o r m o f b u s y i n d i ca t i o n i f y o u a r e u n w illi n g t o u s e a n y o t h e r p i n s . s im p l y r ea d t h e d a t a p i n u n t il i t i s ze r o . t h i s i n d i ca t e s t h a t t h e d e v i ce i s s e n d i n g t h e r e s p o n s e . t h e r e a dx a n d r i o c o mm a n d s d o n o t f o ll o w t h i s c o nv e n t i o n , b u t t h e y t a k e v e r y li tt l e t im e t o e x ec u t e a n y w a y ( l e ss t h a n 4 u s ) . t o s u mm a r i ze , h e r e a r e t h e w a y s y o u ca n s y n c h r o n i ze w i t h t h e p a k iii : 1 . m o n i t o r t h e e n a b l e / b u s y li n e w h il e b u s y / m o d e i s g r o u n d e d . i f y o u b r i n g e n a b l e / b u s y l o w i t i n d i ca t e s t h a t t h e p a k iii i s d i s a b l e d . i f t h e p a k iii b r i n g s t h e p i n l o w , i t m ea n s i t i s e n g a g e d i n o p e r a t i o n s . 2 . p l ace a pu ll up r e s i s t o r o n t h e b u s y / m o d e p i n . t h i s w ill ca u s e t h e b u s y / m o d e p i n t o b e h i g h w h e n t h e p a k iii i s b u s y . 3 . w a i t u n t il t h e d a t a p i n g o e s l o w b e f o r e r ea d i n g r e s p o n s e s . c o mm a nd r e f e r e n ce b i t r e ad r ea d s t h e l o g i ca l s t a t e o f t h e s p ec i f i e d p i n ( 1 o r 0 ) . t h i s c o mm a n d d o e s n o t a u t o m a t i ca ll y f o r ce t h e p i n i n t o t h e i n pu t s t a t e . r e t u r n s a 0 o r 1 b y t e .
ch e ck c o mm u n i ca t i o n s c h ec k a n d v e r s i o n i d e n t i f y . a l w a y s r e t u r n s $31 ( $3 f o r t h i s p ak , 1 f o r v e r s i o n n u m b e r) . c o un t c o u n t r e t u r n s t h e n u m b e r o f t r a n s i t i o n s o n t h e s p ec i f i e d p i n du r i n g t h e i n t e r v a l y o u a s k f o r . s e n d t h e p e r i o d ( 16 - b i t s ) i n 8u s u n i t s . t h e p ak - iii w ill r e t u r n a ze r o a n d t h e 16 - b i t c o u n t . f r e qo u t t h i s c o mm a n d e mi t s a t o n e f o r a s p ec i f i e d p e r i o d o n a p a r t i c u l a r p i n . y o u ' ll w a n t t o f il t e r t h e o u t pu t w i t h a n rc n e t w o r k t o f il t e r t h e h i g h - f r e qu e n c y n o i s e g e n e r a t e d . s e n d t h e f r e qu e n c y i n h e r t z ( t w o b y t e s ) a n d t h e du r a t i o n i n milli s ec o n d s ( a l s o t w o b y t e s ) . t h e p ak - iii r e t u r n s 0 . f r e qo u t 2 t h i s c o mm a n d e mi t s t w o t o n e s f o r a s p ec i f i e d p e r i o d o n a p a r t i c u l a r p i n . y o u ' ll w a n t t o f il t e r t h e o u t pu t w i t h a n rc n e t w o r k t o f il t e r t h e h i g h - f r e qu e n c y n o i s e g e n e r a t e d . s e n d t h e f i r s t f r e qu e n c y i n h e r t z ( t w o b y t e s ) , t h e s ec o n d f r e qu e n c y i n h e r t z ( t w o b y t e s ) a n d t h e du r a t i o n i n milli s ec o n d s ( a l s o t w o b y t e s ) . t h e p ak - iii r e t u r n s 0 . g e t rand y o u ca n u s e t h i s c o mm a n d t o r ea d a n u m b e r t h a t i s s u i t a b l e f o r s e e d i n g a r a n d o m n u m b e r g e n e r a t o r . t h i s n u m b e r i s ac t u a ll y a f r ee - r u nn i n g c l o c k i n s i d e t h e p ak - iii . t h e p ak - iii w ill r e t u r n a ze r o a n d t h e qu a s i - r a n d o m b y t e . h i g h f o r ce s t h e s p ec i f i e d p i n t o b e a n o u t pu t a n d o u t pu t s a 1 o n t h a t p i n . a l w a y s r e t u r n s 0 . i n p u t c o nv e r t s t h e p i n n u m b e r t o a n i n pu t . a l w a y s r e t u r n s ze r o . l o w f o r ce s t h e s p ec i f i e d p i n t o b e a n o u t pu t a n d o u t pu t s a 0 o n t h a t p i n . a l w a y s r e t u r n s 0 . o u t p u t c h a n g e s t h e s p ec i f i e d p i n t o a n o u t pu t . a l w a y s r e t u r n s 0 . p u ll o n / p u ll o ff t h e s e c o mm a n d s e n a b l e a n d d i s a b l e t h e w ea k pu ll up r e s i s t o r s ( a b o u t 20 k ) o n t h e 8 i / o p o r t s . t h e d e f a u l t i s d i s a b l e d . t h e r e t u r n v a l u e i s a l w a y s 0 .
p u l s i n 0 , p u l s i n 1 m ea s u r e s l o w a n d h i g h pu l s e s . r e t u r n s t h e l e n g t h , 16 - b i t s , i n 4u s u n i t s . p u l s o u t p u l s e s t h e o u t pu t f o r t h e s p ec i f i e d d u r a t i o n ( a 16 - b i t w o r d s p ec i f y i n g 4u s u n i t s ) . p w m p w m g e n e r a t e s a pu l s e w i d t h t r a i n o f t h e s p ec i f i e d du t y c y c l e ( a b y t e ; 0 i s 0 % , 255 i s 100 %) f o r t h e a ll o t e d t im e ( a 16 - b i t n u m b e r i n 2 m s u n i t s ) . rc t i m e 0 , rc t i m e 1 m ea s u r e s t h e t im e f o r a ca p ac i t o r t o c h a r g e o r d i s c h a r g e . r e t u r n s a ze r o a n d t h e t im e i n 4u s u n i t s ( 16 - b i t s ) . r e ad u s e t h i s c o mm a n d t o r ea d a b y t e f r o m t h e p ak - iii ' s ee p r o m . w r i t e t h e a dd r e ss ( f r o m 0 t o 63 ) a n d t h e r e t u r n v a l u e w ill b e a ze r o b y t e , f o ll o w e d b y t h e d a t a b y t e . p l ea s e n o t e t h a t acce ss i n g ee p r o m i s r e l a t i v e l y s l o w , s o b e s u r e t o w a i t f o r t h e p ak - iii ' s ac k n o w l e dg e m e n t b e f o r e s e n d i n g m o r e c o mm a n d s . r eve r se c h a n g e s a n i n pu t p i n t o a n o u t pu t p i n a n d v i ce v e r s a . a l w a y s r e t u r n s 0 . s h i ft i n s h i f t i n r e qu i r e s a s i n g l e b y t e a r gu m e n t . t h e t o p f o u r b i t s o f t h i s a r gu m e n t s p ec i f y t h e m o d e . t h e b o tt o m f o u r b i t s i s t h e n u m b e r o f b i t s t o s h i f t ( 1 t o 8 ) . t h e m o d e m a y b e a n y o f t h e f o ll o w i n g : 0 C m s b p r e ( m s b f i r s t , s a m p l e b e f o r e c l o c k ) 1 C l s b p r e ( l s b f i r s t , s a m p l e b e f o r e c l o c k ) 2 C m s b p o s t ( m s b f i r s t , s a m p l e a f t e r c l o c k ) 3 C l s b p o s t ( l s b f i r s t , s a m p l e a f t e r c l o c k ) t h e p ak - iii r e t u r n s a 0 a n d t h e b y t e s h i f t e d i n . s h i ft o u t s h i f t o u t r e qu i r e s a b y t e a r gu m e n t f o ll o w e d b y a d a t a b y t e . t h e t o p f o u r b i t s o f t h i s a r gu m e n t s p ec i f y t h e m o d e . t h e b o tt o m f o u r b i t s i s t h e n u m b e r o f b i t s t o s h i f t ( 1 t o 8 ) . t h e m o d e m a y b e a n y o f t h e f o ll o w i n g : 0 C l s b f i r s t ( l s b s h i f t e d o u t f i r s t ) 1 C m s b f i r s t ( m s b s h i f t e d o u t f i r s t t h e p ak - iii r e t u r n s a 0 . t ogg l e f o r ce s t h e s p ec i f i e d p i n t o b e a n o u t pu t a n d t h e n r e v e r s e s i t s s t a t e ( t h a t i s m a k e s a 1 a 0 a n d a 0 a 1 ) . a l w a y s r e t u r n s 0 .
w r i t e t h i s c o mm a n d w r i t e s a b y t e t o t h e p ak - iii ' s ee p r o m . d a t a s t o r e d h e r e w ill r e m a i n i n d e f i n i t e l y , e v e n s u r v i v i n g p o w e r l o ss . s e n d a n a dd r e ss b y t e ( f r o m 0 t o 63 ) a n d t h e d a t a b y t e . t h e p ak - iii w ill r e t u r n a 0 . p l ea s e n o t e t h a t acce ss i n g ee p r o m i s r e l a t i v e l y s l o w , s o b e s u r e t o w a i t f o r t h e p ak - iii ' s ac k n o w l e dg e m e n t b e f o r e s e n d i n g m o r e c o mm a n d s . a l s o k ee p i n mi n d t h a t t h e r e i s a m a x im u m n u m b e r o f w r i t e c y c l e s t h e ee p r o m ca n h a n d l e . o n ce y o u w r i t e t o a ce ll a ce r t a i n n u m b e r o f t im e s ( b e t w ee n 1 milli o n a n d 10 milli o n w r i t e s ) i t w ill f a il . t h i s i s t y p i ca l o f a ll ee p r o m . t y p i ca l c i r c u i t s a nd s o ft w a r e c o nn ec t i n g t h e p a k - iii t o i t s e x t e r n a l c o m p o n e n t s i s s im p l e . s upp l y 5 v t o v dd a n d g r o u n d t h e v ss p i n . c o nn ec t t h e t w o o u t e r p i n s o f t h e ce r a mi c r e s o n a t o r t o t h e r e s 1 a n d r e s 2 p i n s ( t h e o r d e r d o e s n o t m a tt e r) . g r o u n d t h e ce n t e r p i n o f t h e r e s o n a t o r . c o nn ec t t h e r e s et p i n t o 5 v . f o r t h e s im p l e s t m o d e o f o p e r a t i o n c o nn ec t t h e e n a b l e / b u s y p i n t o 5 v a n d t h e b u s y / m od e p i n t o 5 v t h r o ug h a pu ll up r e s i s t o r ( 10 k - 22 k ) . o f c o u r s e , y o u ' ll a l s o n ee d t o m a k e c o nn ec t i o n s t o t h e h o s t mi c r o p r o ce ss o r . y o u m a y a l s o w a n t t o m a k e d i ff e r e n t c o nn ec t i o n s t o e n a b l e / b u s y a n d b u s y / m od e i f y o u w a n t t o u s e d i ff e r e n t m e t h o d s o f s y n c h r o n i z i n g . 5v 5v 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 busy/mode enable/busy res2 res1 vdd b7 b6 b5 b4 b3 b2 b1 b0 vss reset clk sout sin resonator both resistors: 10 to 22k busy output (optional) data clock connections to host pak e x a m p l e 1 . c o nn ec t i o n s t o s t a m p o r s imil a r h o s t
i f y o u a r e u s i n g t h e b a s i c s t a m p ii o r b a s i c s t a m p ii s x , y o u ' ll h a v e n o p r o b l e m s u s i n g t h e s h i f t i n a n d s h i f t o u t c o mm a n d s . m a n y b a s i c s t a m p - c o m p a t i b l e c o m p il e r s h a v e t h e s e c o mm a n d s t oo . i f y o u d o n' t h a v e acce ss t o t h e s e c o mm a n d s , d o n' t w o rr y . h e r e i s s o m e s im p l e c o d e ( w r i tt e n i n s im p l e p b a s i c ) t h a t s h o w s t h e ac t i o n s y o u h a v e t o t a k e : ' b1 is the byte to shift shiftoutput: output datapin for b7=0 to 7 ' set data pin to 0 or 1 low datapin if (b1 & $80) < > $80 then so0 high datapin so0: b1=b1*2 ' shift byte left high clkpin low clkpin ' could use pulsout next return ' b1 is byte to input byte shiftinput: input datapin b1=0 for b7=0 to 7 b1=b1*2 b1=b1 | in15 high clkpin low clkpin ' could use pulsout next return y o u ' ll f i n d a li b r a r y o f b a s i c s t a m p ii r o u t i n e s t h a t a ll o w y o u t o acce ss t h e p a k iii o n t h e c o m p a n i o n d i s k . h e r e i s a s im p l e p r o g r a m t h a t g e n e r a t e s r a n d o m n u m b e r s w h il e b li n k i n g a n l e d c o nn ec t e d t o t h e p a k iii ' s b 4 p i n a n d s ca nn i n g a b u tt o n o n b 3 : agn: xpin=4 ' toggle pin 4 gosub xtoggle gosub xgetnumber ' get random number & print it debug hex2 xoutvalue,cr xpin=3 ' check switch on pin 3 gosub xread if xoutvalue=1 then nobz ' if swi tch up, no buzz xpin=5 ' switch down: buzz on b5 speaker xa=1000 xb=500 gosub xfreqout nobz: goto agn ' do it all again
f r e qu e n t l y a ske d q u es t i on s q : c a n t h e p ak - iii w o r k w h il e t h e h o s t d o e s o t h e r o p e r a t i o n s ? a : o f c o u r s e ! j u s t s e n d y o u r c o mm a n d s a n d p r o cee d w i t h o u t w a i t i n g f o r t h e r e s p o n s e c o d e . b e s u r e t o r ea d t h e r e s p o n s e b e f o r e s e n d i n g a n o t h e r c o mm a n d ( u n l e ss y o u r e s e t t h e p ak - iii) . q : c a n i r u n t h e p a k iii f r o m a d i ff e r e n t c l o c k s o u r ce ? a : y e s . b u t i t i s n' t a g oo d i d ea b eca u s e m a n y o f t h e c o mm a n d s a r e c l o c k - s e n s i t i v e . q : i s t h e r e a s ec o n d s o u r ce f o r t h e p a k iii ? a : n o . h o w e v e r , i f y o u h a v e a h i g h - v o l u m e a pp li ca t i o n a n d y o u a r e c o n ce r n e d a b o u t a v a il a b ili t y , c o n t ac t a w c a b o u t o b t a i n i n g a li ce n s e t o p r o du ce y o u r o w n p a k iii ' s o r o b t a i n t h e m f r o m t h i r d p a r t i e s . w e ca n a l s o m a k e s o i c a n d h i g h t e m p e r a t u r e v e r s i o n s a v a il a b l e a s a s p ec i a l o r d e r i t e m . q : h o w ca n i g e t m o r e i / o p i n s ? a : l oo k f o r o u r p a k i v , c o mi n g s oo n .
b as i c s t a m p ii l i b r a r y o n t h e e n c l o s e d d i s k y o u ' ll f i n d f u t i l . b s 2 w h i c h c o n t a i n s a s im p l e li b r a r y f o r t h e p ak - i . h e r e a r e t h e ca ll s i n t h a t f il e : c a ll f u n c t i o n n o t e s x c o u n t c o u n t pu l s e s t im e i n x a , r e t u r n i n x o u t v a l u e x ee r ea d r ea d ee p r o m a dd r e ss i n x a , r e t u r n i n x o u t v a l u e x ee w r i t e w r i t e ee p r o m a dd r e ss i n x a , b y t e i n x b x f r e q o u t g e n e r a t e t o n e f r e q = x a , d u r a t i o n = x b xg e t n u m b e r g e t t im e - s e n s i t i v e r a n d o m n u m b e r r e s u l t i n x o u t v a l u e xh i g h s e t p i n h i g h p i n i n x p i n x i n pu t s e t p i n t o i n pu t p i n i n x p i n x l o w s e t p i n l o w p i n i n x p i n xo u t pu t s e t p i n t o o u t pu t p i n i n x p i n x p u l s e i n 0 r ea d l o w pu l s e p i n i n x p i n , r e s u l t i n x o u t v a l u e x p u l s e i n 1 r ea d h i g h pu l s e p i n i n x p i n , r e s u l t i n x o u t v a l u e x p u l s e o u t g e n e r a t e pu l s e p i n i n x p i n , du r a t i o n i n x a x p w m g e n e r a t e p w m p i n i n x p i n , du t y c y c l e i n x a , du r a t i o n i n x b x rc t im e 0 rc t im e l o w p i n i n x p i n , r e t u r n i n x o u t v a l u e x rc t im e 1 rc t im e h i g h p i n i n x p i n , r e t u r n i n x o u t v a l u e x r ea d r ea d i n pu t p i n i n x p i n , r e s u l t i n x o u t v a l u e x r e s e t r e s e t t h e c o p r o ce ss o r a l w a y s ca ll f i r s t x s h i f t i n s h i f t d a t a i n ( m s b f i r s t ) p i n i n x p i n , 8 b i t r e s u l t i n x o u t v a l u e x s h i f t o u t s h i f t d a t a o u t ( m s b f i r s t ) p i n i n x p i n , 8 b i t d a t a i n x a x t o gg l e t o gg l e p i n p i n i n x p i n
s p ec i f i ca t i on s a b s o l u t e m ax i m u m r a t i ng s a m b i e n t t e m p e r a t u r e u n d e r b i a s - 55 c t o + 125 c s t o r a g e t e m p e r a t u r e - 65 c t o + 150 c v o l t a g e o n vdd w i t h r e s p ec t t o v ss - 0 . 3 t o + 7 . 5 v t o t a l p o w e r d i ss i p a t i o n ( 1 ) 800 m w m a x im u m c u rr e n t o u t o f v ss p i n 150 m a m a x im u m c u rr e n t i n t o vdd p i n 100 m a m a x im u m o u t pu t c u rr e n t s u n k b y a n y i / o p i n 25 m a m a x im u m o u t pu t c u rr e n t s o u r ce d b y a n y i / o p i n 20 m a m a x im u m c u rr e n t s u n k b y b 0 - b 7 150 m a m a x im u m c u rr e n t s o u r ce d b y b 0 - b 7 100 m a dc c h a r ac t e r i s t i cs p a r a m e t e r m i n im u m t y p i ca l m a x im u m s upp l y v o l t a g e 4 . 5 v 5 v 5 . 5 v v dd r i s e t im e o n p o w e r up . 05 v / m s - - s upp l y c u rr e n t @ 10 m h z - 5 m a 10 m a


▲Up To Search▲   

 
Price & Availability of PAK-III

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X