1 of 35

MATRUSRI ENGINEERING COLLEGEDEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

SUBJECT NAME: 8051MICROCONTROLLERS

FACULTY NAME: Mrs.N.KALPANA

MATRUSRI

ENGINEERING COLLEGE

2 of 35

SYLLABUS

UNIT- I:

Microprocessor Architecture: Microprocessors, Microcomputers, and Assembly Language, Architecture Details and its operation, Bus organization of 8085, Registers, Memory unit of 8085, Instruction decoding & execution, 8085-Based single board Microcomputer, Pin out Diagram of 8085, Bus timings, 8085 Interrupts (Hardware and Software), 8085 Vectored Interrupts. Introduction to Advanced Controllers, ARM, MSP controllers.

UNIT-II:

8085 Programming: The 8085 Programming Model, Operand Types, Instruction Format, Addressing Modes, Instruction set, Writing and debugging simple assembly Language Programs, Delays.

UNIT-III:

Interfacing: Memory and I/O interfacing, Programmable Peripheral Interface 8255 (PPI), Interfacing seven segment display, Interfacing matrix keyboard, A/D and D/A interfacing, Programmable Interval Timer (8253), Programmable Interrupt Controller (8259).

UNIT- IV:

Microcontroller Architecture: Types of Microcontrollers, 8051 Microcontroller – Architecture, Memory organization, special function registers, pins and signals, timing and control, Ports and circuits, Counters and timers, Serial data input / output, Interrupts & timers.

UNIT-V

8051 Programming: The 8051-programming model, Operand Types, Instruction cycle, addressing modes, 8051 instruction set, Classification of instructions. Simple programs and I/O interfacing.

MATRUSRI

ENGINEERING COLLEGE

3 of 35

MATRUSRI

ENGINEERING COLLEGE

4 of 35

MATRUSRI

ENGINEERING COLLEGE

5 of 35

A microcontroller is a small, low-cost and self contained computer-on-a-chip that can be used as an embedded system.

Or

A single chip or CPU with all peripherals like RAM, ROM, I/O, Timers ADC etc on same chip.

CPU

ALU+CU

Data memory

Output

ports

Input

ports

Clock

Microcontroller

Program memory

MATRUSRI

ENGINEERING COLLEGE

6 of 35

MATRUSRI

ENGINEERING COLLEGE

7 of 35

Microprocessor

Microcontroller

It consists of ALU, control unit, register and interrupt circuit

It consists of ROM, RAM, I/O interfacing unit and other peripheral devices

For supporting the data handling bits only few instructions are available

The data handling is supported by many instructions which are existed

Multi-functioned pins are less

More number of multi-functioned pins are present

Data and program addressing modes are same

Data and program addressing modes are different

The time delay is more to access memory and I/O devices

The time delay is less

More hardware components are required hence cost is high

Less hardware components are required hence cost is low

There is a flexible designing

The designing is typical and complex

It is not easily synchronize the communication between the peripherals of different speeds.

It is easily synchronize the communication between the peripherals of different speeds.

MATRUSRI

ENGINEERING COLLEGE

8 of 35

MATRUSRI

ENGINEERING COLLEGE

9 of 35

MATRUSRI

ENGINEERING COLLEGE

10 of 35

MATRUSRI

ENGINEERING COLLEGE

11 of 35

MATRUSRI

ENGINEERING COLLEGE

12 of 35

MATRUSRI

ENGINEERING COLLEGE

13 of 35

MATRUSRI

ENGINEERING COLLEGE

14 of 35

15 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

  • Central Processor Unit or CPU is the mind of any processing machine.
  • It scrutinizes and manages all processes that are carried out in theMicrocontroller.
  • User has no power over the functioning of CPU.
  • It interprets program printed in storage space (ROM) and carries out all of them and do the projected duty.
  • CPU manages different types of registers in 8051 microcontroller.

CPU (Central Processor Unit)

16 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

  • Interrupt is a sub-routine call that reads the Microcontroller’s key function or job.
  • It helps it to perform some other program which is extra important at that point of time.
  • The characteristic of 8051 Interrupt is extremely constructive as it aids inemergency cases.
  • Interrupts provides us a method to postpone or delay the current process.
  • It carry out a sub-routine task and then all over again restart standard program implementation.

Interrupts

17 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

  • Micro-controller needs a program which is a set of commands.
  • This program enlightens Microcontroller to perform precise tasks.
  • These programs need a storage space.
  • The memory program of Microcontroller is recognized as Program memory or code memory.
  • In common language it’s also known as Read Only Memory or ROM.
  • Microcontroller also needs a memory to amass data or operands for the short term.
  • The storage space which is employed to momentarily data storage for

functioning.

  • It is acknowledged as Data Memory and we employ Random Access Memory or RAM for this principle reason.
  • Microcontroller 8051 contains code memory or program memory 4K.
  • It has 4KB Rom and it also comprise of data memory (RAM) of 128 bytes.

Memory

18 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

19 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

20 of 35

MATRUSRI

ENGINEERING COLLEGE

21 of 35

MATRUSRI

ENGINEERING COLLEGE

22 of 35

8051 Microcontroller Memory Organization

Program Memory (ROM)

Data Memory (RAM).

MATRUSRI

ENGINEERING COLLEGE

23 of 35

INTERNAL MEMORY

24 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

25 of 35

MATRUSRI

ENGINEERING COLLEGE

26 of 35

MATRUSRI

ENGINEERING COLLEGE

27 of 35

01

0

03

04

MATRUSRI

ENGINEERING COLLEGE

28 of 35

Address assigned in hex decimal

128 bytes/Locations means 00-7FH address are assigned.

128Bytes

(00H-7FH)

Data memory/ internal memory

MATRUSRI

ENGINEERING COLLEGE

29 of 35

MATRUSRI

ENGINEERING COLLEGE

30 of 35

MATRUSRI

ENGINEERING COLLEGE

31 of 35

MATRUSRI

ENGINEERING COLLEGE

32 of 35

MATRUSRI

ENGINEERING COLLEGE

33 of 35

MATRUSRI

ENGINEERING COLLEGE

34 of 35

MATRUSRI

ENGINEERING COLLEGE

35 of 35

MATRUSRI

ENGINEERING COLLEGE