Vous êtes sur la page 1sur 38

1

!" #

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

$ %&'
$
!
(, (
$ %&'
. *'(

&
)

! (( (
&
! ((

" ) *& !
- * *'!

& +
*

&
( )( ( ! %
(
' % **
! 0 % '(' ' ) ! ) &

(, (
! (( ( .
** * ( (

( ! ' &'/ *
(

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

$ && ! ' ) . ('1 ) & 2 ' (


3*
" ) *(" , ! ) & ( % ( ! & ! , 4

$5
$

&& &6 (
&*
'(
' &6 (') 1 & *
'
'

'

"

$ ( )!" ) %(!
% ) '! ' )
) ' ( & ( ) ! 7 ! 7 ) (7 3
4 ')
( )!7!
% ) '! ' ) ') . ! 3
$ )!" ) %(( ' &!
% ) '! ' ) 3
+ - + !& !,61 )
*
"
(

. !
4
5 46

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

#"

"

$) . !
1 '!
&(
5 " ('! & ') , 3! & ( - ! ) ) !
) (. 5
! &
$ ) *2 '* "
'(
)1

&

$
$

') & 0 % '


) 3
% ) '! ' ) 0 % '

46!
) 3

(4

%
46

') & ! 7
')
!7

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

'

(
) *' '(' &
!,
! " ! , ') 1 !

) *
+ ('!
)
, 6)
) , 6) .
6 ') .
'
-&
6(
)
" *4 (

. ' ( 3(
' *
'(
! ' ) '( (
' (4

' ')
&
. % &( ( (
'( (
) *
'(
(
' ( ) ! " ) '/ ' )
(( 1 ( ! 7
.*
6 )
. ') .
' ) ' ( 3 + ! &% *') 1

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

/"

0.

$ ' & + 6 ).
' )
) (.
( % ( " ) *(" , ( ! 74
$1 2

06 ) .

$ ( 2
(' % & )

0 6 ).
% (&

' )

) (.
' )

')

*' ! ' )

) & 3 + ! &% *') 1

') ) *' ! ' ) ) &


) (.

')

"

"

'
*' ! ' ) (

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

4&

-" 3 ! ((
') (4 6
%
, 6 #8 . &( ( ! 6 9 7: 8
$ ," ! 3* ' (4 6 ) 1 ' & 1 '! ) )
% )
/
%
, 6 :; 8 . &( ( ! 6 < :; 8 '*& ( 6 % 3 :; 84
$
3* ' (4 6 71 7
=#
%
, 6 > 8 . &( ( ! 6 < > 8
$3 ! ((
') ( * ' (4
/
" '1 " ? (('
% && %
) ! && !
* 2
5
. & 6
& 2 " '1 " " '1 " ? 3'*& 4
* Current loop (drivers) : Opto-couplers for electrical
isolation

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

7"

'(
& 1 '! 6 *'( & " * '
) ( '((' )
@: . !
;##7
5

& (
$ !" *
$ &&'(' )
!" !, .
)* *

8
.
& ' )7

9
) ( '((' ) 7
@ .
6 :;A ** ((6 :;=

! ' ) - !
* ! ' ) '* ) ! 6 ) ( '
') 1 ' 3') ! ( . ! &&'(' ) *
& ) ( ' 47

$ '+ * & ) 1 "


(( 1 (
$ (( 1 & ) 1 " .
" ** ((
$
!' &!"
!
(
')

.
! '
! ' ) 2 ' .

'

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05
-----------------------------------------------------------------------------------------------------------------

:7:: )

! )) ! ' )

& 1

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 10
-----------------------------------------------------------------------------------------------------------------

;
$
)( '
! '
! & ! , (6 (
( ) ! " ) '/ *7
!& !,
) ( '((' ) 7
$
) ( '((' ) 6 *& (
(
' *
!
! ' )
' 4 (
' 3(4 '*& (
$ ! ' )6 2 ' . (
3: 4
(
& " ') %
')
&( . ' '
$ & !,
) (7 '
!7 ' '
%

%& '

&

)
'( 3

') &

%
*

) (' ' ) 2 ' : ; ' '

)! 6
'
@

@
<B
@ B 9 7#

! ' )

@: B

9 #%
%

)
'(

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 11
-----------------------------------------------------------------------------------------------------------------

(
$ )& * $
!& !,
$
) ( '(('
) ') &
$ '
3$ " %1" %

" ) *(" , &') (


) ( '((' )
) - ! ' ) 2 7 7 7 & ! & ! & ! , ( % ) ) ') 1
%*
3*

4 &' ' * ! & ! , & ) !


) *2 '* " 46 & 2
! %( .

"

" (

*(

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 12
-----------------------------------------------------------------------------------------------------------------

!"
$
)( '
)* ! ' %( !& !, 1 )
*
"
$ ) ! & ! , *1 3. &&') 1 4 % ( * . *
% % 3 '(') 1 4 % ( * . * ') %
$ '1 ) & &') (6 *
( ' &!& !, ( & !
C! & ! , !
.
*
&(
% ( *D
$ ' (
) * * . ! & ! , ( 2 && ( *
$ & !, - ( & ! 1 )
*
"
(

(
"

*1

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 13
-----------------------------------------------------------------------------------------------------------------

<
& (

$5
&& & 2 ' ( 6 ((' '&' . ') . ) !
2 ) &') ( !
('1 ) & ')
(' 2 ' ( * - 1 % ) * &') ( & 2 *'( ) !
" %1" %

') 1
" '1 "

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 14
-----------------------------------------------------------------------------------------------------------------

$ " ' &* * ! & 6 (" ' &* ! ) ) ! * .


C('1 ) & 1 % ) * E 2 (% & 1 % ) *D
') . ) ! 7
$

2 '( *
' 6 *% ! *
1 ) '! .' &* '! , % ') ! ( * !
) * *'( ) ! 4

)) !

;#
;>;6 : :> : ;#
F : #A 6 : # G F
H #6 : = 3 & " )
I !,4

%)*
! ' ) .

) ! ) *% ! (
! ' ' & * 3&' ' (

)*
& ! '!

*% ! *
%*

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 15
-----------------------------------------------------------------------------------------------------------------

% "

"

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 16
-----------------------------------------------------------------------------------------------------------------

&

!,& *

$ '1 ) &
) % ' ) 3! % ( * & *') 1 - *'( ) ! 4
$ 5 % &(
) (' ' ) * & * % & % &(') 1 ! % ( . .& ! ' )
3! % ( * '
* )!
'( ! " ( - ("
) (' ' ) 4
$ ) . )!
2 ) ('1 ) & &') (
$ + ) & '! , % 3( '!
1 ) '! & !
1 ) '! 4
$ '.. ) ! ') 1 % ) *
) ' &
$
& 1 !% )

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 17
-----------------------------------------------------------------------------------------------------------------

&% ' ) (
$
$

& 1
/ '* & ("

! % ) & &(
* % &( (

$
!" *
') ' )
$ ( .!% ) &
$ '.. ) ' & ) ( '((' )
$
! ' & ! & (6
" ' &* * 3 1 ') (
'! , % 4
J % ) * * (" ' &* * 3 1 ') (
) * ( '! 4
2 '( * ' 3 1 ') (
1 ) '! 4 2 ' " *'..7 ! '

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 18
-----------------------------------------------------------------------------------------------------------------

% "
'

& - ') +
" (
+

4
) ('

("

*'( ) !

) "

')

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 19
-----------------------------------------------------------------------------------------------------------------

% (

% !"

&

&

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 20
-----------------------------------------------------------------------------------------------------------------

% #,
$

% ) '! ' )
** (( * .
$
!,
! ' *
!" !, *.
** ((7
) ( ' * '. .
) " ) *
$
! &&'(' ) . *
!,

"

04 9

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 21
-----------------------------------------------------------------------------------------------------------------

%%1

04 9

* 2

$ ) & ) * &') , 2 ' " & ! & ! "


!,
+
$ 5 ((' '&' . ! &&'(' ) 6
! ' ) - !
) * *
$ RTS @ *% ') 1
) ( '((' ) ) & 7
$ )
%( *. .
') 1 ) 2 ,
% ') 1 + % .. (
& *') 1 7

'*

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 22
-----------------------------------------------------------------------------------------------------------------

% '1
$
$
$

04 9

'

6
)
(
'

) ! && !
1
&') 1 *'( &') 1 7
(&
! &)
&
) *7

4
! ((

* *

') 7

! &&'(' ) *

! ' )

'* ) !

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 23
-----------------------------------------------------------------------------------------------------------------

%/"
$

04 9

(
(&
! &6 ! &&'(' )
* ! ' ) '* ) ! 7
$ ) = ' .
6 :;A
* :;= ;## ** ((
)( '
( ) *(
* ( ') ' ) ** ((
. && 2 *
*
!, 7
$ ! " ) '( . *
') ' ) 6
- .'+ * & ) 1 " *
') ' ) ! "
!
3 17 4
- ( ) * " & ) 1 " ( ;) * ! "
! 7

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 24
-----------------------------------------------------------------------------------------------------------------

%3

( & ' ) .1

4 9

% ) *E ) '( '( & ' )

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 25
-----------------------------------------------------------------------------------------------------------------

%7
$
$

4
% 6;
&( 6
I ! ' ) . '! , % (
- ) '( '( & ' )
& ! '! & '( & ' )

)) ! ' )
') ( ) (' '

& '
% )

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 26
-----------------------------------------------------------------------------------------------------------------

' ," ! "


$

1 '

4 9
)

% )

?4 & 1 '!

) ( '((' ) 6 K #8 K :#8
! ' ) " (" &*6 K >8

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 27
-----------------------------------------------------------------------------------------------------------------

$ ') 1 & ) * * &') , 2 ' " (" ' &* ! ) ) ! * .


