SlideShare a Scribd company logo
1 of 12
Download to read offline
Microcontroller
and
Microprocesso
r
-- by Prof. M.K.Deshkar
Microprocessor
A microcomputer is a computer similar to any other
computer, except that the CPU functions of the
microcomputer are performed by the microprocessor.
The MPU (microprocessor unit) is the heart of every
microcomputer. It performs a number of functions, including.
1. Providing timing and control signals for all elements of the
µC
2. Fetching instructions and data from memory 3.
Transferring data to and from memory and I/O devices
4. Decoding instructions
5. Performing arithmetic and logic operations called for by
instructions
6. Responding to I/O generated control signals such as
RESET and INTERRUPT.
Microprocessor.
Inside the Microprocessor.
• Internally, the microprocessor is made
up of 3 main units.
– The Arithmetic/Logic Unit (ALU)
– The Control Unit, memory unit
– An array of registers for holding data while. it is
being manipulated.
_ input unit and output unit.
Organization of a Microprocessor based system
Arithmetic and Logic Unit : In this area of the microprocessor, computing
functions are performed on data. The CPU performs arithmetic operations such
as addition and subtraction, and logic operations such as AND, OR, and exclusive
OR. Results are stored either in register or in memory or sent to output devices.
Register Unit : This area of the microprocessor consists of various registers. The
register are used primarily to store data temporarily during the executing of a
program. Some of the registers are accessible to the user through instructions.
Control Unit : The control unit provides the necessary timing and control signals
to all the operations in the microcomputer. It controls the flow of data between the
microprocessor and peripherals (including memory).
input unit: The input section transfers data and instructions in binary from the
outside world to the microprocessor.
output unit : The output section transfers data from the microprocessor to output
devices Output.
Memory unit: Memory stores binary information such as instructions and data,
and provides that information to the microprocessor whenever necessary.
system bus :The system bus is a communication path between the
microprocessor and the peripherals.
D7 D6 D5 D4 D3 D2 D1 D0
S Z AC P CY
General purpose register
There are 6 general purpose registers in 8085 processor, i.e. B, C, D, E, H & L. Each register can
hold 8-bit data.
These registers can work in pair to hold 16-bit data and their pairing combination is like B-C, D-E &
H-L.
Program counter
It is a 16-bit register used to store the memory address location of the next instruction to be
executed. Microprocessor increments the program whenever an instruction is being executed, so
that the program counter points to the memory address of the next instruction that is going to be
executed.
Stack pointer
It is also a 16-bit register works like stack, which is always incremented/decremented by 2 during
push & pop operations.
Temporary register
It is an 8-bit register, which holds the temporary data of arithmetic and logical operations.
Flag register
It is an 8-bit register having five 1-bit flip-flops, which holds either 0 or 1 depending upon the result
stored in the accumulator.
These are the set of 5 flip-flops −
•Sign (S)
•Zero (Z)
•Auxiliary Carry (AC)
•Parity (P)
•Carry (C)
Its bit position is shown in the following table −
Instruction register and decoder
It is an 8-bit register. When an instruction is fetched from memory then it is stored in the Instruction
register. Instruction decoder decodes the information present in the Instruction register.
Timing and control unit
It provides timing and control signal to the microprocessor to perform operations.
Address bus and data bus
Data bus carries the data to be stored. It is bidirectional, whereas address bus carries the location
to where it should be stored and it is unidirectional. It is used to transfer the data & Address I/O
devices.
Microcontroller
•Integrated chip that typically contains integrated CPU, memory
(RAM ROM), I/O ports on a single Chip.
• System on a single Chip/ small computer on a single chip
•Designed to execute a specific task to control a single system
•Smaller & Specified (design cost)
•Differs from Microprocessor general
-purpose chip
-Used to design multi purpose computers or devices
-Require Multiple chips to handle various tasks
•Typically Microcontroller embedded inside some device
• Microcontrollers are important part of Embedded systems
Microcontroller
The features of a microcontroller are similar to that of a
microprocessor like registers, ALU, program counter, flags, stack
pointer, etc. Along with these common features, a microcontroller has
some additional features such as a clock circuit, internal RAM, ROM,
serial and parallel I/O counter.
An microcontroller has the following 12 major
components:
1. ALU (Arithmetic and Logic Unit)
2. PC (Program Counter)
3. Registers
4. Timers and counters
5. Internal RAM and ROM
6. Four general purpose parallel input/output ports
7. Interrupt control logic with five sources of interrupt
8. Serial date communication
9. PSW (Program Status Word)
10. Data Pointer (DPTR)
11. Stack Pointer (SP)
12. Data and Address bus
Microcontroller Microprocessor
Microcontrollers are used to
execute a single task within an
application.
Microprocessors are used for big
applications.
Its designing and hardware cost
is low.
Its designing and hardware cost is
high.
Easy to replace. Not so easy to replace.
It is built with CMOS technology,
which requires less power to
operate.
Its power consumption is high
because it has to control the entire
system.
It consists of CPU, RAM, ROM, I/
O ports.
It doesn’t consist of RAM, ROM, I/O
ports. It uses its pins to interface to
peripheral devices.
Difference between Microprocessor and
Microcontroller
THANK YOU

