8051 microcontroller and embedded training (sahil gupta 9068557926)

16
Presentation on The 8051 Microcontroller and Embedded Systems

Upload: sahil-gupta

Post on 28-Jan-2015

129 views

Category:

Technology


3 download

DESCRIPTION

Training PPT on 8051 microcontroller and embedded

TRANSCRIPT

Page 1: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

Presentation onThe 8051 Microcontroller and

Embedded Systems

Page 2: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

•An embedded system is some combination of computer hardware and software that is specifically designed for a particular function.•Embedded systems employ the use of a RTOS . (Real-Time Operating System).• RTOS sets the rules during execution of application processes to enable finishing of a process within the assigned time interval and with assigned priority.

INTRODUCTION TO EMBEDDED SYSTEM

Page 3: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• Consumer electronics• Telecommunications• Automobiles• Medical Instruments• Industrial control equipment• Defense• Banking & Finance• Entertainment• Office automation

APPLICATIONS OF EMBEDDED SYSTEM

Page 4: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• A microcontroller is a computer-on-a-chip.

• Micro suggests that the device is small, and controller tells

you that the devise might be used to control objects,

processes, or events.

• Another term to describe a microcontroller is embedded

controller, because the microcontroller and its support

circuits are often built into, or embedded in, the devices

they control.

INTRODUCTION TO MICROCONTROLLER

Page 5: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

MICROPROCESSOR

• Microprocessor is heart of Computer system

• It is just a processor. Memory and I/O components have to be connected externally.

• Since memory and I/O components are all external,it is relatively slower.

• Microprocessors are based on von Neumann model/ architecture.

• Cost of the entire system increases.• Microprocessor have less number

of registers

• Micro Controller is a heart of embedded system.

• Micro controller has internal memory and I/O components.

• Since memory and I/O components are all internal, it is relatively faster.

• Micro controllers are based on Harvard architecture.

• Cost of the entire system is low.• Micro controller have more

number of registers

MICROCONTROLLER

MICROPROCESSOR Vs MICROCONTROLLER

Page 6: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

A DESCRIPTIVE BLOCK DIAGRAM OF MICROPROCESSOR & MICROCONTROLLER

Page 7: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• The 8051 is an 8-bit processor• 128 bytes of RAM• 4K bytes of on-chip ROM• Two timers each of 16 bits• One serial port• Four I/O ports, each 8 bits wide• 8 bits program status word (PSW)• Oscillator and clock circuits• 4 register banks where each has 8 registers• 21 SFRs ( Special Function Register)

8051 ARCHITECTURE

Page 8: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

PIN DIAGRAM OF 8051

Page 9: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• The four 8-bit I/O ports P0, P1, P2 and P3 each uses 8 pins.• PORT 0: It can be used for input or output, each pin must be

connected externally to a 10K ohm pull-up resistor.• PORT 1,2 & 3: these ports do not need any pull-up resistors since

they already have pull-up resistors internally.• To reconfigure it as an input, a 1 must be sent to the port.• To reconfigure it as an output, a 0 must be sent to the port.• All the ports upon RESET are configured as input, ready to be

used as input ports.• Sometimes we need to access only 1 or 2 bits of the port, then

we use ‘sbit’ to use these pins separately.

INPUT / OUTPUT PORTS

Page 10: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

PSW (Program Status Word)

Page 11: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• Interfacing of LEDs with 8051 microcontroller.

• Interfacing of LCD with 8051 microcontroller.

• Interfacing of DC motor with 8051 microcontroller.

• Interfacing of 7-segment with 8051 microcontroller.

INTERFACING WITH 8051

Page 12: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

PROJECT WORK

Page 13: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• This project is designed to demonstrate the technology used in

now a day’s driver less metro trains.

• These trains are equipped with the CPU, which controls the

train.

• The train is programmed for the specific path.

• Every station on the path is defined; stoppage, timing of the

train and distance between the two stations is predefined.

To be continued…

INTRODUCTION TO METRO TRAIN PROTOTYPE USING 8051

Page 14: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

• Here we are using 2 stepper motors. One represents the motion

of the train and the other represents the opening and closing of

the doors.

• We are using an LCD display to provide information.

• Before stopping at station, the LCD will display the up next

station’s name, then the indication of opening/closing of the

doors.

Page 15: 8051 microcontroller and embedded training  (sahil gupta   9068557926)

Proposed Circuit for Metro Train Prototype

Page 16: 8051 microcontroller and embedded training  (sahil gupta   9068557926)