SlideShare a Scribd company logo
1 of 42
Microprocessor and Microcontroller

Presented by
Nitesh Kumar Singh
BME 7th sem
Microprocessor
Introduction
The microprocessor also known as the central processing

unit, is the brain of all computers and many household and
electronic devices. Multiple microprocessors, working
together, are the "hearts" of datacenters, super-computers,
communications products, and other digital devices.
History
Fairchild Semiconductors (founded in 1957) invented the first IC

in 1959.
In 1968, Robert Noyce, Gordan Moore, Andrew Grove
resigned from Fairchild Semiconductors.
They founded their own company Intel (Integrated Electronics).
The first microprocessor invented was of 4-bit, after that 8bit,16-bit,.32-bit & 64-bit are founded
4-bit microprocessor
• Intel 4004
• Intel 4040
 8-bit microprocessor
• Intel 8008
• Intel 8080
• Intel 8085
 16-bit microprocessor
• Intel 8086
• Intel 8088
• Intel 80186 & 80188

History
• Intel 80286
 32-bit microprocessor
• Intel 80386
• Intel 80486
• Intel pentium
• Intel pentium pro
• Intel pentium II
• Intel pentium II xeon
• Intel pentium III
• Intel pentium IV
• Intel dual core

History
History
 64-bit microprocessors
• Intel core 2
• Intel core i7
• Intel core i5
• Intel core i3
Microprocessor (MPU)
MPU (CPU)
Read instructions
Process binary data

8

330_01
Memory
Storage Device
Addresses
Registers

Major Categories
Read/Write Memory

(R/W)
Read-only-Memory
(ROM)

D7

D0
9

330_01
Input/Output (I/O)
Input Devices
Switches and Keypads
Provide binary information to the MPU

Output devices
LEDs and LCDs
Receive binary information from the MPU

10

330_01
Microprocessor Architecture
The MPU communicates with Memory and I/O using the

System Bus
Address bus
 Unidirectional
 Memory and I/O Addresses

Data bus
 Bidirectional
 Transfers Binary Data and Instructions

Control lines
 Read and Write timing signals

11

330_01
Microprocessor – Basic concept
ADDRESS BUS
32-bit / 64-bit wide
CPU
contains
CCU
ALU
data registers
and
pointer registers

CONTROL BUS
Timing signals, ready signals,
interrupts etc

DATA BUS – bidirectional
8-bit / 16-bit / 32-bit / 128-bit
Microprocessor, by-itself, completely useless – must have external peripherals to
Interact with outside world
Microcontroller
Micro controller
A self-contained system in which a processor, support, memory,

and input/output (I/O) are all contained in a single package.
A small computer system on a single IC

14
History of Microcontroller
First used in 1975(Intel 8048)
The introduction of EEPROM in 1993, allowed