More Related Content

What's hot

What's hot (20)

8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
Microprocessor and microcontrollers
Microprocessor and microcontrollersMicroprocessor and microcontrollers
Microprocessor and microcontrollers
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
Avr introduction
Avr introductionAvr introduction
Avr introduction
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
Multicore Processor Technology
Multicore Processor TechnologyMulticore Processor Technology
Multicore Processor Technology
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 
ROM(Read Only Memory )
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 

Similar to Overview of microcontroller and microprocessor

MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
Sabin Gautam
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
Ravali Sunki
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 

Similar to Overview of microcontroller and microprocessor (20)

MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Introduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptxIntroduction to 8085 Microprocessor.pptx
Introduction to 8085 Microprocessor.pptx
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
microprocessor8085 power point presentation
microprocessor8085 power point presentationmicroprocessor8085 power point presentation
microprocessor8085 power point presentation
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
8085 microprocessor architecture
8085 microprocessor architecture8085 microprocessor architecture
8085 microprocessor architecture
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
 
Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]Robotics & Embedded IoT System Design [Day-3]
Robotics & Embedded IoT System Design [Day-3]
 
Mod3
Mod3Mod3
Mod3
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
 
Mpmc unit 1 notes
Mpmc unit 1 notesMpmc unit 1 notes
Mpmc unit 1 notes
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Mp 8085
Mp 8085Mp 8085
Mp 8085
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
microprocessor8085pptcomplete-170518063501.pdf
microprocessor8085pptcomplete-170518063501.pdfmicroprocessor8085pptcomplete-170518063501.pdf
microprocessor8085pptcomplete-170518063501.pdf
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptx
 

More from Mrunal Deshkar

More from Mrunal Deshkar (10)

Serial communication
Serial communicationSerial communication
Serial communication
 
LCD interfacing with arduino
LCD interfacing with arduinoLCD interfacing with arduino
LCD interfacing with arduino
 
Arduino Interfacing LED
Arduino Interfacing LEDArduino Interfacing LED
Arduino Interfacing LED
 
Arduino IDE
Arduino IDE Arduino IDE
Arduino IDE
 
Atmega 328p
Atmega 328p Atmega 328p
Atmega 328p
 
Embedded system and its platforms
Embedded system and its platformsEmbedded system and its platforms
Embedded system and its platforms
 
Bode plot
Bode plotBode plot
Bode plot
 
Nyquist plot
Nyquist plotNyquist plot
Nyquist plot
 
Polar plot
Polar plotPolar plot
Polar plot
 
Frequency response analysis I
Frequency response analysis IFrequency response analysis I
Frequency response analysis I
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 

Recently uploaded (20)