1
'1 ) & 1 % ) * ! ) ) ! *
2 (% & 1 % ) *

'
;#
3 ;>;4
;# ') (
;: ('1 ) &(

F
3
#A 4
F ') (
F ('1 ) &(

H #
3
#G:4
= ') (
= ('1 ) &(

%)*
7
" ) *(7

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 28
-----------------------------------------------------------------------------------------------------------------

' "
3
:
;
>
#
G
A
=
:#
:A
:=
;
;;

;#
;>;4

<"
F
3

#A 4

H #
3
#G:4

'1 ) & 3 % 4
3')
J

>
;
A
=
G
#
:

G
#
=
A

>
:

%)*

+
+

'1 ) & 1 % ) *
! ' * !
+ !& !,
+ !& !,
! &&
!,

:;8
:;8
< :;8
< :;8
< :;8

%
)
%
)

< :;8
)
)
%

') 1 ') *'!

< :;8

% 4

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 29
-----------------------------------------------------------------------------------------------------------------

'!
71 7

&

+ ;>;
K :;8 .
#8 (% & % (') 1
!" 1 %
- $: ) ! 7

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 30
-----------------------------------------------------------------------------------------------------------------

'#," !

"
!' !%'
! ' ) 6 ("
1)*
) ('1 ) & &')
% 6 :#8 L 8 % L #8
&( 6 < :#8 M 8 % M #8
+ 6 N8 % N 9 ;#8
! , ! % ) 4 9 7#
+ 3("
) (' ' ) ' 3 >8 < >84 L O
$ N*8') * N L > 8 P
$ % 6 :#8 L 8') L >8
$ ') 6 > A , Q ') L ;#

