microcontroller 8051 and its interfacing

30
MICROCONTROLLER & ITS INTERFACING Er. Mandeep Singh National Institute of Technical Teachers Training & Research- Chandigarh

Upload: ankur-mahajan

Post on 12-May-2015

20.872 views

Category:

Education


5 download

DESCRIPTION

Microcontroller AtoZ

TRANSCRIPT

Page 1: Microcontroller 8051 and its interfacing

MICROCONTROLLER & ITS INTERFACING

Er. Mandeep SinghNational Institute of Technical Teachers

Training & Research- Chandigarh

Page 2: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 2

Topics of Discussion:

MicroprocessorDefinitionWorkingMicroprocessor & Human BehaviourMicrocontroller 8051DefinitionMicroprocessor Vs Microcontroller 8051 Features

Page 3: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 3

Topics of Discussion:

Block Diagram of 8051ManufacturersPin diagram of 8051Addressing ModesHow to write programReal World Interfacing Simple I/O conceptLCD Interfacing

Page 4: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 4

Topics of Discussion:

ADC0804 InterfacingRelay InterfacingStepper Motor InterfacingDC Motor InterfacingApplications of 8051Queries

Page 5: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 5

Microprocessor:

• Multipurpose• Re-Programmable• Digital Device• Semiconductor IC

Page 6: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 6

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.

Page 7: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 7

Microprocessor(cont.):

Page 8: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 8

Microprocessor & Human Behaviour:

Page 9: Microcontroller 8051 and its interfacing

04/12/2023 9

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

Er. Mandeep Singh

Page 10: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 10

Microprocessor Vs Microcontroller:

Page 11: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 11

Microcontroller 8051 Features:

Page 12: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 12

8051 Block Diagram:

Page 13: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 13

Manufacturers of 8051:

• Intel• Atmel• Phillips• Dallas• Motorola• National • Infineon

Page 14: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 14

Pin Diagram-8051:

Page 15: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 15

Addressing Modes:

• Immediate Addressing Mode• Direct Addressing Mode• Register Addressing Mode• Register Indirect Addressing Mode• Indexed Addressing Mode

Page 16: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 16

Addressing Modes (cont.):

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

Page 17: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 17

Addressing Modes (cont.):

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

Page 18: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 18

How to Write Program:

Page 19: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 19

Real World Interfacing:

Simple Input- Output Concept:• Interfacing Switch• Interfacing LED

Page 20: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 20

LCD Interfacing:

16X2 LCD Module

Page 21: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 21

Pin Description: Pin Symbol I/O Description

1 Vs - Ground

2 Vcc - +5 V

3 VEE - Contrast control

4 RS I Register Select

5 R/W I Read/Write

6 E I/O Enable

7 DB0 I/O 8 bit data bus

8 DB1 I/O 8 bit data bus

9 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

Page 22: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 22

Pin Connections of LCD:

Page 23: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 23

Analog Vs Digital:

Page 24: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 24

ADC Interfacing:

Page 25: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 25

Relay Interfacing:

Page 26: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 26

Stepper Motor Interfacing:

Page 27: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 27

DC Motor Interfacing:

Page 28: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 28

Applications of 8051:

Page 29: Microcontroller 8051 and its interfacing

?

Page 30: Microcontroller 8051 and its interfacing

04/12/2023 Er. Mandeep Singh 30

Contact Details:

Er. Mandeep SinghElectrical Engineering DepartmentNational Institute of Technical Teachers

Training and Research Sector 26 Chandigarh

Email: [email protected]: 8427 00 8051 9915 72 8051