You are on page 1of 30

MICROCONTROLLER &

ITS INTERFACING

Er. Mandeep Singh


National Institute of Technical Teachers
Training & Research- Chandigarh

Topics of Discussion:
Microprocessor
Definition
Working
Microprocessor & Human Behaviour
Microcontroller 8051
Definition
Microprocessor Vs Microcontroller
8051 Features
11/12/15

Er. Mandeep Singh

Topics of Discussion:
Block Diagram of 8051
Manufacturers
Pin diagram of 8051
Addressing Modes
How to write program
Real World Interfacing
Simple I/O concept
LCD Interfacing
11/12/15

Er. Mandeep Singh

Topics of Discussion:
ADC0804 Interfacing
Relay Interfacing
Stepper Motor Interfacing
DC Motor Interfacing
Applications of 8051
Queries

11/12/15

Er. Mandeep Singh

Microprocessor:

Multipurpose
Re-Programmable
Digital Device
Semiconductor IC

11/12/15

Er. Mandeep Singh

Microprocessor (cont.):
Works On:
Input data from outer world.

Process it under control of


stored instructions/program
in memory.

Provide desired result to the


outer world.
11/12/15

Er. Mandeep Singh

Microprocessor(cont.):

11/12/15

Er. Mandeep Singh

Microprocessor & Human


Behaviour:

11/12/15

Er. Mandeep Singh

Microcontroller:
Introduced in 1981 by Intel Corporation.
Microcontroller is a programmable digital processor with
necessary peripherals.
Both microcontrollers and microprocessors are complex
sequential digital circuits meant to carry out job according to
the program / instructions.

Swiss Knife

11/12/15

Er. Mandeep Singh

Microprocessor Vs Microcontroller:

11/12/15

Er. Mandeep Singh

10

Microcontroller 8051 Features:

11/12/15

Er. Mandeep Singh

11

8051 Block Diagram:

11/12/15

Er. Mandeep Singh

12

Manufacturers of 8051:

Intel
Atmel
Phillips
Dallas
Motorola
National
Infineon

11/12/15

Er. Mandeep Singh

13

Pin Diagram-8051:

11/12/15

Er. Mandeep Singh

14

Addressing Modes:

Immediate Addressing Mode


Direct Addressing Mode
Register Addressing Mode
Register Indirect Addressing Mode
Indexed Addressing Mode

11/12/15

Er. Mandeep Singh

15

Addressing Modes (cont.):


Immediate Addressing Mode :
MOV A, #64H
MOV R1, #0FFH
Direct Addressing Mode:
MOV A, 64H
MOV A, 0FFH

11/12/15

Er. Mandeep Singh

16

Addressing Modes (cont.):


Register Addressing Mode
MOV A, R0
MOV R1, A
Register Indirect Addressing Mode
MOV A,@R0
MOV @R1,A

11/12/15

Er. Mandeep Singh

17

How to Write Program:

11/12/15

Er. Mandeep Singh

18

Real World Interfacing:


Simple Input- Output Concept:
Interfacing Switch
Interfacing LED

11/12/15

Er. Mandeep Singh

19

LCD Interfacing:

16X2 LCD Module


11/12/15

Er. Mandeep Singh

20

Pin Description:
Pin

Symbol

I/O

Description

Vs

Ground

Vcc

+5 V

VEE

Contrast control

RS

Register Select

R/W

Read/Write

I/O

Enable

DB0

I/O

8 bit data bus

DB1

I/O

8 bit data bus

DB2

I/O

8 bit data bus

10

DB3

I/O

8 bit data bus

11

DB4

I/O

8 bit data bus

12

DB5

I/O

8 bit data bus

13

DB6

I/O

8 bit data bus

14

DB7

I/O

8 bit data bus

11/12/15

Er. Mandeep Singh

21

Pin Connections of LCD:

11/12/15

Er. Mandeep Singh

22

Analog Vs Digital:

11/12/15

Er. Mandeep Singh

23

ADC Interfacing:

11/12/15

Er. Mandeep Singh

24

Relay Interfacing:

11/12/15

Er. Mandeep Singh

25

Stepper Motor Interfacing:

11/12/15

Er. Mandeep Singh

26

DC Motor Interfacing:

11/12/15

Er. Mandeep Singh

27

Applications of 8051:

11/12/15

Er. Mandeep Singh

28

Contact Details:
Er. Mandeep Singh
Electrical Engineering Department
National Institute of Technical Teachers
Training and Research Sector 26
Chandigarh
Email: mandeep1708@yahoo.co.in
Mobile: 8427 00 8051
9915 72 8051
11/12/15

Er. Mandeep Singh

30

You might also like