&( 6 >8 L 8') L #8

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 31
-----------------------------------------------------------------------------------------------------------------

/"
4 9
)
5
," # .," #3%6
& ) ! * *'..
E& 1
E!

) ' & ('1 ) & 6


('1 ) & (2 ') 1 2 ' " (
(%
)
* ) '( I ! ' )

E1 %)*
)
E + 7 *'( ) ! * !

&

+ &'! ' & ! ) ) ! *


( (2 '" %*

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 32
-----------------------------------------------------------------------------------------------------------------

/ ," # "
$

% 6 G898 % 9 ;8
8') 9 7; 8
) () 7 6 ; 8 9 8 % 9 < ; 8
7; 8 9 8') 9 < 7;
&( 6 < ; 8 9 8 % 9 < G 8
7; 8 9 8')
$ & )! *
- ' '
* )!
R: Q
< R
') < R ') S TQ
$
) ( '((' ) ' 6
9: O .
S#
(
9; ) .
9#
(
$N
)
*
& 1 N9A8
$ 7 . * ' ( @:
$
. ! ' (L :

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 33
-----------------------------------------------------------------------------------------------------------------

2*0

2,0"

4 9," #3%

" ) :* ' E %&'*


&') ,
& ) ! * *'.. ) ( '((' ) 2 ' " L >; ) * ( 3 +
+4
$ % 6 # 8 9 8 % 9 :7# 8
8') 9 7; 8
&( 6 < :7# 8 9 8 % 9 < # 8
8') S < 7;
) () 7 6 :7# 8 9 8 % 9 < :7# 8
N 8') N 9 < 7;
$ & )! *
- ' '
* )!
R# Q
< R
') < R ') S :; TQ
$ **' ' ) &
') ' ) . " '1 " % *
& )1
*'( ) ! ( "
') ' ) . &&
7 R # Q 3!
E :; Q
') ' )
2 . ) *(

') ' ) (4

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 34
-----------------------------------------------------------------------------------------------------------------

/!
$

'
/
%

%
3 1 ') (
U '1 " '
% 1

! ' . %
'* &
2 '"
("
!' !%'
* ! &&'(' )
* )!
2
! ' ) ) '

