0% found this document useful (0 votes)
171 views24 pages

Seminar Presentation

This seminar presentation provides an overview of microcontrollers and the 8051 microcontroller. It discusses the differences between microprocessors and microcontrollers, important features of the 8051 including its pin diagram and registers. It also describes how to interface the 8051 with common devices like stepper motors, seven segment displays, and for applications like traffic light controllers. The presentation includes sections on timers, interrupts and example applications of microcontrollers.

Uploaded by

ankyt807
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views24 pages

Seminar Presentation

This seminar presentation provides an overview of microcontrollers and the 8051 microcontroller. It discusses the differences between microprocessors and microcontrollers, important features of the 8051 including its pin diagram and registers. It also describes how to interface the 8051 with common devices like stepper motors, seven segment displays, and for applications like traffic light controllers. The presentation includes sections on timers, interrupts and example applications of microcontrollers.

Uploaded by

ankyt807
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Seminar Presentation

Submitted To:

Lect. Jagan ECE Dept.

Submitted By: Ankit Bansal 11082021 ECE(D2) MMEC

Overview
Introduction Pin Diagram Registers Timers Interrupts Applications

What Is A Microcontroller?
A microcontroller is a single

silicon chip with memory and all Input/Output peripherals on it. Hence a microcontroller is also popularly known as a single chip computer.

How Is It Different From Microprocessor?


Microprocessor
CPU is Stand-alone,

Microcontroller
CPU,RAM,ROM,I/O,TIMER

RAM,ROM,I/O,TIMERS are separate. Designer can decide on the amount of RAM,ROM,I/O ports. Expansive General Purpose

are on a same CHIP. Fix amount of onchip RAM, ROM, I/O ports. For applications in which cost, power and sourse are critical Single Purpose

Important Features Of 8051


4K bytes ROM 128 bytes RAM Four 8-bit I/O ports Two 16-bit timers Serial interface

Pin Description Of 8051


P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (INT0)P3.2 (INT1)P3.3 (T0)P3.4 (T1)P3.5 (WR)P3.6 (RD)P3.7 XTAL2 XTAL1 GND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
Vcc P0.0(AD0) P0.1(AD1) P0.2(AD2) P0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6) P0.7(AD7) EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A14) P2.5(A13) P2.4(A12) P2.3(A11) P2.2(A10) P2.1(A9) P2.0(A8)

8051

Pins Of 8051
Vccpin 40
Vcc provides supply voltage to the chip. The voltage source is +5V.

GNDpin 20ground XTAL1 and XTAL2pins 19,18

contd..

XTAL Connection to 8051


Using a quartz crystal oscillator We can observe the frequency on the XTAL2 pin.

C2 XTAL2 30pF C1 XTAL1 30pF

GND

contd.

Pins Of 8051
RSTpin 9reset
It is an input pin and is active highnormally

low. The high pulse must be high at least 2 machine cycles. It is a power-on reset. Upon applying a high pulse to RST, the microcontroller will reset and all values in registers will be lost. Reset values of some 8051 registers

Pins Of 8051
/EApin 31external access
There is no on-chip ROM in 8031 and 8032 .

The /EA pin is connected to GND to indicate the code

is stored externally. /PSEN ALE are used for external ROM. For 8051, /EA pin is connected to Vcc. / means active low. /PSENpin 29program store enable This is an output pin and is connected to the OE pin of the ROM. Contd

Pins Of 8051
ALEpin 30address latch enable
It is an output pin and is active high. 8051 port 0 provides both address and data. The ALE pin is used for de-multiplexing the

address and data by connecting to the G pin of the 74LS373 latch. I/O port pins The four ports P0, P1, P2, and P3. Each port uses 8 pins. All I/O pins are bi-directional. Contd

Pins Of I/O Ports


The 8051 has four I/O ports

Port 0 pins 32-39P0P0.0P0.7 Port 1pins 1-8 P1P1.0P1.7 Port 2pins 21-28P2P2.0P2.7 Port 3pins 10-17P3P3.0P3.7 Each port has 8 pins. Named P0.X X=0,1,...,7, P1.X, P2.X, P3.X ExP0.0 is the bit 0LSBof P0 ExP0.7 is the bit 7MSBof P0 These 8 bits form a byte. Each port can be used as input or output (bi-direction).

8051 Registers
A (8-bit Accumulator) B (8-bit register for Mul &Div) PSW (8-bit Program Status Word) SP (8-bit Stack Pointer) PC (16-bit Program Counter)

RAM memory space allocation in the 8051


7FH Scratch pad RAM 30H 2FH Bit-Addressable RAM 20H 1FH 18H 17H 10H 0FH 08H 07H 00H Register Bank 3 Register Bank 2 (Stack) Register Bank 1 Register Bank 0

Timer

Interrupts

Applications of Microcontrollers

Stepper Motor Interfacing

Seven Segment Display

Traffic Light Controller

Application Examples

References:
Wikipedia [Link] [Link] [Link]

Thank You

You might also like