Avinash Ppt

15
Summer Training on Embedded System Avinash Kumar 11004645

Transcript of Avinash Ppt

Page 1: Avinash Ppt

Summer Training on Embedded System

Avinash Kumar 11004645

Page 2: Avinash Ppt

Introduction• It was a six week internship in Embedded System to enhance my skills

in Embedded System Design using 8051 microcontroller.• It includes basic knowledge of * Digital And Analog Electronics * Architectural knowledge of 8051 * Programming skills in Assembly and C language * Various types of Interfacing like ADC ,DAC,LCD,LED,7 segment DC and Stepper Motor * A project on Hardware and Software * Detail knowledge of Kiel and Proteus

Page 3: Avinash Ppt

Institute Profile• Lovely Professional University is India’s private largest university • It is recognized by UGC under Section 2(f) of UGC Act 1956 under

state government• It has wide range of cultural diversity• The Lovely Faculty of Technology and Sciences was ranked 2 on the

CSR-GHRDC Enineering Colleges Survey 2011• University was declared as the Best ICT Enabled University of the

Year by the Ministry of Communications and IT, Government of India• 50 Students were selected by an online examination conducted by

university itself among all students of ECE department

Page 4: Avinash Ppt

What is Embedded System?

• These are systems designed to a particular task, so often called as task specific.• A combination of hardware and software which together form a

component of a larger machine.• It can be a part of larger system to control a specific task only.• Since the system is dedicated to a specific task, design engineers can

optimize it, reducing the size and cost of the product. • It is present in our daily life to large stationary installations .

Page 5: Avinash Ppt

Uses of Embedded Systems• We are almost surrounded with Embedded systems all around us in our daily life.• Exploring the categories we can cast it in following order

1.Consumer Products• remote control• phone / mobile phone• refrigerator• microwave• oven / rice or bread cooker• watch• alarm clock ,etc

Page 6: Avinash Ppt

Uses of Embedded System2. Office Telephone, Computers, Fax Machines, Security System,Laser printer and many more 3.Automobiles Trip computers, Air Bags, Engine Control, Enterainment,Keyless entry and many more4.Biulding System Elevator, Heater, AC, Alarm Systems5.Space System Satellite System

Page 7: Avinash Ppt

Microcontroller Family• 8051: These microcontrollers are old but still trendy and most of the companies

fabricate these microcontrollers.

• PIC- Programmable Interface Controller is usually referred as PIC. They are slightly older than 8051 microcontrollers but excel cause of their small low pin count devices. They perform well and are affordable.  

• AVR(Advanced Version RISC) -In 1996, Atmel fabricated this single chip microcontroller with a modified Harvard Architecture.

This chip is loaded with C- compiler Free IDE and many more features. This microcontroller is a bit difficult for the starters to handle.

Page 8: Avinash Ppt

8051 Family…• It has following members with different salient features:8051:-4kb ROM,8 bit microcontroller,128 Bytes RAM ,2* 16 Bit timer

8031:- 0kb ROM,8 bit microcontroller,128 Bytes RAM, two 16 timer, 4 I/O ports, Tx and Rx, 6 Interrupts, 40 pin IC

8052:-8Kb ROM,8 bit microcontroller ,256 Bytes RAM, 3* 16 Bit timer 4 I/O ports, Tx and Rx, 8 Interrupts, 40 pin IC

Page 9: Avinash Ppt

Project Description

• My project includes two parts one is selection and other is execution.• In this project we driving same Stepper Motor with different

constraints or different movements .• In this selection is made according to buttons pressed connected at

port1.• Accordingly, program is sent to different subroutine to different tasks.

Page 10: Avinash Ppt

Circuit Diagram

Page 11: Avinash Ppt

Code- #include<reg51.h>

Sbit sw0=P1^0;Sbit sw1=P1^1;Sbit sw2=P1^2;void Msdelay();void main(){

unsigned char ch;label:ch=P1;ch=ch&0x07;switch(ch)

Page 12: Avinash Ppt

Code:-{ case 0: {

P2 = 0xcc;Msdelay(); P2 = 0x66; Msdelay(); P2 = 0x33; Msdelay(); P2 = 0x99; Msdelay();

Page 13: Avinash Ppt

Code- break; } case 1: { P2=0xcc; Msdelay(); P2=0x66; Msdelay(); break; }

Page 14: Avinash Ppt

Code-case 2: { P2=0xcc; Msdelay(); break; } case 3:• {• P2=0x99;• Msdelay();• P2=0x33;• Msdelay();• P2=0x66;• Msdelay();

Page 15: Avinash Ppt

Code- P2=0xcc; Msdelay();break; }} }goto label;

void Msdelay(){ unsigned char i,j,k; for(i=0;i<6;i++) for(j=0;j<255;j++) for(k=0;k<255;k++);}