MICROCONTROLLER-8051
MICROCONTROLLER-8051
Features & Applications
Features & Applications
Presenting By:
Dr. Suhas A R
Associate Professor
Department of ECE
HKBKCE, Bengaluru-45
07/14/25 Dr. Suhas A R 1
 Its not an exaggeration if I say that ,today there is no electronic gadget on the earth
which is designed without a Microcontroller. Ex: communication devices, digital
entertainment, portable devices etc…
 Personal information products: Cell phone, pager, watch, pocket recorder, calculator
Personal information products: Cell phone, pager, watch, pocket recorder, calculator
 Laptop components: mouse, keyboard, modem, fax card, sound card, battery charger
Laptop components: mouse, keyboard, modem, fax card, sound card, battery charger
 Home appliances: door lock, alarm clock, thermostat, air conditioner, TV remote, VCR,
Home appliances: door lock, alarm clock, thermostat, air conditioner, TV remote, VCR,
small refrigerator, exercise equipment, washer/dryer, microwave oven
small refrigerator, exercise equipment, washer/dryer, microwave oven
 Industrial equipment: Temperature/pressure controllers, Counters, timers, RPM
Industrial equipment: Temperature/pressure controllers, Counters, timers, RPM
Controllers
Controllers
 Toys: video games, cars, dolls, etc.
Toys: video games, cars, dolls, etc.
Why do we need to learn
Why do we need to learn
Microcontrollers ?
Microcontrollers ?
07/14/25 Dr. Suhas A R 2
Then What is a Microcontroller ?
 A smaller computer
 On-chip RAM, ROM, I/O ports...
 Example : Motorola’s 6811, Intel’s 8051,
Zilog’s Z8 and PIC 16X
RAM ROM
I/O
Port
Timer
Serial
COM
Port
CPU
A single chip
Microcontroller
07/14/25 Dr. Suhas A R 3
How is it different from a
How is it different from a
Microprocessor ??
Microprocessor ??
 General-purpose microprocessor
CPU for Computers
No RAM, ROM, I/O on CPU chip itself
Example : Intel’s x86, Motorola’s 680x0
CPU
General-
Purpose
Micro-
processor
RAM ROM I/O
Port
Timer
Serial
COM
Port
Data Bus
Address Bus
07/14/25 Dr. Suhas A R 4
Types of Microcontrollers
Types of Microcontrollers
07/14/25 Dr. Suhas A R 5
Microcontroller Architectures
Microcontroller Architectures
CPU
Program
+ Data
Address Bus
Data Bus
Memory
Von Neumann
Architecture
CPU
Program
Address Bus
Data Bus
Harvard
Architecture
Memory
Data
Address Bus
Fetch Bus
0
0
0
2n
07/14/25 Dr. Suhas A R 6
Important Features of 8051
Important Features of 8051
 4K bytes ROM
4K bytes ROM
 128 bytes RAM
128 bytes RAM
 Four 8-bit I/O ports
Four 8-bit I/O ports
 Two 16-bit timers
Two 16-bit timers
 Serial interface
Serial interface
 64K external code memory space
64K external code memory space
 64K data memory space
64K data memory space
07/14/25 Dr. Suhas A R 7
“
“Original” 8051 Microcontroller
Original” 8051 Microcontroller
Oscillator
and timing
4096 Bytes
Program Memory
(ROM)
128 Bytes
Data Memory
(RAM)
Two 16 Bit
Timer/Event
Counters
8051
CPU
64 K Byte Bus
Expansion
Control
Programmable
I/O
Programmable
Serial Port Full
Duplex UART
Synchronous Shifter
Internal data bus
External interrupts
subsystem interrupts
Control Parallel ports
Address Data Bus
I/O pins
Serial Input
Serial Output
07/14/25 Dr. Suhas A R 8
PSW REGISTER
PSW REGISTER
07/14/25 Dr. Suhas A R 9
Addressing Modes
Addressing Modes
 The CPU can access the data in various ways.
The CPU can access the data in various ways. The data
The data
could be in register, or in memory or be provided as an
could be in register, or in memory or be provided as an
immediate value.
immediate value.
 Types of addressing modes:
