Vous êtes sur la page 1sur 11

c

c c 

c c
   c
A Mini project report submitted in partial fulfillment of the requirements of the award of the
degree of

 
c c
c
cc


 c c   c


c
c

cc

 c! "#$$%#&'()c

c
c
c

c
c



c  
c c

c
(ASST PROFESSOR)
c

c


c c

 c c   c



c
c 
c c 

c c
c
Ä  
         
= 
   =
 
c

c


c c

 c c   c



c
c 
c c 

c c
c
Ä  
         
= 
   =
 
c

  
c
c
This is to certify that the project work entitled * c c 

c
c    +cis a bonafide work in partial fulfillment of the
requirements for the degree of bachelor of technology in
,- .-c!.c .-!.c

./. ./cfor the academic year 2010-2011.c

 c! c c c c c #$$%#&'(c

. .!,c/c c c c cccccccccccccccccccccccccc!c0cc 1! .c


cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 0!c !c
(Asst. professor) (Dept of ECE)
c


 


  
               
 ! " "     " 

#  ! " $    $   =!"#!$%&
'(()          "    
  !   "   = '(()   
       !     %&*+  ,-..!!* 
            
 '('&   $/%0%-%'*+,10'$1'!$('1&$*"*2)    
         

  !          *+ ,&!0+    "    
      

  !  "    "                   
   #!               
     !    $  ! " 
          


       = 0/&*'-3!


c
c c
 



c cccc 
c   c
c c   c c c ccc
ccc
 cc
c c  c   c cc c ccc

à  


c 
c c  !
 c  
c
 c 
c
 c  c  c  c  c 
c
"#$
%#cc
cc c
cc  c


&c c c
 
'cc

c"

c
 ccc()c
c
c c c c

!  *
 cc c c c

c 
%c
c

 c
 c c c
&cc c  c  c 
c
c   c
c c

c"c+,%cc

c

ccc
c

c 
c  c c cccc  -c c  c


&c  
cc c 
cc
c

c  c 
c 
c 
c  &c c
cc
c 

 cc cc  c


 cc c 
c 
cc c
c

(c c
c
c &ccccc c 
 c(c c c c
cc
c


c c c

c &c c 

c  c c  c  c ()c "c 


c  c  c 
&c &c  c .%c c
    c   c 
/c 

c  c ()
&c
c  c   c "  c 
c    c c c ()%c c c
 c

c 
cc
c  ccc
c

0 c  
c c c1c2 *
c c 

c c  -c 


cc3.cc) 
c c c  c
c c
  -c

c"c1c- *
c c..c%c

cc c-c c  c


c
 4cc(5c11!1c"..6%c 
c
 c
 
cc
c  c -c c 7c  
c c cc-c  c "88%c
 c c cc 

c  c
"2%c
 c 7c c
c 

c c c 
c  c c c 5(c  c c c c   c
 c
c c c  -c
 /
cc c c   c
 c
ccc
c
 
c
c c c  c c c  c c

p 
 
   
    
  
   p              
    
      

  
 
 
 
  !
   

p"# $% 
    
  &  p 
     
 
  '(
  
 

  p   
  
")$%

 c  c c


c2
c


(  )  &
( 
 (   
   (    


(  (  )  (%)*'+

    (   
(    


cc
  

1c #cc
c 9c()#c
6c $!:
c

à  

1c 2 c  c


c 2;c1cc  c
6c ; c
 c
3c 2<6cc
c 2;c1cc)+(=#+c
>c 8)cc
c

3
c

 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
cc


%c c

%% Introduction 2
%'=lock Diagram 4

%4Flow Chart 5
c


'
 c c 5
c  
c

cccccccccccc'%c(67'c
2.1.1 A =rief History of 8051 7
2.1.2 Introduction to AT89S52 9
2.1.3 Features 10
2.1.4 Pin Description 11

''c5
c c
2.2.1 Introduction 24
2.2.2 Transformer 24
2.2.3 Rectifier 25
2.2.4 Regulator 27
c
cccccccccccc'4c 3'4'c
cccccccccccc2.3.1 RS-232 waveform 29c
2.3.2 RS-232 Level converter 30
2.3.3 Microcontroller Interfacing with RS-232 Standard devices 31
c c
 
 ã,-#          ./
ã,ã*&         .0
ã,.&          .0
ã,,%           .1


 
ã2-#          2ã
ã2ã*&         2.
ã2.%           2,


 4         23
c

4c  c  cc c c c c c c ù9c c
c c c c c c

c&c 
c ccc

4.1.1 Example 1 71
4.1.2 Example 2 71
4.1.3 Example 3 72
4.1.4 Example 4 73


c7c 5
c
8

c

5.1 Introduction 75
5.2 Tools used 75
5.3 C51 Compiler & A51 macro assembler 7ù
5.4 Start µ vision 7ù
5.5 Flash magic 88

 ccccccccccc c c c c c c c 92
 
c 
c c c c c c c c c 93

  c c c c c c c c c 93

c c c c c c c c c 94





3c c  

c

ccccccccccccccc,c c c c c c c c cccc!/c.c

=lock diagram of the project 4

Flow chart 5

Pin diagram 89S52 IC 11

Functional block diagram of microcontroller 14

Oscillator and timing circuit 15

Interrupt sources 23

=lock diagram of a regulated power supply system 24

Output waveform of a transformer 25

Rectifier and output of rectifier 2ù

Waveform of the rectified output smoothing 27

Regulator 29

RS-232 Level controller 30

Microcontroller interfacing with RS-232 31

RS-232 cables diagram 33

20-Lead TSSOP 37

SPI =lock diagram 39

Example system implementation 40

CAN =uffers and protocol engine block diagram 42

CAN protocol engine block diagram 44

MCP2551 pin diagram and block diagram 53


8-bit LCD Interface 59

Main circuit diagram ù9

KEIL software-internal stages 75

Project figures 81-89



3c c
c
ccccccccccccc

cccccccccc,ccccccccccccccccccccccccccccccccccc c c c c ccccccc!/c.c
Controls of Port 3 13

Alternate use of Port 3 21

Interrupt Enable Register 23,34

Pinout description 41

MCP2551 pinout 57

Pin assignment for <=80 characters display ù0

Pin assignment for >80 characters display ù1

HD44780 instruction set ù2

=it names ùù