04 9
6
) ( '((' ) ( ( ! '.' *
! ' )
2 ) 1 ! ) ) ! ' ) ! 74
" ) *'( & *

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 35
-----------------------------------------------------------------------------------------------------------------

) &* '
(
.
*
) ! ( . && * ' ( *'( & * '
%(
') * .') * (
3'*& ( 4
'* . &( *
! ' ) E % ( . ') ) &
% && % - % && * 2 ) ('( ) ! (

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 36
-----------------------------------------------------------------------------------------------------------------

/ # ,"#3%

$=
') '

&& * ) * '
) '(
1 ') 3) '(
1 ') 6 * ' (2 ') 1 V ! '
( ) (' ' ' 4
'1 ) & .& ! ' ) ( ) " ! & 3 ( '! ') 1 % (
9; , (("
*'( ) ! (W '
( 9 ' ')
&W
'( ' S
1 ' ) ' 4
$

*
') ' )
2
) *( 6 X :7: ? E ) 1 &'1 ' &
) ! ( * & *') 1 - *% ! * ) '(
1 ')
) ) & ' (') 1 . ! ' *'( %
*

.& ! ' )

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 37
-----------------------------------------------------------------------------------------------------------------

$
*

$; *
:

:#
3 %)* ' * & 4
.. !
& 2 . 0% )!' (
() ! %(
( '! & *') 1

P.C. Pandey, "Serial communication interface", lecture notes, EE Dept, IIT Bombay, March'05 38
-----------------------------------------------------------------------------------------------------------------

/ %"
! (7
*
+' %
+' %
'( ) !
'
'
'

"
;>;
') 1 & ) * *
' (
! ' (

%
%
%

%
+7
% & * *
% %)& * *

')

! '
! '

') %
( ) (' ' '

:
:
:#
; , (
;#8
#8
:#8
> V A,
> V A,
:#8
>8

;>
') 1 & ) * *
:
:
:7; ,
: , (
G8
>7G8
G8
#
S ,
:;8
;
8

;;
'.. ) ' &

=#
'.. ) ' &
:
>;
:
>;
:7; ,
:7; ,
:
(
:
(
7;# < G8 A :;8
:7#8
;8
#8
#8
:
#
S ,
S:;,
A < :;8
A8
;
8
;
8