Types of addressing modes:
 Immediate Addressing mode. Ex: MOV A, #0AH
Immediate Addressing mode. Ex: MOV A, #0AH
 Register Addressing mode. Ex: MOV A, R0
Register Addressing mode. Ex: MOV A, R0
 Direct Addressing mode. Ex: MOV R0, 40H
Direct Addressing mode. Ex: MOV R0, 40H
 Register indirect Addressing mode. Ex: MOV A, @R0
Register indirect Addressing mode. Ex: MOV A, @R0
 Indexed Addressing mode. Ex: MOVC A, @A+DTPR
Indexed Addressing mode. Ex: MOVC A, @A+DTPR
07/14/25 Dr. Suhas A R 10
Instruction Set of 8051
Instruction Set of 8051
 Based on the operations performed, the
Based on the operations performed, the
instruction set of 8051 are classified as:
instruction set of 8051 are classified as:
 Data transfer Instructions
Data transfer Instructions
 Arithmetic Instructions
Arithmetic Instructions
 Logical Instructions
Logical Instructions
 Boolean Instructions
Boolean Instructions
 Branching Instructions
Branching Instructions
07/14/25 Dr. Suhas A R 11
1. Consumer Electronics
1. Consumer Electronics
Ex: Washing machines, Microwave ovens
Ex: Washing machines, Microwave ovens
2. Automotive Systems
2. Automotive Systems
Ex: Speed sensing and control, Wiper and light automation
Ex: Speed sensing and control, Wiper and light automation
3. Industrial Automation
3. Industrial Automation
Ex: Robotic arms control, Process monitoring and control
Ex: Robotic arms control, Process monitoring and control
4. Communication Systems
4. Communication Systems
Ex: Serial communication control (UART), Modem
Ex: Serial communication control (UART), Modem
interfacing
interfacing
5. Medical Devices
5. Medical Devices
Ex: Portable ECG machines, Blood pressure monitors
Ex: Portable ECG machines, Blood pressure monitors
Microcontroller Applications
Microcontroller Applications
07/14/25 Dr. Suhas A R 12
Thank You
Thank You
07/14/25 Dr. Suhas A R 13