microcontrollers to be electrically erased
The same year, Atmel introduced the first microcontroller using
Flash memory.
Microcontroller
Types of microcontroller
Basic Features of Microcontroller
Processor reset
Device clocking
Central processor
Program and Variable Memory (RAM)
I/O pins
Instruction cycle timers
More Sophisticated Features
Built-in monitor/debugger program
Interrupt capability
Analog I/O (PWM and variable dc I/O
Serial I/O (synchronous, a synchronous)
Parallel I/O (including direct interface to a master processor
External memory interface
Basic microcontroller architecture (1/3)
Basic microcontroller architecture (2/3)
Memory
RAM
ROM
Store data and code

CPU
Mathematical and logical operation
Memory units are called Register
Basic microcontroller architecture (3/3)
• BUS
– Group of 8,16 or more wires
– Three type, address bus, data bus and control bus

• Input-output unit
– port A, port B, port C … …
– Input, output and bidirectional ports

• Serial communication
• Timer unit
• Watchdog
– Automatic reset to prevent stall

• Analog to Digital Converter (ADC)
Processor Architecture
CISC
Large amount of instructions each carrying out a different

permutation of the same operation
Functionality of the instructions is more dependent upon
the processor’s designer.

RISC

Fundamental set of instructions
More control for users to design their own operations
Von Neumann Architecture
Processor Architecture
Princeton (Van Neumann) architecture

Common memory for program and data
Simple chip design
Execution of an instruction can take multiple

cycles
Processor Architecture
Princeton architecture example

Mov acc, reg
Cycle 1
Read instruction
Cycle 2
Read data out of
Ram and put into
Acc
Processor Architecture
Harvard architecture

Separate memory space program and data
Instructions are executed in one cycle
Easier timing of loops and delays
Harvard Architecture
Processor Architecture
Harvard architecture example

Mov acc, reg
Cycle 1
Execute previous
instruction
Read “move acc, reg”
Cycle 2
Execute “move acc,
reg” instruction
Block diagram of Microcontroller
Memory
The memory in a computer system stores the data and

instructions of the programs.

Adress
decoder

Adress
bus

Storage
Area

Data
bus

Other signals
(Vcc,Gnd, CS,
etc.)
Microcontrollers Memory Types
Variable Area (RAM)
Control Store (ROM)
Program Counter Stack
I/O Space (Hardware interface Registers)
I/O Space
- Memory Mapped I/O Versus Programmed I/O
Programmed I/O
Special instructions such as IN and OUT are used to transfer
data between a CPU register and an external device.
Memory Mapped I/O

Standard instructions are used to transfer data between a CPU
register and an external device.
I/O ports appear as memory addresses.
Interrupts
 Instruction support for interrupts
 Internal CPU handling of interrupts
 Interruptible instructions

36
Instruction support for interrupts
Processors provide two instructions, enable priority

interrupt (EPI) and for disable priority interrupt (DPI).
These are atomic instructions that are used for many
purposes, such as buffering, within interrupt handlers, and
for parameter passing.
Internal CPU handling of interrupts
Single interrupt support

Step 1: finish the currently executing macroinstruction. Step 2: save the contents of the
program counter to the interrupt return location. Step 3: load the address held in the
interrupt handler location into the program counter. Resume the fetch and execute
sequence.
38
Internal CPU handling of interrupts
Multiple interrupt support

Step 1: complete the currently executing instruction. Step 2: save the contents of PC to
interrupt return location i. Step 3: load the address held in interrupt handler location i into the
PC. Resume the fetch-execute cycle.
Interruptible instructions
 In rare instances individuation macroinstruction may need to be

interruptible.
 This might be the case where the instruction takes a great deal of
time to complete. E.g. a memory to memory instruction that
moves large amounts of data.
 In most cases, such an instruction should be interruptible between
blocks to reduce interrupt latency. However, interrupting this
particular instruction could cause data integrity problems.
Advantages of Microcontroller over
Microprocessor
Pin count down
Design time down, Board layout size down
Upgrade path easier – matching between peripherals for speed
Cost down – bulk purchases
Reliability up
Common software / hardware design environment available

from manufacturer
Issues when using microcontroller
 Two types of memory – speed issues when using
 On-chip – fast, easy to access, “almost like a register”, limited amount of on-chip

memory available
 Off-chip – slower
 Use on-chip memory in a “cache” mode (copy off-chip data to on-chip when
processing data, then copy back)

 External components still there
 E.g. Video CODECs – need to use DMA – Direct Memory Access – so that the

controller can get on with the “processing” and let something else worry about
moving data in and out of the chip

 Real time environment
 Event driven – can’t WAIT for a device to become ready, can’t POLL to see if

device is ready, interrupt handling is key

 All these resources are “power hungry” and compete for resources (data busses

etc) – special features
Difference between
microprocessor & microcontroller
Microprocessor

Microcontroller

Contains ALU, general purpose register, stack
pointer, programme counter, clock timing &
interrupt circuit

Contains the circuitary of microprocessor & in
addition it has built in ROM, I/O devices,
timer & counter

It has too many instructions to move the data
between CPU & memory

It has one or two instruction to move the data
between CPU & memory

It has one or two bit handling instruction

It has many bit handling instruction

Access time for memory & I/O devices is more Less access time for built in memory & I/O
devices
Microprocessor based system requires more
hardware

Microcontroller based system requires less
hardware, reducing PCB size & increasing the
reliability

More flexible in design point of view

Less flexible in design point of view

It has single memory map for data & code

It has separate memory map for data & code

Less number of pins are malfunctioned

More number of pins are malfunctioned
Thank you

More Related Content

What's hot

LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERsravannunna24
 
Microprocessor vs. microcontroller
Microprocessor vs. microcontrollerMicroprocessor vs. microcontroller
Microprocessor vs. microcontrolleraviban
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduinoAhmed Sakr
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersAditya Porwal
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessorsobhadevi
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
Microprocessor and microcontrollers
Microprocessor and microcontrollersMicroprocessor and microcontrollers
Microprocessor and microcontrollersHiran Gabriel
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introductionShubham Singh
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 MicrocontrollerASHISH RANJAN
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorVikas Gupta
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollerselprocus
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adcPRADEEP
 

What's hot (20)

Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Microprocessor vs. microcontroller
Microprocessor vs. microcontrollerMicroprocessor vs. microcontroller
Microprocessor vs. microcontroller
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Microprocessor and microcontrollers
Microprocessor and microcontrollersMicroprocessor and microcontrollers
Microprocessor and microcontrollers
 
MicroProcessors
MicroProcessors MicroProcessors
MicroProcessors
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 

Similar to Microprocessor & microcontroller

microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfMECHANICALENGINEERIN19
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptxPratik Gohel
 
Micro controller and dsp processor
Micro controller and dsp processorMicro controller and dsp processor
Micro controller and dsp processorShubhamMishra485
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxbhaveshagrawal35
 
Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 
Bharath technical seminar.pptx
Bharath technical seminar.pptxBharath technical seminar.pptx
Bharath technical seminar.pptxMadhav Reddy
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11gajani121
 
Chapter 4 Microprocessor CPU
Chapter 4 Microprocessor CPUChapter 4 Microprocessor CPU
Chapter 4 Microprocessor CPUaskme
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptHAriesOa1
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsmanishpatel_79
 
Lecture notes on microprocessor and microcomputer
Lecture notes on microprocessor and microcomputerLecture notes on microprocessor and microcomputer
Lecture notes on microprocessor and microcomputerEkeedaPvtLtd
 
Free Hardware & Networking Slides by ITE Infotech Private Limited
Free Hardware & Networking Slides by ITE Infotech Private LimitedFree Hardware & Networking Slides by ITE Infotech Private Limited
Free Hardware & Networking Slides by ITE Infotech Private LimitedHemraj Singh Chouhan
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptxISMT College
 
microprocessor-and-microcontroller
microprocessor-and-microcontrollermicroprocessor-and-microcontroller
microprocessor-and-microcontrollerjhcid
 
microprocessor
microprocessormicroprocessor
microprocessorillpa
 

Similar to Microprocessor & microcontroller (20)

microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Lect 1 Into.pptx
Lect 1 Into.pptxLect 1 Into.pptx
Lect 1 Into.pptx
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Introduction to embedded System.pptx
Introduction to embedded System.pptxIntroduction to embedded System.pptx
Introduction to embedded System.pptx
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Micro controller and dsp processor
Micro controller and dsp processorMicro controller and dsp processor
Micro controller and dsp processor
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Bharath technical seminar.pptx
Bharath technical seminar.pptxBharath technical seminar.pptx
Bharath technical seminar.pptx
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11
 
Chapter 4 Microprocessor CPU
Chapter 4 Microprocessor CPUChapter 4 Microprocessor CPU
Chapter 4 Microprocessor CPU
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
Lecture notes on microprocessor and microcomputer
Lecture notes on microprocessor and microcomputerLecture notes on microprocessor and microcomputer
Lecture notes on microprocessor and microcomputer
 
Free Hardware & Networking Slides by ITE Infotech Private Limited
Free Hardware & Networking Slides by ITE Infotech Private LimitedFree Hardware & Networking Slides by ITE Infotech Private Limited
Free Hardware & Networking Slides by ITE Infotech Private Limited
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
 
microprocessor-and-microcontroller
microprocessor-and-microcontrollermicroprocessor-and-microcontroller
microprocessor-and-microcontroller
 
microprocessor
microprocessormicroprocessor
microprocessor
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 

Recently uploaded

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Recently uploaded (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Microprocessor & microcontroller

  • 1. Microprocessor and Microcontroller Presented by Nitesh Kumar Singh BME 7th sem
  • 3. Introduction The microprocessor also known as the central processing unit, is the brain of all computers and many household and electronic devices. Multiple microprocessors, working together, are the "hearts" of datacenters, super-computers, communications products, and other digital devices.
  • 4. History Fairchild Semiconductors (founded in 1957) invented the first IC in 1959. In 1968, Robert Noyce, Gordan Moore, Andrew Grove resigned from Fairchild Semiconductors. They founded their own company Intel (Integrated Electronics). The first microprocessor invented was of 4-bit, after that 8bit,16-bit,.32-bit & 64-bit are founded
  • 5. 4-bit microprocessor • Intel 4004 • Intel 4040  8-bit microprocessor • Intel 8008 • Intel 8080 • Intel 8085  16-bit microprocessor • Intel 8086 • Intel 8088 • Intel 80186 & 80188 History
  • 6. • Intel 80286  32-bit microprocessor • Intel 80386 • Intel 80486 • Intel pentium • Intel pentium pro • Intel pentium II • Intel pentium II xeon • Intel pentium III • Intel pentium IV • Intel dual core History
  • 7. History  64-bit microprocessors • Intel core 2 • Intel core i7 • Intel core i5 • Intel core i3
  • 8. Microprocessor (MPU) MPU (CPU) Read instructions Process binary data 8 330_01
  • 9. Memory Storage Device Addresses Registers Major Categories Read/Write Memory (R/W) Read-only-Memory (ROM) D7 D0 9 330_01
  • 10. Input/Output (I/O) Input Devices Switches and Keypads Provide binary information to the MPU Output devices LEDs and LCDs Receive binary information from the MPU 10 330_01
  • 11. Microprocessor Architecture The MPU communicates with Memory and I/O using the System Bus Address bus  Unidirectional  Memory and I/O Addresses Data bus  Bidirectional  Transfers Binary Data and Instructions Control lines  Read and Write timing signals 11 330_01
  • 12. Microprocessor – Basic concept ADDRESS BUS 32-bit / 64-bit wide CPU contains CCU ALU data registers and pointer registers CONTROL BUS Timing signals, ready signals, interrupts etc DATA BUS – bidirectional 8-bit / 16-bit / 32-bit / 128-bit Microprocessor, by-itself, completely useless – must have external peripherals to Interact with outside world
  • 14. Micro controller A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package. A small computer system on a single IC 14
  • 15. History of Microcontroller First used in 1975(Intel 8048) The introduction of EEPROM in 1993, allowed microcontrollers to be electrically erased The same year, Atmel introduced the first microcontroller using Flash memory.
  • 18. Basic Features of Microcontroller Processor reset Device clocking Central processor Program and Variable Memory (RAM) I/O pins Instruction cycle timers
  • 19. More Sophisticated Features Built-in monitor/debugger program Interrupt capability Analog I/O (PWM and variable dc I/O Serial I/O (synchronous, a synchronous) Parallel I/O (including direct interface to a master processor External memory interface
  • 21. Basic microcontroller architecture (2/3) Memory RAM ROM Store data and code CPU Mathematical and logical operation Memory units are called Register
  • 22. Basic microcontroller architecture (3/3) • BUS – Group of 8,16 or more wires – Three type, address bus, data bus and control bus • Input-output unit – port A, port B, port C … … – Input, output and bidirectional ports • Serial communication • Timer unit • Watchdog – Automatic reset to prevent stall • Analog to Digital Converter (ADC)
  • 23. Processor Architecture CISC Large amount of instructions each carrying out a different permutation of the same operation Functionality of the instructions is more dependent upon the processor’s designer. RISC Fundamental set of instructions More control for users to design their own operations
  • 25. Processor Architecture Princeton (Van Neumann) architecture Common memory for program and data Simple chip design Execution of an instruction can take multiple cycles
  • 26. Processor Architecture Princeton architecture example Mov acc, reg Cycle 1 Read instruction Cycle 2 Read data out of Ram and put into Acc
  • 27. Processor Architecture Harvard architecture Separate memory space program and data Instructions are executed in one cycle Easier timing of loops and delays
  • 29. Processor Architecture Harvard architecture example Mov acc, reg Cycle 1 Execute previous instruction Read “move acc, reg” Cycle 2 Execute “move acc, reg” instruction
  • 30. Block diagram of Microcontroller
  • 31. Memory The memory in a computer system stores the data and instructions of the programs. Adress decoder Adress bus Storage Area Data bus Other signals (Vcc,Gnd, CS, etc.)
  • 32. Microcontrollers Memory Types Variable Area (RAM) Control Store (ROM) Program Counter Stack I/O Space (Hardware interface Registers)
  • 33. I/O Space - Memory Mapped I/O Versus Programmed I/O Programmed I/O Special instructions such as IN and OUT are used to transfer data between a CPU register and an external device. Memory Mapped I/O Standard instructions are used to transfer data between a CPU register and an external device. I/O ports appear as memory addresses.
  • 34. Interrupts  Instruction support for interrupts  Internal CPU handling of interrupts  Interruptible instructions 36
  • 35. Instruction support for interrupts Processors provide two instructions, enable priority interrupt (EPI) and for disable priority interrupt (DPI). These are atomic instructions that are used for many purposes, such as buffering, within interrupt handlers, and for parameter passing.
  • 36. Internal CPU handling of interrupts Single interrupt support Step 1: finish the currently executing macroinstruction. Step 2: save the contents of the program counter to the interrupt return location. Step 3: load the address held in the interrupt handler location into the program counter. Resume the fetch and execute sequence. 38
  • 37. Internal CPU handling of interrupts Multiple interrupt support Step 1: complete the currently executing instruction. Step 2: save the contents of PC to interrupt return location i. Step 3: load the address held in interrupt handler location i into the PC. Resume the fetch-execute cycle.
  • 38. Interruptible instructions  In rare instances individuation macroinstruction may need to be interruptible.  This might be the case where the instruction takes a great deal of time to complete. E.g. a memory to memory instruction that moves large amounts of data.  In most cases, such an instruction should be interruptible between blocks to reduce interrupt latency. However, interrupting this particular instruction could cause data integrity problems.
  • 39. Advantages of Microcontroller over Microprocessor Pin count down Design time down, Board layout size down Upgrade path easier – matching between peripherals for speed Cost down – bulk purchases Reliability up Common software / hardware design environment available from manufacturer
  • 40. Issues when using microcontroller  Two types of memory – speed issues when using  On-chip – fast, easy to access, “almost like a register”, limited amount of on-chip memory available  Off-chip – slower  Use on-chip memory in a “cache” mode (copy off-chip data to on-chip when processing data, then copy back)  External components still there  E.g. Video CODECs – need to use DMA – Direct Memory Access – so that the controller can get on with the “processing” and let something else worry about moving data in and out of the chip  Real time environment  Event driven – can’t WAIT for a device to become ready, can’t POLL to see if device is ready, interrupt handling is key  All these resources are “power hungry” and compete for resources (data busses etc) – special features
  • 41. Difference between microprocessor & microcontroller Microprocessor Microcontroller Contains ALU, general purpose register, stack pointer, programme counter, clock timing & interrupt circuit Contains the circuitary of microprocessor & in addition it has built in ROM, I/O devices, timer & counter It has too many instructions to move the data between CPU & memory It has one or two instruction to move the data between CPU & memory It has one or two bit handling instruction It has many bit handling instruction Access time for memory & I/O devices is more Less access time for built in memory & I/O devices Microprocessor based system requires more hardware Microcontroller based system requires less hardware, reducing PCB size & increasing the reliability More flexible in design point of view Less flexible in design point of view It has single memory map for data & code It has separate memory map for data & code Less number of pins are malfunctioned More number of pins are malfunctioned