spru716 adc

Upload: ankurmalviya

Post on 02-Jun-2018

248 views

Category:

Documents


2 download

TRANSCRIPT

  • 8/10/2019 Spru716 Adc

    1/46

    T M S 3 2 0 x 2 8 0 x , 2 8 0 1 x , 2 8 0 4 x D S P A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C )

    R e f e r e n c e G u i d e

    L i t e r a t u r e N u m b e r : S P R U 7 1 6 B

    N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

  • 8/10/2019 Spru716 Adc

    2/46

    2 S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    3/46

    C o n t e n t s

    P r e f a c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    1 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 11 . 1 F e a t u r e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 21 . 2 A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4

    1 . 2 . 1 S e q u e n t i a l S a m p l i n g M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 51 . 2 . 2 S i m u l t a n e o u s S a m p l i n g M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6

    1 . 3 U n i n t e r r u p t e d A u t o s e q u e n c e d M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 11 . 3 . 1 S e q u e n c e r S t a r t / S t o p M o d e ( S e q u e n c e r S t a r t / S t o p O p e r a t i o n W i t h M u l t i p l e

    T i m e - S e q u e n c e d T r i g g e r s ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 31 . 3 . 2 S i m u l t a n e o u s S a m p l i n g M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 51 . 3 . 3 I n p u t T r i g g e r D e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 51 . 3 . 4 I n t e r r u p t O p e r a t i o n D u r i n g S e q u e n c e d C o n v e r s i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6

    1 . 4 A D C C l o c k P r e s c a l e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 . 4 . 1 A D C - m o d u l e C l o c k a n d S a m p l e R a t e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8

    1 . 5 L o w - p o w e r M o d e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 . 6 P o w e r - u p S e q u e n c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 91 . 7 S e q u e n c e r O v e r r i d e F e a t u r e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 91 . 8 I n t e r n a l / E x t e r n a l R e f e r e n c e V o l t a g e S e l e c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 01 . 9 O f f s e t E r r o r C o r r e c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1

    2 A D C R e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 32 . 1 A D C C o n t r o l R e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 42 . 2 M a x i m u m C o n v e r s i o n C h a n n e l s R e g i s t e r ( A D C M A X C O N V ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 82 . 3 A u t o s e q u e n c e S t a t u s R e g i s t e r ( A D C A S E Q S R ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9

    2 . 4 A D C S t a t u s a n d F l a g R e g i s t e r ( A D C S T ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 02 . 5 A D C R e f e r e n c e S e l e c t R e g i s t e r ( A D C R E F S E L ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 12 . 6 A D C O f f s e t T r i m R e g i s t e r ( A D C O F F T R I M ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 . 7 A D C I n p u t C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 . 8 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r s ( A D C R E S U L T n ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3

    A R e v i s i o n H i s t o r y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 C o n t e n t s 3

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    4/46

    L i s t o f F i g u r e s

    1 - 1 B l o c k D i a g r a m o f t h e A D C M o d u l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 31 - 2 S e q u e n t i a l S a m p l i n g M o d e ( S M O D E = 0 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 51 - 3 S i m u l t a n e o u s S a m p l i n g M o d e ( S M O D E = 1 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 61 - 4 B l o c k D i a g r a m o f A u t o s e q u e n c e d A D C i n C a s c a d e d M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7

    1 - 5 B l o c k D i a g r a m o f A u t o s e q u e n c e d A D C W i t h D u a l S e q u e n c e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 81 - 6 F l o w C h a r t f o r U n i n t e r r u p t e d A u t o s e q u e n c e d M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 31 - 7 E x a m p l e o f e P W M T r i g g e r s t o S t a r t t h e S e q u e n c e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 41 - 8 I n t e r r u p t O p e r a t i o n D u r i n g S e q u e n c e d C o n v e r s i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 71 - 9 A D C C o r e C l o c k a n d S a m p l e - a n d - H o l d ( S / H ) C l o c k . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 - 1 0 C l o c k C h a i n t o t h e A D C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 - 1 1 E x t e r n a l B i a s f o r 2 . 0 4 8 - V E x t e r n a l R e f e r e n c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 01 - 1 2 F l o w C h a r t o f O f f s e t E r r o r C o r r e c t i o n P r o c e s s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 11 - 1 3 I d e a l C o d e D i s t r i b u t i o n o f S a m p l e d 0 - V R e f e r e n c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 22 - 1 A D C C o n t r o l R e g i s t e r 1 ( A D C T R L 1 ) ( A d d r e s s O f f s e t 0 0 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 42 - 2 A D C C o n t r o l R e g i s t e r 2 ( A D C T R L 2 ) ( A d d r e s s O f f s e t 0 1 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 52 - 3 A D C C o n t r o l R e g i s t e r 3 ( A D C T R L 3 ) ( A d d r e s s O f f s e t 1 8 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 72 - 4 M a x i m u m C o n v e r s i o n C h a n n e l s R e g i s t e r ( A D C M A X C O N V ) ( O f f s e t A d d r e s s 0 2 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 82 - 5 A u t o s e q u e n c e S t a t u s R e g i s t e r ( A D C A S E Q S R ) ( A d d r e s s O f f s e t 0 7 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 02 - 6 A D C S t a t u s a n d F l a g R e g i s t e r ( A D C S T ) ( A d d r e s s O f f s e t 1 9 h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 12 - 7 A D C R e f e r e n c e S e l e c t R e g i s t e r ( A D C R E F S E L ) ( A d d r e s s O f f s e t 1 C h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 - 8 A D C O f f s e t T r i m R e g i s t e r ( A D C O F F T R I M ) ( A d d r e s s O f f s e t 1 D h ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 - 9 A D C I n p u t C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r s ( A D C C H S E L S E Q 1 ) ( A d d r e s s O f f s e t 0 3 h ) . . . . . . . . . 4 22 - 1 0 A D C I n p u t C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r s ( A D C C H S E L S E Q 2 ) ( A d d r e s s O f f s e t 0 4 h ) . . . . . . . . . 4 22 - 1 1 A D C I n p u t C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r s ( A D C C H S E L S E Q 3 ) ( A d d r e s s O f f s e t 0 5 h ) . . . . . . . . . 4 32 - 1 2 A D C I n p u t C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r s ( A D C C H S E L S E Q 4 ) ( A d d r e s s O f f s e t 0 6 h ) . . . . . . . . . 4 32 - 1 3 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r s ( A D C R E S U L T n ) - ( A d d r e s s e s 0 x 7 1 0 8 - 0 x 7 1 1 7 ) . . . . . . . . . . . . . . . . . . . . . . 4 42 - 1 4 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r s ( A D C R E S U L T n ) - ( A d d r e s s e s 0 x 0 B 0 0 - 0 x 0 B 0 F ) . . . . . . . . . . . . . . . . . . . . . 4 4

    4 L i s t o f F i g u r e s S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    5/46

    L i s t o f T a b l e s

    1 - 1 A D C R e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 31 - 2 C o m p a r i s o n o f S i n g l e a n d C a s c a d e d O p e r a t i n g M o d e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 91 - 3 V a l u e s f o r A D C C H S E L S E Q n R e g i s t e r s ( M A X _ C O N V 1 S e t t o 6 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 21 - 4 V a l u e s f o r A D C C H S E L S E Q n ( M A X _ C O N V 1 s e t t o 2 ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 5

    1 - 5 V a l u e s A f t e r S e c o n d A u t o c o n v e r s i o n S e s s i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 51 - 6 I n p u t T r i g g e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 51 - 7 C l o c k C h a i n t o t h e A D C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 - 8 P o w e r O p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 92 - 1 A D C C o n t r o l R e g i s t e r 1 ( A D C T R L 1 ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 42 - 2 A D C C o n t r o l R e g i s t e r 2 ( A D C T R L 2 ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 52 - 3 A D C C o n t r o l R e g i s t e r 3 ( A D C T R L 3 ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 72 - 4 M a x i m u m C o n v e r s i o n C h a n n e l s R e g i s t e r ( A D C M A X C O N V ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 92 - 5 B i t S e l e c t i o n s f o r M A X _ C O N V 1 f o r V a r i o u s N u m b e r o f C o n v e r s i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 92 - 6 A u t o s e q u e n c e S t a t u s R e g i s t e r ( A D C A S E Q S R ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 02 - 7 S t a t e o f A c t i v e S e q u e n c e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 02 - 8 A D C S t a t u s a n d F l a g R e g i s t e r ( A D C S T ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 12 - 9 A D C R e f e r e n c e S e l e c t R e g i s t e r ( A D C R E F S E L ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 - 1 0 A D C O f f s e t T r i m R e g i s t e r ( A D C O F F T R I M ) F i e l d D e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 22 - 1 1 C O N V n n B i t V a l u e s a n d t h e A D C I n p u t C h a n n e l s S e l e c t e d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3A - 1 C h a n g e s i n R e v i s i o n B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 L i s t o f T a b l e s 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    6/46

    L i s t o f T a b l e s 6 S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    7/46

    P r e f a c e S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    R e a d T h i s F i r s t

    A b o u t T h i s M a n u a l

    T h i s d o c u m e n t d e s c r i b e s t h e f e a t u r e s a n d o p e r a t i o n o f t h e a n a l o g - t o - d i g i t a l c o n v e r t e r ( A D C ) t h a t i s a v a i l a b l e o n t h e T M S 3 2 0 x 2 8 0 x , 2 8 0 1 x , a n d 2 8 0 4 x d i g i t a l s i g n a l p r o c e s s o r s ( D S P s ) .

    N o t a t i o n a l C o n v e n t i o n s

    T h i s d o c u m e n t u s e s t h e f o l l o w i n g c o n v e n t i o n s .

    T h e d e v i c e n u m b e r T M S 3 2 0 x 2 8 0 x i s o f t e n a b b r e v i a t e d a s 2 8 0 x .

    H e x a d e c i m a l n u m b e r s a r e s h o w n w i t h t h e s u f f i x h . F o r e x a m p l e , t h e f o l l o w i n g n u m b e r i s 4 0 h e x a d e c i m a l ( d e c i m a l 6 4 ) : 4 0 h . S i m i l a r l y , b i n a r y n u m b e r s o f t e n a r e s h o w n w i t h t h e s u f f i x b . F o r

    e x a m p l e , t h e f o l l o w i n g n u m b e r i s t h e d e c i m a l 4 s h o w n i n b i n a r y f o r m : 0 1 0 0 b R e g i s t e r s i n t h i s d o c u m e n t a r e s h o w n i n f i g u r e s a n d d e s c r i b e d i n t a b l e s .

    E a c h r e g i s t e r f i g u r e s h o w s a r e c t a n g l e d i v i d e d i n t o f i e l d s t h a t r e p r e s e n t t h e f i e l d s o f t h e r e g i s t e r .E a c h f i e l d i s l a b e l e d w i t h i t s b i t n a m e , i t s b e g i n n i n g a n d e n d i n g b i t n u m b e r s a b o v e , a n d i t s r e a d / w r i t e p r o p e r t i e s b e l o w . A l e g e n d e x p l a i n s t h e n o t a t i o n u s e d f o r t h e p r o p e r t i e s .

    R e s e r v e d b i t s i n a r e g i s t e r f i g u r e d e s i g n a t e a b i t t h a t c a n n o t b e u s e d f o r a p p l i c a t i o n s .

    I f a s i g n a l i s a c t i v e l o w , i t h a s a n o v e r b a r . F o r e x a m p l e , t h e X R S s i g n a l i s a c t i v e l o w .

    R e l a t e d D o c u m e n t a t i o n F r o m T e x a s I n s t r u m e n t s

    T h e f o l l o w i n g d o c u m e n t s d e s c r i b e t h e 2 8 0 x d e v i c e s a n d r e l a t e d s u p p o r t t o o l s . C o p i e s o f t h e s e d o c u m e n t s a r e a v a i l a b l e o n t h e I n t e r n e t a t w w w . t i . c o m . T i p : E n t e r t h e l i t e r a t u r e n u m b e r i n t h e s e a r c h b o x p r o v i d e d a t w w w . t i . c o m .

    D a t a M a n u a l s

    S P R S 2 3 0 : T M S 3 2 0 F 2 8 0 9 , F 2 8 0 8 , F 2 8 0 6 , F 2 8 0 2 , F 2 8 0 1 , F 2 8 0 1 x U C D 9 5 0 1 , C 2 8 0 2 , C 2 8 0 1 D S P s D a t a M a n u a l c o n t a i n s t h e p i n o u t , s i g n a l d e s c r i p t i o n s , a s w e l l a s e l e c t r i c a l a n d t i m i n g s p e c i f i c a t i o n s f o r t h e F 2 8 0 x d e v i c e s .

    S P R S 3 5 7 : T M S 3 2 0 F 2 8 0 4 4 D i g i t a l S i g n a l P r o c e s s o r D a t a M a n u a l c o n t a i n s t h e p i n o u t , s i g n a l d e s c r i p t i o n s , a s w e l l a s e l e c t r i c a l a n d t i m i n g s p e c i f i c a t i o n s f o r t h e F 2 8 0 4 4 d e v i c e .

    U s e r ' s G u i d e s

    S P R U 0 5 1 : T M S 3 2 0 x 2 8 x x , 2 8 x x x S e r i a l C o m m u n i c a t i o n I n t e r f a c e ( S C I ) R e f e r e n c e G u i d e d e s c r i b e s t h e S C I , w h i c h i s a t w o - w i r e a s y n c h r o n o u s s e r i a l p o r t , c o m m o n l y k n o w n a s a U A R T . T h e S C I m o d u l e s s u p p o r t d i g i t a l c o m m u n i c a t i o n s b e t w e e n t h e C P U a n d o t h e r a s y n c h r o n o u s p e r i p h e r a l s t h a t u s e t h e s t a n d a r d n o n - r e t u r n - t o - z e r o ( N R Z ) f o r m a t .

    S P R U 0 5 9 : T M S 3 2 0 x 2 8 x x , 2 8 x x x S e r i a l P e r i p h e r a l I n t e r f a c e ( S P I ) R e f e r e n c e G u i d e d e s c r i b e s t h e S P I - a h i g h - s p e e d s y n c h r o n o u s s e r i a l i n p u t / o u t p u t ( I / O ) p o r t - t h a t a l l o w s a s e r i a l b i t s t r e a m o f p r o g r a m m e d l e n g t h ( o n e t o s i x t e e n b i t s ) t o b e s h i f t e d i n t o a n d o u t o f t h e d e v i c e a t a p r o g r a m m e d b i t - t r a n s f e r r a t e .

    S P R U 0 7 4 : T M S 3 2 0 x 2 8 x x , 2 8 x x x E n h a n c e d C o n t r o l l e r A r e a N e t w o r k ( e C A N ) R e f e r e n c e G u i d e d e s c r i b e s t h e e C A N t h a t u s e s e s t a b l i s h e d p r o t o c o l t o c o m m u n i c a t e s e r i a l l y w i t h o t h e r c o n t r o l l e r s i n e l e c t r i c a l l y n o i s y e n v i r o n m e n t s .

    S P R U 4 3 0 : T M S 3 2 0 C 2 8 x D S P C P U a n d I n s t r u c t i o n S e t R e f e r e n c e G u i d e d e s c r i b e s t h e c e n t r a l p r o c e s s i n g u n i t ( C P U ) a n d t h e a s s e m b l y l a n g u a g e i n s t r u c t i o n s o f t h e T M S 3 2 0 C 2 8 x f i x e d - p o i n t d i g i t a l s i g n a l p r o c e s s o r s ( D S P s ) . I t a l s o d e s c r i b e s e m u l a t i o n f e a t u r e s a v a i l a b l e o n t h e s e D S P s .

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 R e a d T h i s F i r s t 7

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www-s.ti.com/sc/techlit/spru051http://www-s.ti.com/sc/techlit/sprs357http://www-s.ti.com/sc/techlit/sprs230http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716Bhttp://www-s.ti.com/sc/techlit/spru430http://www-s.ti.com/sc/techlit/spru074http://www-s.ti.com/sc/techlit/spru059http://www-s.ti.com/sc/techlit/spru051http://www-s.ti.com/sc/techlit/sprs357http://www-s.ti.com/sc/techlit/sprs230http://www-s.ti.com/sc/techlit/sprs230
  • 8/10/2019 Spru716 Adc

    8/46

    www.ti.com

    R e l a t e d D o c u m e n t a t i o n F r o m T e x a s I n s t r u m e n t s

    S P R U 5 1 3 : T M S 3 2 0 C 2 8 x A s s e m b l y L a n g u a g e T o o l s U s e r ' s G u i d e d e s c r i b e s t h e a s s e m b l y l a n g u a g e t o o l s ( a s s e m b l e r a n d o t h e r t o o l s u s e d t o d e v e l o p a s s e m b l y l a n g u a g e c o d e ) , a s s e m b l e r d i r e c t i v e s , m a c r o s , c o m m o n o b j e c t f i l e f o r m a t , a n d s y m b o l i c d e b u g g i n g d i r e c t i v e s f o r t h e T M S 3 2 0 C 2 8 x d e v i c e .

    S P R U 5 1 4 : T M S 3 2 0 C 2 8 x O p t i m i z i n g C C o m p i l e r U s e r ' s G u i d e d e s c r i b e s t h e T M S 3 2 0 C 2 8 x C / C + + c o m p i l e r . T h i s c o m p i l e r a c c e p t s A N S I s t a n d a r d C / C + + s o u r c e c o d e a n d p r o d u c e s T M S 3 2 0 D S P a s s e m b l y l a n g u a g e s o u r c e c o d e f o r t h e T M S 3 2 0 C 2 8 x d e v i c e .

    S P R U 5 6 6 : T M S 3 2 0 x 2 8 x x , 2 8 x x x P e r i p h e r a l R e f e r e n c e G u i d e d e s c r i b e s t h e p e r i p h e r a l r e f e r e n c e g u i d e s o f t h e 2 8 x d i g i t a l s i g n a l p r o c e s s o r s ( D S P s ) .

    S P R U 6 0 8 : T h e T M S 3 2 0 C 2 8 x I n s t r u c t i o n S e t S i m u l a t o r T e c h n i c a l O v e r v i e w d e s c r i b e s t h e s i m u l a t o r , a v a i l a b l e w i t h i n t h e C o d e C o m p o s e r S t u d i o f o r T M S 3 2 0 C 2 0 0 0 I D E , t h a t s i m u l a t e s t h e i n s t r u c t i o n s e t o f t h e C 2 8 x c o r e .

    S P R U 6 2 5 : T M S 3 2 0 C 2 8 x D S P / B I O S A p p l i c a t i o n P r o g r a m m i n g I n t e r f a c e ( A P I ) R e f e r e n c e G u i d e d e s c r i b e s d e v e l o p m e n t u s i n g D S P / B I O S .

    S P R U 7 1 2 : T M S 3 2 0 x 2 8 x x , 2 8 x x x S y s t e m C o n t r o l a n d I n t e r r u p t s R e f e r e n c e G u i d e d e s c r i b e s t h e v a r i o u s i n t e r r u p t s a n d s y s t e m c o n t r o l f e a t u r e s o f t h e 2 8 0 x d i g i t a l s i g n a l p r o c e s s o r s ( D S P s ) .

    S P R U 7 2 1 : T M S 3 2 0 x 2 8 x x , 2 8 x x x I n t e r - I n t e g r a t e d C i r c u i t ( I 2 C ) R e f e r e n c e G u i d e d e s c r i b e s t h e f e a t u r e s

    a n d o p e r a t i o n o f t h e i n t e r - i n t e g r a t e d c i r c u i t ( I 2 C ) m o d u l e t h a t i s a v a i l a b l e o n t h e T M S 3 2 0 x 2 8 0 x d i g i t a l s i g n a l p r o c e s s o r ( D S P ) .

    S P R U 7 2 2 : T M S 3 2 0 x 2 8 0 x , 2 8 0 1 x , 2 8 0 4 x B o o t R O M R e f e r e n c e G u i d e d e s c r i b e s t h e p u r p o s e a n d f e a t u r e s o f t h e b o o t l o a d e r ( f a c t o r y - p r o g r a m m e d b o o t - l o a d i n g s o f t w a r e ) . I t a l s o d e s c r i b e s o t h e r c o n t e n t s o f t h e d e v i c e o n - c h i p b o o t R O M a n d i d e n t i f i e s w h e r e a l l o f t h e i n f o r m a t i o n i s l o c a t e d w i t h i n t h a t m e m o r y .

    S P R U 7 9 0 : T M S 3 2 0 x 2 8 x x , 2 8 x x x E n h a n c e d Q u a d r a t u r e E n c o d e r P u l s e ( e Q E P ) R e f e r e n c e G u i d e d e s c r i b e s t h e e Q E P m o d u l e , w h i c h i s u s e d f o r i n t e r f a c i n g w i t h a l i n e a r o r r o t a r y i n c r e m e n t a l e n c o d e r t o g e t p o s i t i o n , d i r e c t i o n , a n d s p e e d i n f o r m a t i o n f r o m a r o t a t i n g m a c h i n e i n h i g h p e r f o r m a n c e m o t i o n a n d p o s i t i o n c o n t r o l s y s t e m s . I t i n c l u d e s t h e m o d u l e d e s c r i p t i o n a n d r e g i s t e r s

    S P R U 7 9 1 : T M S 3 2 0 x 2 8 x x , 2 8 x x x E n h a n c e d P u l s e W i d t h M o d u l a t o r ( e P W M ) M o d u l e R e f e r e n c e G u i d e d e s c r i b e s t h e m a i n a r e a s o f t h e e n h a n c e d p u l s e w i d t h m o d u l a t o r t h a t i n c l u d e d i g i t a l m o t o r c o n t r o l , s w i t c h m o d e p o w e r s u p p l y c o n t r o l , U P S ( u n i n t e r r u p t i b l e p o w e r s u p p l i e s ) , a n d o t h e r f o r m s o f p o w e r c o n v e r s i o n

    S P R U 8 0 7 : T M S 3 2 0 x 2 8 x x , 2 8 x x x E n h a n c e d C a p t u r e ( e C A P ) M o d u l e R e f e r e n c e G u i d e d e s c r i b e s t h e e n h a n c e d c a p t u r e m o d u l e . I t i n c l u d e s t h e m o d u l e d e s c r i p t i o n a n d r e g i s t e r s .

    S P R U 9 2 4 : T M S 3 2 0 x 2 8 x x , 2 8 x x x H i g h - R e s o l u t i o n P u l s e W i d t h M o d u l a t o r ( H R P W M ) d e s c r i b e s t h e o p e r a t i o n o f t h e h i g h - r e s o l u t i o n e x t e n s i o n t o t h e p u l s e w i d t h m o d u l a t o r ( H R P W M )

    A p p l i c a t i o n R e p o r t s

    S P R A A 5 8 : T M S 3 2 0 x 2 8 1 x t o T M S 3 2 0 x 2 8 0 x M i g r a t i o n O v e r v i e w d e s c r i b e s d i f f e r e n c e s b e t w e e n t h e T e x a s I n s t r u m e n t s T M S 3 2 0 x 2 8 1 x a n d T M S 3 2 0 x 2 8 0 x D S P s t o a s s i s t i n a p p l i c a t i o n m i g r a t i o n f r o m t h e 2 8 1 x t o t h e 2 8 0 x . W h i l e t h e m a i n f o c u s o f t h i s d o c u m e n t i s m i g r a t i o n f r o m 2 8 1 x t o 2 8 0 x , u s e r s c o n s i d e r i n g m i g r a t i n g i n t h e r e v e r s e d i r e c t i o n ( 2 8 0 x t o 2 8 1 x ) w i l l a l s o f i n d t h i s d o c u m e n t u s e f u l .

    S P R A 5 5 0 : 3 . 3 V D S P f o r D i g i t a l M o t o r C o n t r o l d e s c r i b e s a s c e n a r i o o f a 3 . 3 - V - o n l y m o t o r c o n t r o l l e r i n d i c a t i n g t h a t f o r m o s t a p p l i c a t i o n s , n o s i g n i f i c a n t i s s u e o f i n t e r f a c i n g b e t w e e n 3 . 3 V a n d 5 V e x i s t s . O n - c h i p 3 . 3 - V a n a l o g - t o - d i g i t a l c o n v e r t e r ( A D C ) v e r s u s 5 - V A D C i s a l s o d i s c u s s e d . G u i d e l i n e s f o r c o m p o n e n t l a y o u t a n d p r i n t e d c i r c u i t b o a r d ( P C B ) d e s i g n t h a t c a n r e d u c e s y s t e m n o i s e a n d E M I e f f e c t s a r e s u m m a r i z e d .

    S P R A 8 2 0 : O n l i n e S t a c k O v e r f l o w D e t e c t i o n o n t h e T M S 3 2 0 C 2 8 x D S P p r e s e n t s t h e m e t h o d o l o g y f o r o n l i n e s t a c k o v e r f l o w d e t e c t i o n o n t h e T M S 3 2 0 C 2 8 x D S P . C - s o u r c e c o d e i s p r o v i d e d t h a t c o n t a i n s f u n c t i o n s f o r i m p l e m e n t i n g t h e o v e r f l o w d e t e c t i o n o n b o t h D S P / B I O S a n d n o n - D S P / B I O S a p p l i c a t i o n s .

    8 R e a d T h i s F i r s t S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www-s.ti.com/sc/techlit/spra820http://www-s.ti.com/sc/techlit/spra550http://www-s.ti.com/sc/techlit/spraa58http://www-s.ti.com/sc/techlit/spru924http://www-s.ti.com/sc/techlit/spru924http://www-s.ti.com/sc/techlit/spru807http://www-s.ti.com/sc/techlit/spru807http://www-s.ti.com/sc/techlit/spru791http://www-s.ti.com/sc/techlit/spru790http://www-s.ti.com/sc/techlit/spru722http://www-s.ti.com/sc/techlit/spru721http://www-s.ti.com/sc/techlit/spru712http://www-s.ti.com/sc/techlit/spru625http://www-s.ti.com/sc/techlit/spru608http://www-s.ti.com/sc/techlit/spru566http://www-s.ti.com/sc/techlit/spru514http://www-s.ti.com/sc/techlit/spru513http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716Bhttp://www-s.ti.com/sc/techlit/spra820http://www-s.ti.com/sc/techlit/spra550http://www-s.ti.com/sc/techlit/spraa58http://www-s.ti.com/sc/techlit/spru924http://www-s.ti.com/sc/techlit/spru807http://www-s.ti.com/sc/techlit/spru791http://www-s.ti.com/sc/techlit/spru790http://www-s.ti.com/sc/techlit/spru722http://www-s.ti.com/sc/techlit/spru721http://www-s.ti.com/sc/techlit/spru712http://www-s.ti.com/sc/techlit/spru625http://www-s.ti.com/sc/techlit/spru608http://www-s.ti.com/sc/techlit/spru566http://www-s.ti.com/sc/techlit/spru514http://www-s.ti.com/sc/techlit/spru513
  • 8/10/2019 Spru716 Adc

    9/46

    www.ti.com

    R e l a t e d D o c u m e n t a t i o n F r o m T e x a s I n s t r u m e n t s

    S P R A 8 6 1 : R A M D I S K : A S a m p l e U s e r - D e f i n e d C I / O D r i v e r p r o v i d e s a n e a s y w a y t o u s e t h e s o p h i s t i c a t e d b u f f e r i n g o f t h e h i g h - l e v e l C I O f u n c t i o n s o n a n a r b i t r a r y d e v i c e . T h i s a p p l i c a t i o n r e p o r t p r e s e n t s a s a m p l e i m p l e m e n t a t i o n o f a u s e r - d e f i n e d d e v i c e d r i v e r .

    S P R A 8 7 3 : T h e r m o - E l e c t r i c C o o l e r C o n t r o l U s i n g a T M S 3 2 0 F 2 8 1 2 D S P & D R V 5 9 2 P o w e r A m p l i f i e r p r e s e n t s a t h e r m o e l e c t r i c c o o l e r s y s t e m c o n s i s t i n g o f a T e x a s I n s t r u m e n t s T M S 3 2 0 F 2 8 1 2 d i g i t a l s i g n a l p r o c e s s o r ( D S P ) a n d D R V 5 9 2 p o w e r a m p l i f i e r . T h e D S P i m p l e m e n t s a d i g i t a l

    p r o p o r t i o n a l - i n t e g r a l - d e r i v a t i v e f e e d b a c k c o n t r o l l e r u s i n g a n i n t e g r a t e d 1 2 - b i t a n a l o g - t o - d i g i t a l c o n v e r t e r t o r e a d t h e t h e r m i s t o r , a n d d i r e c t o u t p u t o f p u l s e - w i d t h - m o d u l a t e d w a v e f o r m s t o t h e H - b r i d g e D R V 5 9 2 p o w e r a m p l i f i e r . A c o m p l e t e d e s c r i p t i o n o f t h e e x p e r i m e n t a l s y s t e m , a l o n g w i t h s o f t w a r e a n d s o f t w a r e o p e r a t i n g i n s t r u c t i o n s , i s p r o v i d e d .

    S P R A 8 7 6 : P r o g r a m m i n g E x a m p l e s f o r t h e T M S 3 2 0 F 2 8 1 x e C A N c o n t a i n s s e v e r a l p r o g r a m m i n g e x a m p l e s t o i l l u s t r a t e h o w t h e e C A N m o d u l e i s s e t u p f o r d i f f e r e n t m o d e s o f o p e r a t i o n t o h e l p y o u c o m e u p t o s p e e d q u i c k l y i n p r o g r a m m i n g t h e e C A N . A l l p r o j e c t s a n d C A N a l y z e r c o n f i g u r a t i o n f i l e s a r e i n c l u d e d i n t h e a t t a c h e d S P R A 8 7 6 . z i p f i l e .

    S P R A 9 5 3 : I C P a c k a g e T h e r m a l M e t r i c s d e s c r i b e s t h e t r a d i t i o n a l a n d n e w t h e r m a l m e t r i c s a n d w i l l p u t t h e i r a p p l i c a t i o n i n p e r s p e c t i v e w i t h r e s p e c t t o s y s t e m l e v e l j u n c t i o n t e m p e r a t u r e e s t i m a t i o n .

    S P R A 9 5 8 : R u n n i n g a n A p p l i c a t i o n f r o m I n t e r n a l F l a s h M e m o r y o n t h e T M S 3 2 0 F 2 8 1 x D S P ( R e v . B )

    c o v e r s t h e r e q u i r e m e n t s n e e d e d t o p r o p e r l y c o n f i g u r e a p p l i c a t i o n s o f t w a r e f o r e x e c u t i o n f r o m o n - c h i p f l a s h m e m o r y . R e q u i r e m e n t s f o r b o t h D S P / B I O S a n d n o n - D S P / B I O S p r o j e c t s a r e p r e s e n t e d . E x a m p l e c o d e p r o j e c t s a r e i n c l u d e d .

    S P R A 9 6 3 : R e l i a b i l i t y D a t a f o r T M S 3 2 0 L F 2 4 x a n d T M S 3 2 0 F 2 8 1 x D e v i c e s d e s c r i b e s r e l i a b i l i t y d a t a f o r T M S 3 2 0 L F 2 4 x a n d T M S 3 2 0 F 2 8 1 x d e v i c e s .

    S P R A 9 8 9 : F 2 8 1 0 , F 2 8 1 1 , a n d F 2 8 1 2 A D C C a l i b r a t i o n d e s c r i b e s a m e t h o d f o r i m p r o v i n g t h e a b s o l u t e a c c u r a c y o f t h e 1 2 - b i t a n a l o g - t o - d i g i t a l c o n v e r t e r ( A D C ) f o u n d o n t h e F 2 8 1 0 / F 2 8 1 1 / F 2 8 1 2 d e v i c e s . T h i s a p p l i c a t i o n n o t e i s a c c o m p a n i e d b y a n e x a m p l e p r o g r a m ( A D C c a l i b r a t i o n . z i p ) t h a t e x e c u t e s f r o m R A M o n t h e F 2 8 1 2 e Z d s p .

    S P R A 9 9 1 : S i m u l a t i o n F u l f i l l s i t s P r o m i s e f o r E n h a n c i n g D e b u g a n d A n a l y s i s - A W h i t e P a p e r d e s c r i b e s s i m u l a t i o n e n h a n c e m e n t s t h a t e n a b l e d e v e l o p e r s t o s p e e d u p t h e d e v e l o p m e n t c y c l e b y a l l o w i n g t h e m t o e v a l u a t e s y s t e m a l t e r n a t i v e s m o r e e f f e c t i v e l y .

    T r a d e m a r k s

    T M S 3 2 0 C 2 8 x , C 2 8 x a r e t r a d e m a r k s o f T e x a s I n s t r u m e n t s .

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 R e a d T h i s F i r s t 9

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www-s.ti.com/sc/techlit/spra963http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716Bhttp://www-s.ti.com/sc/techlit/spra991http://www-s.ti.com/sc/techlit/spra989http://www-s.ti.com/sc/techlit/spra963http://www-s.ti.com/sc/techlit/spra958http://www-s.ti.com/sc/techlit/spra953http://www-s.ti.com/sc/techlit/spra876http://www-s.ti.com/sc/techlit/spra873http://www-s.ti.com/sc/techlit/spra861
  • 8/10/2019 Spru716 Adc

    10/46

    www.ti.com

    R e l a t e d D o c u m e n t a t i o n F r o m T e x a s I n s t r u m e n t s

    R e a d T h i s F i r s t 1 0 S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    11/46

    C h a p t e r 1 S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C )

    T h e T M S 3 2 0 x 2 8 0 x A D C m o d u l e i s a 1 2 - b i t p i p e l i n e d a n a l o g - t o - d i g i t a l c o n v e r t e r ( A D C ) . T h e a n a l o g c i r c u i t s o f t h i s c o n v e r t e r , r e f e r r e d t o a s t h e c o r e i n t h i s d o c u m e n t , i n c l u d e t h e f r o n t - e n d a n a l o g m u l t i p l e x e r s ( M U X s ) , s a m p l e - a n d - h o l d ( S / H ) c i r c u i t s , t h e c o n v e r s i o n c o r e , v o l t a g e r e g u l a t o r s , a n d o t h e r a n a l o g s u p p o r t i n g c i r c u i t s . D i g i t a l c i r c u i t s , r e f e r r e d t o a s t h e w r a p p e r i n t h i s d o c u m e n t , i n c l u d e p r o g r a m m a b l e c o n v e r s i o n s e q u e n c e r , r e s u l t r e g i s t e r s , i n t e r f a c e t o a n a l o g c i r c u i t s , i n t e r f a c e t o d e v i c e p e r i p h e r a l b u s , a n d i n t e r f a c e t o o t h e r o n - c h i p m o d u l e s .

    T h i s r e f e r e n c e g u i d e i s a p p l i c a b l e f o r t h e A D C f o u n d o n t h e T M S 3 2 0 x 2 8 0 x f a m i l y o f p r o c e s s o r s . T h i s i n c l u d e s a l l F l a s h - b a s e d , R O M - b a s e d a n d R A M - b a s e d d e v i c e s w i t h i nt h e 2 8 0 x f a m i l y .

    T o p i c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P a g e

    1 . 1 F e a t u r e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 21 . 2 A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n . . . . . . . . . . . . . . . . . . . . . . . . 1 4

    1 . 3 U n i n t e r r u p t e d A u t o s e q u e n c e d M o d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1

    1 . 4 A D C C l o c k P r e s c a l e r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 81 . 5 L o w - p o w e r M o d e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 8

    1 . 6 P o w e r - u p S e q u e n c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 91 . 7 S e q u e n c e r O v e r r i d e F e a t u r e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9

    1 . 8 I n t e r n a l / E x t e r n a l R e f e r e n c e V o l t a g e S e l e c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0

    1 . 9 O f f s e t E r r o r C o r r e c t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) 1 1

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    12/46

    www.ti.com

    1 . 1 F e a t u r e s

    Digital Value 0,

    Digital Value 4096Input Analog Voltage ADCLO

    3

    when input 0 V

    when 0 V < input < 3 V

    when input 3 VDigital Value 4095,

    F e a t u r e s

    T h e A D C m o d u l e h a s 1 6 c h a n n e l s , c o n f i g u r a b l e a s t w o i n d e p e n d e n t 8 - c h a n n e l m o d u l e s t o s e r v i c e t h e e P W M m o d u l e s . T h e t w o i n d e p e n d e n t 8 - c h a n n e l m o d u l e s c a n b e c a s c a d e d t o f o r m a 1 6 - c h a n n e l m o d u l e . A l t h o u g h t h e r e a r e m u l t i p l e i n p u t c h a n n e l s a n d t w o s e q u e n c e r s , t h e r e i s o n l y o n e c o n v e r t e r i n t h e A D C

    m o d u l e . F i g u r e 1 - 1 s h o w s t h e b l o c k d i a g r a m o f t h e 2 8 0 x A D C m o d u l e . T h e t w o 8 - c h a n n e l m o d u l e s c a n a u t o s e q u e n c e a s e r i e s o f c o n v e r s i o n s ; e a c h m o d u l e h a s t h e c h o i c e o f s e l e c t i n g a n y o n e o f t h e r e s p e c t i v e e i g h t c h a n n e l s a v a i l a b l e t h r o u g h a n a n a l o g M U X . I n t h e c a s c a d e d m o d e , t h e a u t o s e q u e n c e r f u n c t i o n s a s a s i n g l e 1 6 - c h a n n e l s e q u e n c e r . O n e a c h s e q u e n c e r , o n c e t h e c o n v e r s i o n i s c o m p l e t e d , t h e s e l e c t e d c h a n n e l v a l u e i s s t o r e d i n i t s r e s p e c t i v e A D C R E S U L T r e g i s t e r . A u t o s e q u e n c i n g a l l o w s t h e s y s t e m t o c o n v e r t t h e s a m e c h a n n e l m u l t i p l e t i m e s , a l l o w i n g t h e u s e r t o p e r f o r m o v e r s a m p l i n g a l g o r i t h m s . T h i s o v e r s a m p l i n g g i v e s i n c r e a s e d r e s o l u t i o n o v e r t r a d i t i o n a l s i n g l e - s a m p l e d c o n v e r s i o n r e s u l t s .

    F u n c t i o n s o f t h e A D C m o d u l e i n c l u d e :

    1 2 - b i t A D C c o r e w i t h b u i l t - i n d u a l s a m p l e - a n d - h o l d ( S / H )

    S i m u l t a n e o u s s a m p l i n g o r s e q u e n t i a l s a m p l i n g m o d e s

    A n a l o g i n p u t : 0 V t o 3 V

    F a s t c o n v e r s i o n t i m e r u n s a t 1 2 . 5 M H z , A D C c l o c k , o r 6 . 2 5 M S P S 1 6 - c h a n n e l , m u l t i p l e x e d i n p u t s

    A u t o s e q u e n c i n g c a p a b i l i t y p r o v i d e s u p t o 1 6 " a u t o c o n v e r s i o n s " i n a s i n g l e s e s s i o n . E a c h c o n v e r s i o n c a n b e p r o g r a m m e d t o s e l e c t a n y 1 o f 1 6 i n p u t c h a n n e l s .

    S e q u e n c e r c a n b e o p e r a t e d a s t w o i n d e p e n d e n t 8 - s t a t e s e q u e n c e r s o r a s o n e l a r g e 1 6 - s t a t e s e q u e n c e r ( i . e . , t w o c a s c a d e d 8 - s t a t e s e q u e n c e r s ) .

    S i x t e e n r e s u l t r e g i s t e r s ( i n d i v i d u a l l y a d d r e s s a b l e ) t o s t o r e c o n v e r s i o n v a l u e s

    T h e d i g i t a l v a l u e o f t h e i n p u t a n a l o g v o l t a g e i s d e r i v e d b y :

    A A l l f r a c t i o n a l v a l u e s a r e t r u n c a t e d .

    M u l t i p l e t r i g g e r s a s s o u r c e s f o r t h e s t a r t - o f - c o n v e r s i o n ( S O C ) s e q u e n c e

    S / W - s o f t w a r e i m m e d i a t e s t a r t

    e P W M 1 - 6

    G P I O X I N T 2

    F l e x i b l e i n t e r r u p t c o n t r o l a l l o w s i n t e r r u p t r e q u e s t o n e v e r y e n d - o f - s e q u e n c e ( E O S ) o r e v e r y o t h e r E O S

    S e q u e n c e r c a n o p e r a t e i n " s t a r t / s t o p " m o d e , a l l o w i n g m u l t i p l e " t i m e - s e q u e n c e d t r i g g e r s " t o s y n c h r o n i z e c o n v e r s i o n s .

    e P W M t r i g g e r s c a n o p e r a t e i n d e p e n d e n t l y i n d u a l - s e q u e n c e r m o d e .

    S a m p l e - a n d - h o l d ( S / H ) a c q u i s i t i o n t i m e w i n d o w h a s s e p a r a t e p r e s c a l e c o n t r o l .

    1 2 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    13/46

    www.ti.com

    Result Registers

    ePWMx SOCB

    S/W

    GPIO/XINT2_

    ADCSOC

    ePWMx SOCA

    S/W

    Sequencer 2Sequencer 1 SOCSOC

    ADC Control Registers

    70B7h

    70B0h

    70AFh

    70A8h

    Result Reg 15

    Result Reg 8

    Result Reg 7

    Result Reg 1

    Result Reg 0

    module

    ADC

    12-Bit

    AnalogMUX

    ADCINA0

    ADCINA7

    ADCINB0

    ADCINB7

    Systemcontrol block

    High-speedprescaler

    HSPCLK

    C28xSYSCLKOUT

    S/H-A

    S/H-B

    ADCENCLK HALT

    F e a t u r e s

    F i g u r e 1 - 1 . B l o c k D i a g r a m o f t h e A D C M o d u l e

    T a b l e 1 - 1 . A D C R e g i s t e r s

    N a m e A d d r e s s ( 1 ) A d d r e s s ( 2 ) S i z e ( x 1 6 ) D e s c r i p t i o n

    A D C T R L 1 0 x 7 1 0 0 1 A D C C o n t r o l R e g i s t e r 1 A D C T R L 2 0 x 7 1 0 1 1 A D C C o n t r o l R e g i s t e r 2

    A D C M A X C O N V 0 x 7 1 0 2 1 A D C M a x i m u m C o n v e r s i o n C h a n n e l s R e g i s t e r

    A D C C H S E L S E Q 1 0 x 7 1 0 3 1 A D C C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r 1

    A D C C H S E L S E Q 2 0 x 7 1 0 4 1 A D C C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r 2

    A D C C H S E L S E Q 3 0 x 7 1 0 5 1 A D C C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r 3

    A D C C H S E L S E Q 4 0 x 7 1 0 6 1 A D C C h a n n e l S e l e c t S e q u e n c i n g C o n t r o l R e g i s t e r 4

    A D C A S E Q S R 0 x 7 1 0 7 1 A D C A u t o - S e q u e n c e S t a t u s R e g i s t e r

    A D C R E S U L T 0 0 x 7 1 0 8 0 x 0 B 0 0 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 0

    A D C R E S U L T 1 0 x 7 1 0 9 0 x 0 B 0 1 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1

    A D C R E S U L T 2 0 x 7 1 0 A 0 x 0 B 0 2 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 2

    A D C R E S U L T 3 0 x 7 1 0 B 0 x 0 B 0 3 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 3

    A D C R E S U L T 4 0 x 7 1 0 C 0 x 0 B 0 4 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 4

    A D C R E S U L T 5 0 x 7 1 0 D 0 x 0 B 0 5 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 5

    A D C R E S U L T 6 0 x 7 1 0 E 0 x 0 B 0 6 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 6

    A D C R E S U L T 7 0 x 7 1 0 F 0 x 0 B 0 7 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 7

    A D C R E S U L T 8 0 x 7 1 1 0 0 x 0 B 0 0 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 8

    A D C R E S U L T 9 0 x 7 1 1 1 0 x 0 B 0 9 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 9

    ( 1 ) T h e r e g i s t e r s i n t h i s c o l u m n a r e P e r i p h e r a l F r a m e 2 r e g i s t e r s . ( 2 ) T h e A D C r e s u l t r e g i s t e r s a r e d u a l m a p p e d i n t h e F 2 8 0 x D S P . L o c a t i o n s i n P e r i p h e r a l F r a m e 2 ( 0 x 7 1 0 8 - 0 x 7 1 1 7 ) a r e 2 w a i t

    s t a t e s a n d l e f t j u s t i f i e d . L o c a t i o n s i n P e r i p h e r a l F r a m e 0 s p a c e ( 0 x 0 B 0 0 - 0 x 0 B 0 F ) a r e 0 w a i t s t a t e s a n d r i g h t j u s t i f i e d . D u r i n g h i g h s p e e d / c o n t i n u o u s c o n v e r s i o n u s e o f t h e A D C , u s e t h e 0 w a i t s t a t e l o c a t i o n s t o a v o i d m i s s i n g A D C c o n v e r s i o n s .

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) 1 3

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    14/46

    www.ti.com

    1 . 2 A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    T a b l e 1 - 1 . A D C R e g i s t e r s ( c o n t i n u e d )

    N a m e A d d r e s s ( 1 ) A d d r e s s ( 2 ) S i z e ( x 1 6 ) D e s c r i p t i o n

    A D C R E S U L T 1 0 0 x 7 1 1 2 0 x 0 B 0 A 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 0

    A D C R E S U L T 1 1 0 x 7 1 1 3 0 x 0 B 0 B 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 1

    A D C R E S U L T 1 2 0 x 7 1 1 4 0 x 0 B 0 C 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 2

    A D C R E S U L T 1 3 0 x 7 1 1 5 0 x 0 B 0 D 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 3

    A D C R E S U L T 1 4 0 x 7 1 1 6 0 x 0 B 0 E 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 4

    A D C R E S U L T 1 5 0 x 7 1 1 7 0 x 0 B 0 F 1 A D C C o n v e r s i o n R e s u l t B u f f e r R e g i s t e r 1 5

    A D C T R L 3 0 x 7 1 1 8 1 A D C C o n t r o l R e g i s t e r 3

    A D C S T 0 x 7 1 1 9 1 A D C S t a t u s R e g i s t e r

    0 x 7 1 1 A R e s e r v e d 2

    0 x 7 1 1 B

    A D C R E F S E L 0 x 7 1 1 C 1 A D C R e f e r e n c e S e l e c t R e g i s t e r

    A D C O F F T R I M 0 x 7 1 1 D 1 A D C O f f s e t T r i m R e g i s t e r

    0 x 7 1 1 E R e s e r v e d 2 A D C S t a t u s R e g i s t e r

    0 x 7 1 1 F

    T o o b t a i n t h e s p e c i f i e d a c c u r a c y o f t h e A D C , p r o p e r b o a r d l a y o u t i s v e r y c r i t i c a l . T o t h e b e s t e x t e n t p o s s i b l e , t r a c e s l e a d i n g t o t h e A D C I N x x p i n s s h o u l d n o t r u n i n c l o s e p r o x i m i t y t o t h e d i g i t a l s i g n a l p a t h s . T h i s i s t o m i n i m i z e s w i t c h i n g n o i s e o n t h e d i g i t a l l i n e s f r o m g e t t i n g c o u p l e d t o t h e A D C i n p u t s . F u r t h e r m o r e , p r o p e r i s o l a t i o n t e c h n i q u e s m u s t b e u s e d t o i s o l a t e t h e A D C m o d u l e p o w e r p i n s f r o m t h e d i g i t a l s u p p l y .

    T h e A D C s e q u e n c e r c o n s i s t s o f t w o i n d e p e n d e n t 8 - s t a t e s e q u e n c e r s ( S E Q 1 a n d S E Q 2 ) t h a t c a n a l s o b e c a s c a d e d t o g e t h e r t o f o r m o n e 1 6 - s t a t e s e q u e n c e r ( S E Q ) . T h e w o r d " s t a t e " r e p r e s e n t s t h e n u m b e r o f a u t o c o n v e r s i o n s t h a t c a n b e p e r f o r m e d w i t h t h e s e q u e n c e r . B l o c k d i a g r a m s o f t h e s i n g l e ( 1 6 - s t a t e , c a s c a d e d ) a n d d u a l ( t w o 8 - s t a t e , s e p a r a t e d ) s e q u e n c e r m o d e s a r e s h o w n i n F i g u r e 1 - 4 a n d F i g u r e 1 - 5 ,r e s p e c t i v e l y .

    I n b o t h c a s e s , t h e A D C h a s t h e a b i l i t y t o a u t o s e q u e n c e a s e r i e s o f c o n v e r s i o n s . T h i s m e a n s t h a t e a c h t i m e t h e A D C r e c e i v e s a s t a r t - o f - c o n v e r s i o n r e q u e s t , i t c a n p e r f o r m m u l t i p l e c o n v e r s i o n s a u t o m a t i c a l l y . F o r e v e r y c o n v e r s i o n , a n y o n e o f t h e a v a i l a b l e 1 6 i n p u t c h a n n e l s c a n b e s e l e c t e d t h r o u g h t h e a n a l o g M U X . A f t e r c o n v e r s i o n , t h e d i g i t a l v a l u e o f t h e s e l e c t e d c h a n n e l i s s t o r e d i n t h e a p p r o p r i a t e r e s u l t r e g i s t e r ( A D C R E S U L T n ) . ( T h e f i r s t r e s u l t i s s t o r e d i n A D C R E S U L T 0 , t h e s e c o n d r e s u l t i n A D C R E S U L T 1 , a n d s o o n ) . I t i s a l s o p o s s i b l e t o s a m p l e t h e s a m e c h a n n e l m u l t i p l e t i m e s , a l l o w i n g t h e u s e r t o p e r f o r m " o v e r - s a m p l i n g " , w h i c h g i v e s i n c r e a s e d r e s o l u t i o n o v e r t r a d i t i o n a l s i n g l e - s a m p l e d c o n v e r s i o n r e s u l t s .

    N o t e : I n t h e s e q u e n t i a l s a m p l i n g d u a l - s e q u e n c e r m o d e , a p e n d i n g S O C r e q u e s t f r o m e i t h e r

    s e q u e n c e r i s t a k e n u p a s s o o n a s t h e s e q u e n c e i n i t i a t e d b y t h e c u r r e n t l y a c t i v e

    s e q u e n c e r i s f i n i s h e d . F o r e x a m p l e , a s s u m e t h a t t h e A / D c o n v e r t e r i s b u s y c a t e r i n g t o

    S E Q 2 w h e n a n S O C r e q u e s t f r o m S E Q 1 o c c u r s . T h e A / D c o n v e r t e r w i l l s t a r t S E Q 1

    i m m e d i a t e l y a f t e r c o m p l e t i n g t h e r e q u e s t i n p r o g r e s s o n S E Q 2 . I f S O C r e q u e s t s a r e

    p e n d i n g f r o m b o t h S E Q 1 a n d S E Q 2 , t h e S O C f o r S E Q 1 h a s p r i o r i t y . F o r e x a m p l e ,

    a s s u m e t h a t t h e A / D c o n v e r t e r i s b u s y c a t e r i n g t o S E Q 1 . D u r i n g t h a t p r o c e s s , S O C

    r e q u e s t s f r o m b o t h S E Q 1 a n d S E Q 2 a r e m a d e . W h e n S E Q 1 c o m p l e t e s i t s a c t i v e

    s e q u e n c e , t h e S O C r e q u e s t f o r S E Q 1 w i l l b e t a k e n u p i m m e d i a t e l y . T h e S O C r e q u e s t f o r

    S E Q 2 w i l l r e m a i n p e n d i n g .

    T h e A D C c a n a l s o o p e r a t e i n s i m u l t a n e o u s s a m p l i n g m o d e o r s e q u e n t i a l s a m p l i n g m o d e . F o r e a c h c o n v e r s i o n ( o r p a i r o f c o n v e r s i o n s i n s i m u l t a n e o u s s a m p l i n g m o d e ) , t h e c u r r e n t C O N V x x b i t f i e l d d e f i n e s t h e p i n ( o r p a i r o f p i n s ) t o b e s a m p l e d a n d c o n v e r t e d . I n s e q u e n t i a l s a m p l i n g m o d e , a l l f o u r b i t s o f C O N V x x d e f i n e t h e i n p u t p i n . T h e M S B d e f i n e s w h i c h s a m p l e - a n d - h o l d b u f f e r t h e i n p u t p i n i s a s s o c i a t e d w i t h , a n d t h e t h r e e L S B s d e f i n e t h e o f f s e t . F o r e x a m p l e , i f C O N V x x c o n t a i n s t h e v a l u e 0 1 0 1 b , A D C I N A 5 i s

    1 4 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    15/46

    www.ti.com

    1 . 2 . 1 S e q u e n t i a l S a m p l i n g M o d e

    Variable-widthacquisition window

    ADC

    Clock

    [C0NV00] [C0NV00]

    S C1

    ADC SOC

    trigger

    C1

    Legend: C1 Duration of time for result register update

    S Acquisition window

    S

    Channel

    Select

    SH Clock

    [C0NV01](A)

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    t h e s e l e c t e d i n p u t p i n . I f i t c o n t a i n s t h e v a l u e 1 0 1 1 b , A D C I N B 3 i s t h e s e l e c t e d i n p u t p i n . I n s i m u l t a n e o u s s a m p l i n g m o d e , t h e M S B o f t h e C O N V x x r e g i s t e r i s d i s c a r d e d . E a c h s a m p l e a n d h o l d b u f f e r s a m p l e s t h e a s s o c i a t e d p i n g i v e n b y t h e o f f s e t p r o v i d e d i n t h e t h r e e L S B s o f t h e C O N V x x r e g i s t e r . F o r i n s t a n c e , i f t h e C O N V x x r e g i s t e r c o n t a i n s t h e v a l u e 0 1 1 0 b , A D C I N A 6 i s s a m p l e d b y S / H - A a n d A D C I N B 6 i s s a m p l e d b y S / H - B . I f t h e v a l u e i s 1 0 0 1 b , A D C I N A 1 i s s a m p l e d b y S / H - A a n d A D C I N B 1 i s s a m p l e d b y S / H - B . T h e v o l t a g e i n S / H - A i s c o n v e r t e d f i r s t , f o l l o w e d b y t h e S / H - B v o l t a g e . T h e r e s u l t o f t h e S / H - A c o n v e r s i o n i s p l a c e d i n t h e c u r r e n t A D C R E S U L T n r e g i s t e r ( A D C R E S U L T 0 f o r S E Q 1 , a s s u m i n g t h e s e q u e n c e r h a s b e e n r e s e t ) . T h e r e s u l t o f t h e S / H - B c o n v e r s i o n i s p l a c e d i n t h e n e x t A D C R E S U L T n r e g i s t e r ( A D C R E S U L T 1 f o r S E Q 1 , a s s u m i n g t h e s e q u e n c e r h a s b e e n r e s e t ) . T h e r e s u l t r e g i s t e r p o i n t e r i s t h e n i n c r e a s e d b y t w o ( t o p o i n t t o A D C R E S U L T 2 f o r S E Q 1 , a s s u m i n g t h e s e q u e n c e r h a d o r i g i n a l l y b e e n r e s e t ) .

    F i g u r e 1 - 2 s h o w s t h e t i m i n g o f s e q u e n t i a l s a m p l i n g m o d e . I n t h i s e x a m p l e , t h e A C Q _ P S b i t s a r e s e t t o 0 0 0 1 b .

    F i g u r e 1 - 2 . S e q u e n t i a l S a m p l i n g M o d e ( S M O D E = 0 )

    A A D C c h a n n e l a d d r e s s c o n t a i n e d i n [ C O N V 0 0 ] 4 - b i t r e g i s t e r ; C O N V 0 0 f o r S E Q 1 a n d C O N V 0 8 f o r S E Q 2 .

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) 1 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    16/46

    www.ti.com

    1 . 2 . 2 S i m u l t a n e o u s S a m p l i n g M o d e

    S C1

    Variable-width

    acquisition window

    Clock

    [CONV00]

    SOC

    Legend: C1 Duration of time for Ax channel result in result register

    C2 Duration of time for Bx channel result in result register

    S Acquisition window

    [CONV00](A)

    C2

    ADC Clock

    ChannelSelect

    SH Clock

    ADC SOCTrigger

    S

    C2

    C1

    [CONV01](A)

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    F i g u r e 1 - 3 d e s c r i b e s t h e t i m i n g o f s i m u l t a n e o u s s a m p l i n g m o d e . I n t h i s e x a m p l e , t h e A C Q _ P S b i t s a r e s e t t o 0 0 0 1 b .

    F i g u r e 1 - 3 . S i m u l t a n e o u s S a m p l i n g M o d e ( S M O D E = 1 )

    A A D C c h a n n e l a d d r e s s c o n t a i n e d i n [ C O N V 0 0 ] 4 - b i t r e g i s t e r ; [ C O N V 0 0 ] m e a n s A 0 / B 0 c h a n n e l s ; [ C O N V 0 1 ] m e a n s

    A 1 / B 1 c h a n n e l s .

    1 6 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    17/46

    www.ti.com

    ADCINA0ADCINA1

    ADCINA7

    MAX_CONV1

    Ch Sel (CONV00)

    Ch Sel (CONV01)

    Ch Sel (CONV03)Ch Sel (CONV02)

    Ch Sel (CONV15)

    State

    pointer

    12-bitanalog-to-digital

    converter

    (ADC)

    4

    SOC EOC

    4

    12

    Analog MUX Result MUX

    Result

    select

    12

    ADCRESULT0

    Autosequencer

    state machine

    Start-of-sequence trigger

    Software

    ePWMx SOCA

    ePWMx SOCB

    External pin

    (GPIO/XINT2_ADCSOC)

    MUX

    select

    Note: Possible values are:

    Channel select = 0 to 15

    ADCMAXCONV = 0 to 15

    ADCRESULT1

    ADCRESULT2

    ADCRESULT15

    MUX

    select

    ADCINB1

    ADCINB7

    MUX

    select

    ADCINB0

    S/H-A

    S/H-B

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    F i g u r e 1 - 4 . B l o c k D i a g r a m o f A u t o s e q u e n c e d A D C i n C a s c a d e d M o d e

    S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5 A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) 1 7

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716Bhttp://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    18/46

    www.ti.com

    MAX_CONV1

    Ch Sel (CONV00)

    Ch Sel (CONV01)

    Ch Sel (CONV03)

    ChSel (CONV02)

    Ch Sel (CONV07)

    State

    pointer

    12-bit A/D

    converter

    EOC

    12

    Result MUX

    Result

    select

    12

    SEQ1

    Software

    ePWMx SOCA

    External pin

    (XINT2_ADCSOC)

    Note: Possible values:Channel select = 0 15MAX CONV1 = 0 7

    SOC1 EOC1

    MUX

    Ch Sel (CONV15)

    Ch Sel (CONV08)

    Ch Sel (CONV09)

    Ch Sel (CONV11)

    Ch Sel (CONV10)

    ePWMx SOCB

    MAX_CONV2

    SOC2 EOC2

    4

    Software

    SEQ2

    Start-of-sequence

    trigger

    Result

    select

    12

    Result MUX

    12

    12

    MAX CONV2 = 0 7

    State

    pointer

    Start-of-sequence

    trigger

    4

    4 4

    SOC

    Sequencer arbiter

    ADCINA0

    ADCINA1

    ADCINA7

    Analog MUX

    MUX

    select

    ADCINB1

    ADCINB7

    MUX

    select

    ADCINB0

    S/H-A

    S/H-B

    ADC start of conversion (SOC) trigger sources

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    F i g u r e 1 - 5 . B l o c k D i a g r a m o f A u t o s e q u e n c e d A D C W i t h D u a l S e q u e n c e r s

    N o t e : T h e r e i s o n l y o n e A D C i n t h e D S P . T h i s c o n v e r t e r i s s h a r e d b y t h e t w o s e q u e n c e r s i n

    d u a l - s e q u e n c e r m o d e .

    T h e s e q u e n c e r o p e r a t i o n f o r b o t h 8 - s t a t e a n d 1 6 - s t a t e m o d e s i s a l m o s t i d e n t i c a l ; t h e f e w d i f f e r e n c e s a r e h i g h l i g h t e d i n T a b l e 1 - 2 .

    A n a l o g - t o - D i g i t a l C o n v e r t e r ( A D C ) 1 8 S P R U 7 1 6 B N o v e m b e r 2 0 0 4 R e v i s e d O c t o b e r 2 0 0 5

    S u b m i t D o c u m e n t a t i o n F e e d b a c k

    http://www.go-dsp.com/forms/techdoc/doc_feedback.htm?litnum=SPRU716B
  • 8/10/2019 Spru716 Adc

    19/46

    www.ti.com

    A u t o c o n v e r s i o n S e q u e n c e r P r i n c i p l e o f O p e r a t i o n

    T a b l e 1 - 2 . C o m p a r i s o n o f S i n g l e a n d C a s c a d e d O p e r a t i n g M o d e s

    S i n g l e 8 - s t a t e s e q u e n c e r # 1 S i n g l e 8 - s t a t e C a s c a d e d 1 6 - s t a t e F e a t u r e ( S E Q 1 ) s e q u e n c e r # 2 ( S E Q 2 ) s e q u e n c e r ( S E Q )

    S t a r t - o f - c o n v e r s i o n ( S O C ) e P W M x S O C A , s o f t w a r e , e P W M x S O C B , s o f t w a r e e P W M x S O C A , e P W M x t r i g g e r s e x t e r n a l p i n S O C B , s o f t w a r e ,

    e x t e r n a l p i n

    M a x i m u m n u m b e r o f 8 8 1 6 a u t o c o n v e r s i o n s ( i . e . , s e q u e n c e l e n g t h )

    A u t o s t o p a t e n d - o f - Y e s Y e s Y e s s e q u e n c e ( E O S )

    A r b i t r a t i o n p r i o r i t y H i g h L o w N o t a p p l i c a b l e

    A D C c o n v e r s i o n r e s u l t r e g i s t e r 0 t o 7 8 t o 1 5 0 t o 1 5 l o c a t i o n s

    A D C C H S E L S E Q n b i t f i e l d C O N V 0 0 t o C O N V 0 7 C O N V 0 8 t o C O N V 1 5 C O N V 0 0 t o C O N V 1 5 a s s i g n m e n t

    F o r c o n v e n i e n c e , t h e s e q u e n c e r s t a t e s w i l l b e s u b s e q u e n t l y r e f e r r e d t o a s :

    F o r S E Q 1 : C O N V 0 0 t o C O N V 0 7

    F o r S E Q 2 : C O N V 0 8 t o C O N V 1 5

    F o r C a s c a d e d S E Q : C O N V 0 0 t o C O N V 1 5

    T h e a n a l o g i n p u t c h a n n e l s e l e c t e d f o r e a c h s e q u e n c e d c o n v e r s i o n i s d e f i n e d b y C O N V x x b i t f i e l d s i n t h e A D C i n p u t c h a n n e l s e l e c t s e q u e n c i n g c o n t r o l r e g i s t e r s ( A D C C H S