Microcontroller Basics and its Applications with Architecture and Pin diagram

  • 1.
    MICROCONTROLLER-8051 MICROCONTROLLER-8051 Features & Applications Features& Applications Presenting By: Dr. Suhas A R Associate Professor Department of ECE HKBKCE, Bengaluru-45 07/14/25 Dr. Suhas A R 1
  • 2.
     Its notan exaggeration if I say that ,today there is no electronic gadget on the earth which is designed without a Microcontroller. Ex: communication devices, digital entertainment, portable devices etc…  Personal information products: Cell phone, pager, watch, pocket recorder, calculator Personal information products: Cell phone, pager, watch, pocket recorder, calculator  Laptop components: mouse, keyboard, modem, fax card, sound card, battery charger Laptop components: mouse, keyboard, modem, fax card, sound card, battery charger  Home appliances: door lock, alarm clock, thermostat, air conditioner, TV remote, VCR, Home appliances: door lock, alarm clock, thermostat, air conditioner, TV remote, VCR, small refrigerator, exercise equipment, washer/dryer, microwave oven small refrigerator, exercise equipment, washer/dryer, microwave oven  Industrial equipment: Temperature/pressure controllers, Counters, timers, RPM Industrial equipment: Temperature/pressure controllers, Counters, timers, RPM Controllers Controllers  Toys: video games, cars, dolls, etc. Toys: video games, cars, dolls, etc. Why do we need to learn Why do we need to learn Microcontrollers ? Microcontrollers ? 07/14/25 Dr. Suhas A R 2
  • 3.
    Then What isa Microcontroller ?  A smaller computer  On-chip RAM, ROM, I/O ports...  Example : Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X RAM ROM I/O Port Timer Serial COM Port CPU A single chip Microcontroller 07/14/25 Dr. Suhas A R 3
  • 4.
    How is itdifferent from a How is it different from a Microprocessor ?? Microprocessor ??  General-purpose microprocessor CPU for Computers No RAM, ROM, I/O on CPU chip itself Example : Intel’s x86, Motorola’s 680x0 CPU General- Purpose Micro- processor RAM ROM I/O Port Timer Serial COM Port Data Bus Address Bus 07/14/25 Dr. Suhas A R 4
  • 5.
    Types of Microcontrollers Typesof Microcontrollers 07/14/25 Dr. Suhas A R 5
  • 6.
    Microcontroller Architectures Microcontroller Architectures CPU Program +Data Address Bus Data Bus Memory Von Neumann Architecture CPU Program Address Bus Data Bus Harvard Architecture Memory Data Address Bus Fetch Bus 0 0 0 2n 07/14/25 Dr. Suhas A R 6
  • 7.
    Important Features of8051 Important Features of 8051  4K bytes ROM 4K bytes ROM  128 bytes RAM 128 bytes RAM  Four 8-bit I/O ports Four 8-bit I/O ports  Two 16-bit timers Two 16-bit timers  Serial interface Serial interface  64K external code memory space 64K external code memory space  64K data memory space 64K data memory space 07/14/25 Dr. Suhas A R 7
  • 8.
    “ “Original” 8051 Microcontroller Original”8051 Microcontroller Oscillator and timing 4096 Bytes Program Memory (ROM) 128 Bytes Data Memory (RAM) Two 16 Bit Timer/Event Counters 8051 CPU 64 K Byte Bus Expansion Control Programmable I/O Programmable Serial Port Full Duplex UART Synchronous Shifter Internal data bus External interrupts subsystem interrupts Control Parallel ports Address Data Bus I/O pins Serial Input Serial Output 07/14/25 Dr. Suhas A R 8
  • 9.
  • 10.
    Addressing Modes Addressing Modes The CPU can access the data in various ways. The CPU can access the data in various ways. The data The data could be in register, or in memory or be provided as an could be in register, or in memory or be provided as an immediate value. immediate value.  Types of addressing modes: Types of addressing modes:  Immediate Addressing mode. Ex: MOV A, #0AH Immediate Addressing mode. Ex: MOV A, #0AH  Register Addressing mode. Ex: MOV A, R0 Register Addressing mode. Ex: MOV A, R0  Direct Addressing mode. Ex: MOV R0, 40H Direct Addressing mode. Ex: MOV R0, 40H  Register indirect Addressing mode. Ex: MOV A, @R0 Register indirect Addressing mode. Ex: MOV A, @R0  Indexed Addressing mode. Ex: MOVC A, @A+DTPR Indexed Addressing mode. Ex: MOVC A, @A+DTPR 07/14/25 Dr. Suhas A R 10
  • 11.
    Instruction Set of8051 Instruction Set of 8051  Based on the operations performed, the Based on the operations performed, the instruction set of 8051 are classified as: instruction set of 8051 are classified as:  Data transfer Instructions Data transfer Instructions  Arithmetic Instructions Arithmetic Instructions  Logical Instructions Logical Instructions  Boolean Instructions Boolean Instructions  Branching Instructions Branching Instructions 07/14/25 Dr. Suhas A R 11
  • 12.
    1. Consumer Electronics 1.Consumer Electronics Ex: Washing machines, Microwave ovens Ex: Washing machines, Microwave ovens 2. Automotive Systems 2. Automotive Systems Ex: Speed sensing and control, Wiper and light automation Ex: Speed sensing and control, Wiper and light automation 3. Industrial Automation 3. Industrial Automation Ex: Robotic arms control, Process monitoring and control Ex: Robotic arms control, Process monitoring and control 4. Communication Systems 4. Communication Systems Ex: Serial communication control (UART), Modem Ex: Serial communication control (UART), Modem interfacing interfacing 5. Medical Devices 5. Medical Devices Ex: Portable ECG machines, Blood pressure monitors Ex: Portable ECG machines, Blood pressure monitors Microcontroller Applications Microcontroller Applications 07/14/25 Dr. Suhas A R 12
  • 13.

Editor's Notes

  • #8 Program memory – RAM or ROM? Data memory – RAM or ROM?