You are on page 1of 15

Summer Training on Embedded System

Avinash Kumar 11004645

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

Institute Profile
Lovely Professional University is Indias 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

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 .

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

remote control phone / mobile phone refrigerator microwave oven / rice or bread cooker watch alarm clock ,etc

1.Consumer Products

Uses of Embedded System


2. 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 more 4.Biulding System Elevator, Heater, AC, Alarm Systems 5.Space System Satellite System

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.

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

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.

Circuit Diagram

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)

Code:{ case 0: { P2 = 0xcc; Msdelay(); P2 = 0x66; Msdelay(); P2 = 0x33; Msdelay(); P2 = 0x99; Msdelay();

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

Codecase 2: { P2=0xcc; Msdelay(); break; } case 3: { P2=0x99;

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

CodeP2=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++); }

You might also like