Documente Academic
Documente Profesional
Documente Cultură
TELEPHONE WEBSITE
:0120-4646464
:www.ducatindia .com
ACKNOWLEDGEMENT
I am privileged to have this opportunity to extend my gratitude and respect. It has truly been a rich as well as memorable experience for me to learn and work with certain great personality of DUCAT NOIDA. I have great respect and regard for all those with whom I could be associated with during a short span of 6 week. I am sure whatever little i have learnt and experience from DUCATespecially from my trainers and guides will help me in my future goals. I am privileged to have this opportunity to extend my gratitude and respect towards MR.BHUPENDER , Training Co-coordinator for giving me a chance to carry out my summer training project work in his laboratory. I am grateful for his supervision, guidance and direction throughout the course of this project. His ideas and suggestions during the course of my work have enhanced this report considerably. I am grateful to the faculty of DUCAT, for their help and guidance during this period. I am also thankful to my training mates and all other seniors for their valuable suggestions and help offered that really made my working in the lab so easy and great fun!
RIMMAJAIN 4209246
ii
INDEX
CONTENT
CHAPTER-1 1.1 SOFTWARE USED 1.2 VARIOUS STEPS TO USE THE KEIL COMPILER 1.3 HOW TO DEBUG THE PROGRAM 1.4 STUDY OFVARIOUS MODULES 1.4.1 INTERFACING OF LEDs WITH MICROCONTROLLER 1.4.2 CIRCUIT DIAGRAM: 1.4.3 STEPS TO DESIGN THE HARDWARE 1.4.3.1 COMPONENT REQUIRED 1.4.3.2 STEPS 1.4.4 PROGRAM
PAGENO
1 1 2 2 3 3 3 4 4 4 4 5 5 7
1.5 INTERFACING OF SWITCHES WITH THE MICROCONTROLLER 1.5.1 PROGRAM 1.6 INTERFACING OF SEVEN SEGMENT DISPLAY WITH MICROCONTROLLER 1.6.1 TYPES OF SEVEN SEGMENT 1.6.2 SINGLE SEVEN SEGMENT 1.6.2.1 CIRCUIT DIAGRAM 1.6.2.2 STEPS TO DESIGN THE HARDWARE 1.6.2.2.1 COMPONENT REQUIRED 1.6.2.2.2 STEPS 1.6.2.3 PROGRAM 1.7 INTERFACING OF DC MOTOR WITH MICROCONTROLLER 1.7.1 UNIDIRECTIONAL CONTROL 1.7.2 CIRCUIT DIAGRAM 1.7.3 STEPS TO DESIGN THE HARDWARE 1.7.3.1 COMPONENT REQUIRED 1.7.3.2 STEPS HARYANA INSTITUE OF ENGG. AND TECHNOLOGY,KAITHAL DEPARTMENT OF ELECTRONICS & COMMUNICATION
8 9 9 9 9 10 10 11 12 13 14 14 14 iii
CONTENT
1.7.4 PROGRAM 1.8 STEPPER MOTOR 1.8.1 OPEN LOOP OPERATION 1.8.2 INPUT SEQUENCE TO THE WINDINGS 1.8.3 LIQUID CRYSTAL DISPLAY 1.9 LCD INTERFACING WITH 8051 MICROCONTROLLER
PAGE NO.
15 15 16 18 21 22
1.9.1 PROGRAMME
1.10 8051 REGISTOR 1.10.1 GENERAL PURPOSE REGISTERS: 1.10.1.1 REGISTERS (R0 R7) 1.10.1.2 DATA POINTER (DPTR) 1.10.1.3 PROGRAM COUNTER (PC) 1.10.1.4 STACK POINTER (SP) 1.10.2 SPECIAL PURPOSE REGISTERS: 1.10.2.1 CPU REGISTERS
25
28 28 28 29 30 30 31 31
1.10.2.2 PSW: PROGRAM STATUS WORD (bit Addressable) 32 1.10.2.3 TIMER MODE REGISTERS 1.10.2.4 TCON: TIMER CONTROL REGISTER 1.10.2.5 SCON: SERIAL CONTROL REGISTER 1.10.2.5.1 MODE 1 1.10.2.5.2 MODE 2 1.10.2.5.3 MODE 3 1.10.2.6 SBUF: SERIAL BUFFER 1.10.2.7 IE: INTERRUPT ENABLED 1.10.2.8 IP: INTERRUPT PRIORITY REGISTER 33 36 36 38 38 39 39 39 40
42 42 43 43 44 iv
REFERENCE
HARYANA INSTITUE OF ENGG. AND TECHNOLOGY,KAITHAL DEPARTMENT OF ELECTRONICS & COMMUNICATION
LIST OF FIGURE
Fig: 1.1 Fig: 1.2 Fig: 1.3 Fig: 1.4 Fig: 1.5 Fig: 1.6 Fig: 1.7 Fig: 1.8 Fig: 1.9 Fig: 1.10 Fig 1.11 Fig: 1.12 Fig: 1.13 Fig: 1.14 Fig: 1.15 Fig: 1.16 Fig: 1.17 Fig: 1.18 Fig: 1.19 Fig: 1.20 Fig: 1.21 Keil Parallel Port Interfacing with LED Seven Segment Display Internal structures of seven segments Interfacing with seven segment DC motor Interfacing with DC motor Optocoupler Rotor Alignments LCD Pin Description Diagram Interfacing with LCD Registers R0-R7 Data Pointers Stack Pointers Program Status Word. Timer Mode Registers Timer Control Registers Serial Control Registers Interrupt Enable Interrupt Priority Register.
PAGE NO.
1 2 3 7 8 9 12 13 14 17 21 24 29 30. 30 32 33 36 36 39 41
LIST OF TABLES
TABLE: 1.1 TABLE: 1.2 TABLE: 1.3 TABLE: 1.4 HEXADECIMAL CODES STATOR WINDINGS CONFIGURATION. LCD PIN DESCRIPTIONS. DIFFERENT COMBINATIONS OF RS0 AND RS1.
PAGE NO.
10. 18 25 32 34 34
TABLE: 1. 5 DESCRIPTION OF TIMER 1 IN MODE 0 AND MODE 1 TABLE: 1.6 . DESCRIPTION OF TIMER 0 IN MODE 0 AND MODE 1.
vi