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
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
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