80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Overview of microcontroller and microprocessor

  • 3. A microcomputer is a computer similar to any other computer, except that the CPU functions of the microcomputer are performed by the microprocessor. The MPU (microprocessor unit) is the heart of every microcomputer. It performs a number of functions, including. 1. Providing timing and control signals for all elements of the µC 2. Fetching instructions and data from memory 3. Transferring data to and from memory and I/O devices 4. Decoding instructions 5. Performing arithmetic and logic operations called for by instructions 6. Responding to I/O generated control signals such as RESET and INTERRUPT. Microprocessor.
  • 4. Inside the Microprocessor. • Internally, the microprocessor is made up of 3 main units. – The Arithmetic/Logic Unit (ALU) – The Control Unit, memory unit – An array of registers for holding data while. it is being manipulated. _ input unit and output unit. Organization of a Microprocessor based system
  • 5. Arithmetic and Logic Unit : In this area of the microprocessor, computing functions are performed on data. The CPU performs arithmetic operations such as addition and subtraction, and logic operations such as AND, OR, and exclusive OR. Results are stored either in register or in memory or sent to output devices. Register Unit : This area of the microprocessor consists of various registers. The register are used primarily to store data temporarily during the executing of a program. Some of the registers are accessible to the user through instructions. Control Unit : The control unit provides the necessary timing and control signals to all the operations in the microcomputer. It controls the flow of data between the microprocessor and peripherals (including memory). input unit: The input section transfers data and instructions in binary from the outside world to the microprocessor. output unit : The output section transfers data from the microprocessor to output devices Output. Memory unit: Memory stores binary information such as instructions and data, and provides that information to the microprocessor whenever necessary. system bus :The system bus is a communication path between the microprocessor and the peripherals.
  • 6. D7 D6 D5 D4 D3 D2 D1 D0 S Z AC P CY General purpose register There are 6 general purpose registers in 8085 processor, i.e. B, C, D, E, H & L. Each register can hold 8-bit data. These registers can work in pair to hold 16-bit data and their pairing combination is like B-C, D-E & H-L. Program counter It is a 16-bit register used to store the memory address location of the next instruction to be executed. Microprocessor increments the program whenever an instruction is being executed, so that the program counter points to the memory address of the next instruction that is going to be executed. Stack pointer It is also a 16-bit register works like stack, which is always incremented/decremented by 2 during push & pop operations. Temporary register It is an 8-bit register, which holds the temporary data of arithmetic and logical operations. Flag register It is an 8-bit register having five 1-bit flip-flops, which holds either 0 or 1 depending upon the result stored in the accumulator. These are the set of 5 flip-flops − •Sign (S) •Zero (Z) •Auxiliary Carry (AC) •Parity (P) •Carry (C) Its bit position is shown in the following table −
  • 7. Instruction register and decoder It is an 8-bit register. When an instruction is fetched from memory then it is stored in the Instruction register. Instruction decoder decodes the information present in the Instruction register. Timing and control unit It provides timing and control signal to the microprocessor to perform operations. Address bus and data bus Data bus carries the data to be stored. It is bidirectional, whereas address bus carries the location to where it should be stored and it is unidirectional. It is used to transfer the data & Address I/O devices.
  • 9. •Integrated chip that typically contains integrated CPU, memory (RAM ROM), I/O ports on a single Chip. • System on a single Chip/ small computer on a single chip •Designed to execute a specific task to control a single system •Smaller & Specified (design cost) •Differs from Microprocessor general -purpose chip -Used to design multi purpose computers or devices -Require Multiple chips to handle various tasks •Typically Microcontroller embedded inside some device • Microcontrollers are important part of Embedded systems Microcontroller
  • 10. The features of a microcontroller are similar to that of a microprocessor like registers, ALU, program counter, flags, stack pointer, etc. Along with these common features, a microcontroller has some additional features such as a clock circuit, internal RAM, ROM, serial and parallel I/O counter. An microcontroller has the following 12 major components: 1. ALU (Arithmetic and Logic Unit) 2. PC (Program Counter) 3. Registers 4. Timers and counters 5. Internal RAM and ROM 6. Four general purpose parallel input/output ports 7. Interrupt control logic with five sources of interrupt 8. Serial date communication 9. PSW (Program Status Word) 10. Data Pointer (DPTR) 11. Stack Pointer (SP) 12. Data and Address bus
  • 11. Microcontroller Microprocessor Microcontrollers are used to execute a single task within an application. Microprocessors are used for big applications. Its designing and hardware cost is low. Its designing and hardware cost is high. Easy to replace. Not so easy to replace. It is built with CMOS technology, which requires less power to operate. Its power consumption is high because it has to control the entire system. It consists of CPU, RAM, ROM, I/ O ports. It doesn’t consist of RAM, ROM, I/O ports. It uses its pins to interface to peripheral devices. Difference between Microprocessor and Microcontroller