SlideShare a Scribd company logo
Historical Perspective
• Intel engineer – Ted Hoff – pioneer.
• In 1969 – Intel – was in the business of semiconductor
memory only. (64 – bit bipolar RAM chip)
• Japanese company – Busicom – contacted Intel to design
programmable calculator. The original design called for 12
different functions with hard wired programming.
• Ted Hoff suggested a general purpose programmable chip.
• The first 4-bit microprocessor - 4004 – in year 1971 (2300
transistors, 640 bytes memory – addressing capability and
108 KHz clock)
• Intel 8008, 8080, 8085 , 8086 etc
• Motorola 6800
• Zilog Z80
• Moores Law: Number of transistor per integrated circuit
would double every 18 months
• By the year 2000 – 15 million transistor, 400MHz to 1.5GHz
clock, one terabyte (10 12 ) of memory. (Pentium – IV)
Microprocessor
• The microprocessor is a programmable device that
takes in a numbers, performs on them arithmetic and
logical operations according to programme stored in a
memory and produce the another number as a result.
• It is multipurpose, programmable, clock driven, register
based electronic device.
• Reads binary instruction from memory, accepts binary
data as input and processes the data according to
those instructions, and provides result as output.
• Programmable device – computing and decision
making capability.
Memory
Input
Output
Microprocessor
A Programmable Machine
Hardware : The physical components of the system.
Program : A set of instructions to perform a task.
Software : A group of programs.
Four Components of a typical
Programmable machine
• Microprocessor
• Input device
• Output Device
• Memory
Microprocessor as CPU (MPU)
Memory
Input
Output
CPU
Block Diagram of a Computer
ALU
CONROL
UNIT
• CPU contains
– ALU & Control Unit
– Registers
– Instruction decoder
– Counters and
– Control lines
 It reads instruction from memory and performs task specified.
 It communicates with input/output devices either to accept or to send
data.
 The communication process of CPU is controlled by Control Unit.
Memory
Input
Output
Microprocessor
as
CPU
Block Diagram of a Computer
with the microprocessor as CPU
 CPU with discrete components - 1990
Replaced by single chip with the advent of
Integrated Circuit Technology.
 A computer with a microprocessor as its CPU
is known as microcomputer
 MPU is a complete processor unit with the
necessary control unit.
 Because of limited number of pins available
on the MPU package , some of the signals need
to be generated outside using some desecrate
devices.
MPU
Memory I/O
Peripheral Devices
A/D Converters
Timers
Serial I/O
Microcontroller
Microcontrollers or MCU
- MPU, memory, I/O devices
and some peripheral devices on
a single chip
- Entire computer on single chip
Organization of a Microprocessor – Based System
Mcroprocessor
ALU Register
Array
Control Unit
I/O
Input / Output
Memory
ROM R / WM
System Bus
Microprocessor
 reads instructions from memory.
 communicates with all peripherals using system bus.
 controls timing of information flow.
 performs the computing task specified in a program.
Memory
• stores binary information ( instructions and data).
• provides the instructions and data to the
microprocessor on request.
• stores the result and data for the microprocessor.
 Arithmetic/Logic Unit: The ALU unit performs arithmetic operations such as
addition and subtraction, and logic operations such as AND, OR, and exclusive
OR.
 Register Array: This area of the microprocessor consists of various registers
identified by letters such as B, C, D, E, H, and L. These registers are primarily
used to store data temporarily during the execution of a program and 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 memory and peripherals.
 Memory: Memory stores binary information such as instructions and data, and
provides that information to the microprocessor whenever necessary. To execute
programs, the microprocessor reads instructions and data from memory and
performs the computing operations in its ALU section. Results are either
transferred to the output section for display or stored in memory for later use.
Read-Only memory (ROM) and Read/Write memory (R/WM), popularly known
as Random- Access memory (RAM).
The input device:
Enters data and instructions under the control of a program such as a
monitor program
- keyboard, switches, ADCs etc.
The output device:
Accepts data from the microprocessor as specified in a program
- LED / LCD display, CRT, video screen, printer, X -Y plotters,
magnetic tapes, DACs etc.
The System Bus:
Carries bits (information) between the microprocessor and memory and
I/Os.
How does microprocessor works?
• Assume that a program and data is already entered in R/W
memory
• The sequence of the process is read, interpret and perform.
• The microprocessor fetches the first instruction from
memory, decodes it and executes that instruction.
• The sequence of fetch, decode and execute is continued
until the microprocessor comes across an instruction to stop.
• During the entire process microprocessor uses:
– System bus : To fetch instruction and data from the
memory.
– Registers : To store data temporarily
– ALU : To perform the computing function
• Finally it sends the result to the output device and/or stores
the result in the memory.
Microprocessor Instruction Set and
Computer Languages
• Microprocessor recognize and operate in binary numbers.
• Each Microprocessor has its own binary word, meanings and
language based on its logic design.
• The words are formed by combining number of bits for a
given machine.
• Instruction is a command in binary that is recognize and
executed by the processor to accomplish a task.
• Word length
– the number of bits microprocessor recognizes and
processes at a time.
– 4-bits (for small) to 64 –bits for large & high speed
computers.
– 4 – bit, 8 – bit, 16 – bit, 32 – bit and 64 – bit
microprocessors.
– A byte – group of 8 –bits.
Machine Language, Assembly Language,
and High-level Languages
• Three types of computer languages
1. Machine language
• Only language microprocessor / computer directly understands
• “Natural language” of microprocessor / computer
• Defined by hardware design
– Machine-dependent
• Generally consist of strings of numbers
– Ultimately 0s and 1s
• Instruct computers to perform elementary operations
– One at a time
• Cumbersome for humans (users)
• Example:
– 1010 1100
– 1110 0011
– 1000 0001
2. Assembly language
• English-like abbreviations representing elementary
microprocessor / computer operations
• Machine dependent.
• Clearer to humans
• Incomprehensible to (can’t be understood by) computers
– So require Translator Program ( called assembler or cross -
assembler).
» Convert Mnemonics to machine language
• Example:
LDA C200
ADD B
INR A
3. High-level languages
• Similar to everyday English, use common mathematical notations
• Single statements accomplish substantial tasks
– Assembly language requires many instructions to accomplish simple
tasks
• Translator programs (compilers)
– Convert to machine language
• Interpreter programs
– Directly execute high - level language programs
• Machine independent.
• Compiler and interpreter require large memory space (because
instruction in English requires several machine codes to translate in
binary)
• Translation : Source Code  Compiler / Interpreter  Object Code
• Example:
grossPay = basePay + overTimePay
• BASIC, PASCAL, C, C++, JAVA etc.
Assembly Language High level Language
• compact, requires less
memory space.
• more efficient.
• machine dependent.
• requires hand assembly or
the assembler
• One mnemonic requires one
machine code.
• Debugging is difficult
• requires large memory space.
• less efficient
• machine independent.
• requires complier or
interpreter.
• One statement requires many
machine codes.
• Debugging is easy
Writing and executing an assembly
language program
• A program is a set of logically related instructions written in a specific sequence
to accomplish a task.
• To write and execute an assembly language program on a single board
microprocessor, with a hex keypad for input and LED display for output the
following steps are necessary.
– Write the instructions in mnemonics obtain from the instruction set supplied
by the manufacturers.
– Find the hexadecimal code for each instruction from the instruction set.
– Enter (Load) the program in the user memory in a sequential order by using
hex keyboard.
– Execute the program. The result will be displayed by the LED display.
 Buses
 Registers
 ALU
 Flags
 Program Counter(PC)
 Stack Pointer(SP)
 Instruction registers and decoders
Timing and control circuit
Accumulator
ALU
Flags
Instruction
Register
Register
Arrays
Memory
Pointer
Register
Timing and Control Unit
16-bit
Address
Bus
8-bit
Data
Bus
Control
Signals
8085 Hardware Model
S
Y
S
T
E
M
B
U
S
TWO SEGMENTS:
One includes
• Accumulator
• ALU
• Flags &
• Instruction Register
The second Segment includes
• 8-bit and 16-bit Registers
Both the segments are
connected with System Bus
ALU performs arithmetic and logic operations, and results are stored in accumulator
The flags are set or reset to reflect the result. 16-bit address bus identifies the memory
Location, 8-bit data bus is used to transfer data and control bus for timing signals.
Hardware Model of 8085 Microprocessor
8085 PROGRAMMING MODEL
• The Programming Model consists:
– Two 8-bit special purpose registers
• Accumulator
• Flag Register
– Six 8-bit general purpose registers
• B, C, D, E, H and L Registers
– Two 16-bit special purpose registers.
• Stack Pointer
• Program Counter
8085 Bus Organization
• In a computer system, each peripheral device or
memory location is identified by a binary number
called address, and address bus is used to carry
this address
• The address bus:
– is a group of 16 lines A15 – A0
– Unidirectional
– Used to identify a peripheral or a memory location.
The 8085 microprocessor has 16-bit address line, so
addressing capability of 216 = 65536 (64K) memory
locations.
1K = 210 = 1024 memory locations
Accumulator A (8) Flag Register (8)
B (8) C (8)
D (8) E (8)
L (8)
H (8)
Stack Pointer (SP) (16)
Program Counter (PC) (16)
Data Bus Address Bus
Bidirectional
Unidirectional
8
Lines
16
Lines
Programming Model of 8085
Register A (Accumulator):
>> It is tri-state 8-bit register
>> After performing arithmetic and logic operations ALU places
result on the internal data bus from there it is generally stored in
accumulator.
>> It is also used in load and store operations,
as well as in input /output (I/O) operations.
>> Most of the times the results of arithmetic and logical operations
is stored in register A, hence it is called as accumulator.
>> The register A can be used as a general-purpose register.
Flag register is a group of five flip-flops used to
give status of the operations performed by ALU
Program Counter:
• Is a 16 bit special purpose register, which stores the address of the next instruction
to be fetched.
• Acts as a pointer to the next instruction. How processor increments program counter
depends on the nature of instruction.
• In case of JMP and CALL instructions, address followed by JMP and CALL
- instruction is placed in the program counter.
• In case of Conditional JMP and Conditional CALL instructions,
address followed by JMP and CALL instructions is placed in the program counter
if the condition is satisfied; otherwise the program counter is incremented by three
so as to point the address of the next instruction to be fetched.
Stack Pointer:
• The stack is the reserved area of the memory in the RAM
where the temporary data can be stored.
• It is used to hold the address of the most recent stack entry.
Why PC and SP are 16 - bit registers?
PC and SP are the memory pointers and the address
of any memory location in 8085 microprocessor is 16 – bit
address, so to hold this 16-bit address PC and SP must be
16 – bit registers.
D7 D6 D5 D4 D3 D2 D1 D0
S Z X AC X P X CY
Flag Register Format
S - Sign flag
Z - Zero flag
AC - Auxiliary carry flag
P - Parity flag and
CY - Carry flag
Busses
 Data Bus
 Address Bus
 Control Bus
• Data bus:
– Group of 8 – lines.
– Bidirectional.
– Use for data transfer form MPU to peripherals
/ memory or vise versa.
– The numbers that can appear on data bus
ranging from 00H to FFH
– The 8085 microprocessor is 8-bit processor
– Intel 8086, Zilog Z8000, Motorolla 6800 – 16-
bit
– Intel 80386/486 – 32-bit processors.
• Control bus:
– Comprised of various single lines, that carry
timing / synchronization signal.
– the MPU generates specific control signals
for every operations such as Memory read,
memory write, I/O read or I/O write. These
signals are used to identify a device type with
which the MPU intended to communicate.
Data Bus
8 bits wide (D0 D1…D7).So Bus Width is 8
“Bi-directional”.
Information flows both ways between the
microprocessor and memory or I/O.
The 8085 uses the data bus to transfer the
binary information.Word length is 8.
Word length = Bus Width
Control Bus
It must for Proper Operation
I/O signal Control lines
Synchronize the operation between
microprocessor and external circuitry
Address Bus
16 bits wide (A0 A1…A15)
Therefore, the 8085 can access locations with numbers from
0 to 65,536. Or, the 8085 can access a total of 64K addresses.
“Unidirectional”.
Information flows out of the microprocessor and into the
memory or peripherals.
Divide into 2 part: A15 – A8 (upper) and
AD7 – AD0 (lower).
A15 – A8 : Unidirectional, known as ‘high order address’.
AD7 – AD0 : bidirectional and dual purpose (address and data
placed once at a time).
AD7 – AD0 also known as ‘low order address’.
To execute an instruction, at early stage AD7 – AD0 uses as
address bus and alternately as data bus for the next cycle.
The method to change from address bus to data bus known as
‘bus multiplexing’.
Registers
• Six 8 bit General purpose
Registers to store the data
• 16 Bit Registers pair
BC,DE,HL
H & L is used as data pointer
ALU
 Heart of microprocessor
 arithmetic & logic operation. Such as ADD,OR etc.
Accumulator
8-bit register that is part of the ALU Used to store 8-bit data and
in performing 8-bit arithmetic and logical operations, and in
storing the results operations or they can be transferred to the
internal data bus for use elsewhere
Flags register
Sign Flag
AC-Auxiliary Carry
This flag is set when a carry is generated from bit D3
and passed to D4 . This flag is used only internally
for BCD operations.
P-Parity flag
After an ALU operation if the result has an
even no of 1’s the p-flag is set. Otherwise it
is cleared. So, the flag can be used to
indicate even parity.
Example: What are the states of the Auxiliary Carry (AC) and Carry Flag (CY)
after executing the following 8085 program?
MVI H, 5DH
MVI L, 6BH
MOV A, H
ADD L
HLT
H = 0101 1101
L = 0110 1011
A= 11 00 1000
here AC= 1 and CY= 0
PROGRAM COUNTER (PC)
STACK POINTER (SP)
Intel 8085 Pin Configuration
8085 PIN DIAGRAM
8085 PIN DESCRIPTION
 READY: This an output signal used to check the
status of output device. If it is low, µP will WAIT until
it is high.
 TRAP: It is an Edge triggered highest priority , non
mask able interrupt. After TRAP, restart occurs and
execution starts from address 0024H.
 RST 5.5,6.5,7.5:These are maskable interrupts and
have low priority than TRAP.
 INTR¯& INTA:INTR is a interrupt request signal after
which µP generates INTA or interrupt acknowledge
signal.
 IO/M¯:This is output pin or signal used to indicate
whether 8085 is working in I/O mode(IO/M¯=1) or
Memory mode(IO/M¯=0 ).
8085 PIN DESCRIPTION
Some important pins are :
• AD0-AD7: Multiplexed Address and data lines.
• A8-A15: Tri-stated higher order address lines.
• ALE: Address latch enable is an output signal.It goes
high when operation is started by processor .
• S0,S1: These are the status signals used to indicate type
of operation.
• RD¯: Read is active low input signal used to read data
from I/O device or memory.
• WR¯:Write is an active low output signal used write data
on memory or an I/O device.
8085 PIN DESCRIPTION
 HOLD & HLDA:HOLD is an input signal .When µP receives
HOLD signal it completes current machine cycle and stops
executing next instruction. In response to HOLD µP
generates HLDA that is HOLD Acknowledge signal.
 RESET IN¯:This is input signal. When RESET IN¯ is low µp
restarts and starts executing from location 0000H.
 SID: Serial input data is input pin used to accept serial 1 bit
data .
 X1, X2 :These are clock input signals and are connected to
external LC, or RC circuit.These are divide by two so if 6
MHz is connected to X1X2, the operating frequency
becomes 3 MHz.
 VCC & VSS:Power supply VCC=+5Volt & VSS=-GND
reference.
Control and Status Signals.
Direct Memory Access (DMA)
• DMA is an IO technique where external IO device
requests the use of the MPU buses.
• Allows external IO devices to gain high speed access to
the memory.
– Example of IO devices that use DMA: disk memory system.
• HOLD and HLDA are used for DMA.
• If HOLD=1, 8085 will place it address, data and control
pins at their high-impedance.
• A DMA acknowledgement is signaled by HLDA=1.
46
MPU Communication and Bus Timing
Figure : Moving data form memory to MPU using instruction MOV C, A
(code machine 4FH = 0100 1111)
47
• The Fetch Execute Sequence :
1. The μp placed a 16 bit memory address from
PC (program counter) to address bus.
– Figure 4: at T1
– The high order address, 20H, is placed at A15 – A8.
– the low order address, 05H, is placed at AD7 - AD0 and
ALE is active high.
– Synchronously the IO/M is in active low condition to show it
is a memory operation.
2. At T2 the active low control signal, RD, is
activated so as to activate read operation; it is to
indicate that the MPU is in fetch mode
operation.
MPU Communication and Bus
Timing
48
Figure : 8085 timing diagram for Opcode fetch cycle for MOV C, A .
MPU Communication and Bus Timing
Microprocessor fundamentals

More Related Content

What's hot

8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
8259 a
8259 a8259 a
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
AKHIL MADANKAR
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
THANDAIAH PRABU
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
Siddhesh Palkar
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approach
GopinathD17
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
Avin Mathew
 
Pentium processor
Pentium processorPentium processor
Pentium processor
Pranjali Deshmukh
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
INTEL 80386 MICROPROCESSOR
INTEL  80386  MICROPROCESSORINTEL  80386  MICROPROCESSOR
INTEL 80386 MICROPROCESSOR
Annies Minu
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
Dr.YNM
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memories
Abhilash Nair
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
swaminath kanhere
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
Ravi Anand
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communication
sandip das
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction set
Manoj Babar
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
Shubham Singh
 

What's hot (20)

8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
8259 a
8259 a8259 a
8259 a
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approach
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
INTEL 80386 MICROPROCESSOR
INTEL  80386  MICROPROCESSORINTEL  80386  MICROPROCESSOR
INTEL 80386 MICROPROCESSOR
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memories
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communication
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction set
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 

Similar to Microprocessor fundamentals

Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
Kiran Bagale
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
HAriesOa1
 
Micro controller
Micro controllerMicro controller
Micro controller
Devi Prasad
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
SaifulAhmad27
 
M&i(lec#01)
M&i(lec#01)M&i(lec#01)
M&i(lec#01)
Majid Mehmood
 
Processors
ProcessorsProcessors
Processors
HIMANSHU JAIN
 
CAO.pptx
CAO.pptxCAO.pptx
CAO.pptx
FarhanaMariyam1
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
Lucky Sithole
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
siminkhan
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
deval patel
 
01 introduction to microcomputers
01 introduction to microcomputers01 introduction to microcomputers
01 introduction to microcomputers
ayeshasafdar8
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
Ankur Kumar
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
SMITA V MORE
 
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
Chapter_2_Embedded Systems Design_introduction_ARM.pdfChapter_2_Embedded Systems Design_introduction_ARM.pdf
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
EngrNoumanMemon
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
xavierpaulino
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
SangeetaTripathi8
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
ISMT College
 

Similar to Microprocessor fundamentals (20)

Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
 
I. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.pptI. Introduction to Microprocessor System.ppt
I. Introduction to Microprocessor System.ppt
 
Micro controller
Micro controllerMicro controller
Micro controller
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
M&i(lec#01)
M&i(lec#01)M&i(lec#01)
M&i(lec#01)
 
Processors
ProcessorsProcessors
Processors
 
CAO.pptx
CAO.pptxCAO.pptx
CAO.pptx
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
01 introduction to microcomputers
01 introduction to microcomputers01 introduction to microcomputers
01 introduction to microcomputers
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
 
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
Chapter_2_Embedded Systems Design_introduction_ARM.pdfChapter_2_Embedded Systems Design_introduction_ARM.pdf
Chapter_2_Embedded Systems Design_introduction_ARM.pdf
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
 

More from JLoknathDora

Post-Fertilization and Formation & Development of Seed and Fruit.pdf
Post-Fertilization and Formation & Development of Seed and Fruit.pdfPost-Fertilization and Formation & Development of Seed and Fruit.pdf
Post-Fertilization and Formation & Development of Seed and Fruit.pdf
JLoknathDora
 
Air, Water and Forensic Chemistry
Air, Water and Forensic ChemistryAir, Water and Forensic Chemistry
Air, Water and Forensic Chemistry
JLoknathDora
 
Take care yourself
Take care yourselfTake care yourself
Take care yourself
JLoknathDora
 
Life in polymers
Life in polymersLife in polymers
Life in polymers
JLoknathDora
 
Our nature, our responsibility
Our nature, our responsibilityOur nature, our responsibility
Our nature, our responsibility
JLoknathDora
 
DIET, HEALTH AND CARE
DIET, HEALTH AND CAREDIET, HEALTH AND CARE
DIET, HEALTH AND CARE
JLoknathDora
 
Chemistry of atoms and molecules of our body
Chemistry of atoms and molecules of our bodyChemistry of atoms and molecules of our body
Chemistry of atoms and molecules of our body
JLoknathDora
 
Magnetism notes
Magnetism notesMagnetism notes
Magnetism notes
JLoknathDora
 
Electricity
Electricity Electricity
Electricity
JLoknathDora
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructions
JLoknathDora
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
JLoknathDora
 
Glycolysis
GlycolysisGlycolysis
Glycolysis
JLoknathDora
 
Information and communication technology
Information and communication  technologyInformation and communication  technology
Information and communication technology
JLoknathDora
 
Final statistical treatment data
Final statistical treatment dataFinal statistical treatment data
Final statistical treatment data
JLoknathDora
 
Instrumental methods ii and basics of electrochemistry
Instrumental methods ii and basics of electrochemistryInstrumental methods ii and basics of electrochemistry
Instrumental methods ii and basics of electrochemistry
JLoknathDora
 
Separation techniques in analytical chemistry
Separation techniques in analytical chemistrySeparation techniques in analytical chemistry
Separation techniques in analytical chemistry
JLoknathDora
 
Life in Lockdown
Life in LockdownLife in Lockdown
Life in Lockdown
JLoknathDora
 
Presentation on Economic Development
Presentation on Economic DevelopmentPresentation on Economic Development
Presentation on Economic Development
JLoknathDora
 

More from JLoknathDora (18)

Post-Fertilization and Formation & Development of Seed and Fruit.pdf
Post-Fertilization and Formation & Development of Seed and Fruit.pdfPost-Fertilization and Formation & Development of Seed and Fruit.pdf
Post-Fertilization and Formation & Development of Seed and Fruit.pdf
 
Air, Water and Forensic Chemistry
Air, Water and Forensic ChemistryAir, Water and Forensic Chemistry
Air, Water and Forensic Chemistry
 
Take care yourself
Take care yourselfTake care yourself
Take care yourself
 
Life in polymers
Life in polymersLife in polymers
Life in polymers
 
Our nature, our responsibility
Our nature, our responsibilityOur nature, our responsibility
Our nature, our responsibility
 
DIET, HEALTH AND CARE
DIET, HEALTH AND CAREDIET, HEALTH AND CARE
DIET, HEALTH AND CARE
 
Chemistry of atoms and molecules of our body
Chemistry of atoms and molecules of our bodyChemistry of atoms and molecules of our body
Chemistry of atoms and molecules of our body
 
Magnetism notes
Magnetism notesMagnetism notes
Magnetism notes
 
Electricity
Electricity Electricity
Electricity
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructions
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Glycolysis
GlycolysisGlycolysis
Glycolysis
 
Information and communication technology
Information and communication  technologyInformation and communication  technology
Information and communication technology
 
Final statistical treatment data
Final statistical treatment dataFinal statistical treatment data
Final statistical treatment data
 
Instrumental methods ii and basics of electrochemistry
Instrumental methods ii and basics of electrochemistryInstrumental methods ii and basics of electrochemistry
Instrumental methods ii and basics of electrochemistry
 
Separation techniques in analytical chemistry
Separation techniques in analytical chemistrySeparation techniques in analytical chemistry
Separation techniques in analytical chemistry
 
Life in Lockdown
Life in LockdownLife in Lockdown
Life in Lockdown
 
Presentation on Economic Development
Presentation on Economic DevelopmentPresentation on Economic Development
Presentation on Economic Development
 

Recently uploaded

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 

Recently uploaded (20)

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 

Microprocessor fundamentals

  • 1.
  • 2. Historical Perspective • Intel engineer – Ted Hoff – pioneer. • In 1969 – Intel – was in the business of semiconductor memory only. (64 – bit bipolar RAM chip) • Japanese company – Busicom – contacted Intel to design programmable calculator. The original design called for 12 different functions with hard wired programming. • Ted Hoff suggested a general purpose programmable chip. • The first 4-bit microprocessor - 4004 – in year 1971 (2300 transistors, 640 bytes memory – addressing capability and 108 KHz clock) • Intel 8008, 8080, 8085 , 8086 etc • Motorola 6800 • Zilog Z80 • Moores Law: Number of transistor per integrated circuit would double every 18 months • By the year 2000 – 15 million transistor, 400MHz to 1.5GHz clock, one terabyte (10 12 ) of memory. (Pentium – IV)
  • 3. Microprocessor • The microprocessor is a programmable device that takes in a numbers, performs on them arithmetic and logical operations according to programme stored in a memory and produce the another number as a result. • It is multipurpose, programmable, clock driven, register based electronic device. • Reads binary instruction from memory, accepts binary data as input and processes the data according to those instructions, and provides result as output. • Programmable device – computing and decision making capability.
  • 4. Memory Input Output Microprocessor A Programmable Machine Hardware : The physical components of the system. Program : A set of instructions to perform a task. Software : A group of programs. Four Components of a typical Programmable machine • Microprocessor • Input device • Output Device • Memory
  • 5. Microprocessor as CPU (MPU) Memory Input Output CPU Block Diagram of a Computer ALU CONROL UNIT • CPU contains – ALU & Control Unit – Registers – Instruction decoder – Counters and – Control lines  It reads instruction from memory and performs task specified.  It communicates with input/output devices either to accept or to send data.  The communication process of CPU is controlled by Control Unit.
  • 6. Memory Input Output Microprocessor as CPU Block Diagram of a Computer with the microprocessor as CPU  CPU with discrete components - 1990 Replaced by single chip with the advent of Integrated Circuit Technology.  A computer with a microprocessor as its CPU is known as microcomputer  MPU is a complete processor unit with the necessary control unit.  Because of limited number of pins available on the MPU package , some of the signals need to be generated outside using some desecrate devices. MPU Memory I/O Peripheral Devices A/D Converters Timers Serial I/O Microcontroller Microcontrollers or MCU - MPU, memory, I/O devices and some peripheral devices on a single chip - Entire computer on single chip
  • 7. Organization of a Microprocessor – Based System Mcroprocessor ALU Register Array Control Unit I/O Input / Output Memory ROM R / WM System Bus Microprocessor  reads instructions from memory.  communicates with all peripherals using system bus.  controls timing of information flow.  performs the computing task specified in a program. Memory • stores binary information ( instructions and data). • provides the instructions and data to the microprocessor on request. • stores the result and data for the microprocessor.
  • 8.  Arithmetic/Logic Unit: The ALU unit performs arithmetic operations such as addition and subtraction, and logic operations such as AND, OR, and exclusive OR.  Register Array: This area of the microprocessor consists of various registers identified by letters such as B, C, D, E, H, and L. These registers are primarily used to store data temporarily during the execution of a program and 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 memory and peripherals.  Memory: Memory stores binary information such as instructions and data, and provides that information to the microprocessor whenever necessary. To execute programs, the microprocessor reads instructions and data from memory and performs the computing operations in its ALU section. Results are either transferred to the output section for display or stored in memory for later use. Read-Only memory (ROM) and Read/Write memory (R/WM), popularly known as Random- Access memory (RAM).
  • 9. The input device: Enters data and instructions under the control of a program such as a monitor program - keyboard, switches, ADCs etc. The output device: Accepts data from the microprocessor as specified in a program - LED / LCD display, CRT, video screen, printer, X -Y plotters, magnetic tapes, DACs etc. The System Bus: Carries bits (information) between the microprocessor and memory and I/Os.
  • 10. How does microprocessor works? • Assume that a program and data is already entered in R/W memory • The sequence of the process is read, interpret and perform. • The microprocessor fetches the first instruction from memory, decodes it and executes that instruction. • The sequence of fetch, decode and execute is continued until the microprocessor comes across an instruction to stop. • During the entire process microprocessor uses: – System bus : To fetch instruction and data from the memory. – Registers : To store data temporarily – ALU : To perform the computing function • Finally it sends the result to the output device and/or stores the result in the memory.
  • 11. Microprocessor Instruction Set and Computer Languages • Microprocessor recognize and operate in binary numbers. • Each Microprocessor has its own binary word, meanings and language based on its logic design. • The words are formed by combining number of bits for a given machine. • Instruction is a command in binary that is recognize and executed by the processor to accomplish a task. • Word length – the number of bits microprocessor recognizes and processes at a time. – 4-bits (for small) to 64 –bits for large & high speed computers. – 4 – bit, 8 – bit, 16 – bit, 32 – bit and 64 – bit microprocessors. – A byte – group of 8 –bits.
  • 12. Machine Language, Assembly Language, and High-level Languages • Three types of computer languages 1. Machine language • Only language microprocessor / computer directly understands • “Natural language” of microprocessor / computer • Defined by hardware design – Machine-dependent • Generally consist of strings of numbers – Ultimately 0s and 1s • Instruct computers to perform elementary operations – One at a time • Cumbersome for humans (users) • Example: – 1010 1100 – 1110 0011 – 1000 0001
  • 13. 2. Assembly language • English-like abbreviations representing elementary microprocessor / computer operations • Machine dependent. • Clearer to humans • Incomprehensible to (can’t be understood by) computers – So require Translator Program ( called assembler or cross - assembler). » Convert Mnemonics to machine language • Example: LDA C200 ADD B INR A
  • 14. 3. High-level languages • Similar to everyday English, use common mathematical notations • Single statements accomplish substantial tasks – Assembly language requires many instructions to accomplish simple tasks • Translator programs (compilers) – Convert to machine language • Interpreter programs – Directly execute high - level language programs • Machine independent. • Compiler and interpreter require large memory space (because instruction in English requires several machine codes to translate in binary) • Translation : Source Code  Compiler / Interpreter  Object Code • Example: grossPay = basePay + overTimePay • BASIC, PASCAL, C, C++, JAVA etc.
  • 15. Assembly Language High level Language • compact, requires less memory space. • more efficient. • machine dependent. • requires hand assembly or the assembler • One mnemonic requires one machine code. • Debugging is difficult • requires large memory space. • less efficient • machine independent. • requires complier or interpreter. • One statement requires many machine codes. • Debugging is easy
  • 16. Writing and executing an assembly language program • A program is a set of logically related instructions written in a specific sequence to accomplish a task. • To write and execute an assembly language program on a single board microprocessor, with a hex keypad for input and LED display for output the following steps are necessary. – Write the instructions in mnemonics obtain from the instruction set supplied by the manufacturers. – Find the hexadecimal code for each instruction from the instruction set. – Enter (Load) the program in the user memory in a sequential order by using hex keyboard. – Execute the program. The result will be displayed by the LED display.
  • 17.  Buses  Registers  ALU  Flags  Program Counter(PC)  Stack Pointer(SP)  Instruction registers and decoders Timing and control circuit
  • 18. Accumulator ALU Flags Instruction Register Register Arrays Memory Pointer Register Timing and Control Unit 16-bit Address Bus 8-bit Data Bus Control Signals 8085 Hardware Model S Y S T E M B U S TWO SEGMENTS: One includes • Accumulator • ALU • Flags & • Instruction Register The second Segment includes • 8-bit and 16-bit Registers Both the segments are connected with System Bus ALU performs arithmetic and logic operations, and results are stored in accumulator The flags are set or reset to reflect the result. 16-bit address bus identifies the memory Location, 8-bit data bus is used to transfer data and control bus for timing signals. Hardware Model of 8085 Microprocessor
  • 19. 8085 PROGRAMMING MODEL • The Programming Model consists: – Two 8-bit special purpose registers • Accumulator • Flag Register – Six 8-bit general purpose registers • B, C, D, E, H and L Registers – Two 16-bit special purpose registers. • Stack Pointer • Program Counter
  • 20. 8085 Bus Organization • In a computer system, each peripheral device or memory location is identified by a binary number called address, and address bus is used to carry this address • The address bus: – is a group of 16 lines A15 – A0 – Unidirectional – Used to identify a peripheral or a memory location. The 8085 microprocessor has 16-bit address line, so addressing capability of 216 = 65536 (64K) memory locations. 1K = 210 = 1024 memory locations
  • 21.
  • 22. Accumulator A (8) Flag Register (8) B (8) C (8) D (8) E (8) L (8) H (8) Stack Pointer (SP) (16) Program Counter (PC) (16) Data Bus Address Bus Bidirectional Unidirectional 8 Lines 16 Lines Programming Model of 8085 Register A (Accumulator): >> It is tri-state 8-bit register >> After performing arithmetic and logic operations ALU places result on the internal data bus from there it is generally stored in accumulator. >> It is also used in load and store operations, as well as in input /output (I/O) operations. >> Most of the times the results of arithmetic and logical operations is stored in register A, hence it is called as accumulator. >> The register A can be used as a general-purpose register. Flag register is a group of five flip-flops used to give status of the operations performed by ALU Program Counter: • Is a 16 bit special purpose register, which stores the address of the next instruction to be fetched. • Acts as a pointer to the next instruction. How processor increments program counter depends on the nature of instruction. • In case of JMP and CALL instructions, address followed by JMP and CALL - instruction is placed in the program counter. • In case of Conditional JMP and Conditional CALL instructions, address followed by JMP and CALL instructions is placed in the program counter if the condition is satisfied; otherwise the program counter is incremented by three so as to point the address of the next instruction to be fetched. Stack Pointer: • The stack is the reserved area of the memory in the RAM where the temporary data can be stored. • It is used to hold the address of the most recent stack entry. Why PC and SP are 16 - bit registers? PC and SP are the memory pointers and the address of any memory location in 8085 microprocessor is 16 – bit address, so to hold this 16-bit address PC and SP must be 16 – bit registers.
  • 23. D7 D6 D5 D4 D3 D2 D1 D0 S Z X AC X P X CY Flag Register Format S - Sign flag Z - Zero flag AC - Auxiliary carry flag P - Parity flag and CY - Carry flag
  • 24. Busses  Data Bus  Address Bus  Control Bus
  • 25. • Data bus: – Group of 8 – lines. – Bidirectional. – Use for data transfer form MPU to peripherals / memory or vise versa. – The numbers that can appear on data bus ranging from 00H to FFH – The 8085 microprocessor is 8-bit processor – Intel 8086, Zilog Z8000, Motorolla 6800 – 16- bit – Intel 80386/486 – 32-bit processors.
  • 26. • Control bus: – Comprised of various single lines, that carry timing / synchronization signal. – the MPU generates specific control signals for every operations such as Memory read, memory write, I/O read or I/O write. These signals are used to identify a device type with which the MPU intended to communicate.
  • 27. Data Bus 8 bits wide (D0 D1…D7).So Bus Width is 8 “Bi-directional”. Information flows both ways between the microprocessor and memory or I/O. The 8085 uses the data bus to transfer the binary information.Word length is 8. Word length = Bus Width Control Bus It must for Proper Operation I/O signal Control lines Synchronize the operation between microprocessor and external circuitry
  • 28. Address Bus 16 bits wide (A0 A1…A15) Therefore, the 8085 can access locations with numbers from 0 to 65,536. Or, the 8085 can access a total of 64K addresses. “Unidirectional”. Information flows out of the microprocessor and into the memory or peripherals. Divide into 2 part: A15 – A8 (upper) and AD7 – AD0 (lower). A15 – A8 : Unidirectional, known as ‘high order address’. AD7 – AD0 : bidirectional and dual purpose (address and data placed once at a time). AD7 – AD0 also known as ‘low order address’. To execute an instruction, at early stage AD7 – AD0 uses as address bus and alternately as data bus for the next cycle. The method to change from address bus to data bus known as ‘bus multiplexing’.
  • 29. Registers • Six 8 bit General purpose Registers to store the data • 16 Bit Registers pair BC,DE,HL H & L is used as data pointer
  • 30. ALU  Heart of microprocessor  arithmetic & logic operation. Such as ADD,OR etc. Accumulator 8-bit register that is part of the ALU Used to store 8-bit data and in performing 8-bit arithmetic and logical operations, and in storing the results operations or they can be transferred to the internal data bus for use elsewhere
  • 32.
  • 33. AC-Auxiliary Carry This flag is set when a carry is generated from bit D3 and passed to D4 . This flag is used only internally for BCD operations. P-Parity flag After an ALU operation if the result has an even no of 1’s the p-flag is set. Otherwise it is cleared. So, the flag can be used to indicate even parity.
  • 34. Example: What are the states of the Auxiliary Carry (AC) and Carry Flag (CY) after executing the following 8085 program? MVI H, 5DH MVI L, 6BH MOV A, H ADD L HLT H = 0101 1101 L = 0110 1011 A= 11 00 1000 here AC= 1 and CY= 0
  • 35.
  • 36.
  • 37.
  • 39. Intel 8085 Pin Configuration
  • 41. 8085 PIN DESCRIPTION  READY: This an output signal used to check the status of output device. If it is low, µP will WAIT until it is high.  TRAP: It is an Edge triggered highest priority , non mask able interrupt. After TRAP, restart occurs and execution starts from address 0024H.  RST 5.5,6.5,7.5:These are maskable interrupts and have low priority than TRAP.  INTR¯& INTA:INTR is a interrupt request signal after which µP generates INTA or interrupt acknowledge signal.  IO/M¯:This is output pin or signal used to indicate whether 8085 is working in I/O mode(IO/M¯=1) or Memory mode(IO/M¯=0 ).
  • 42. 8085 PIN DESCRIPTION Some important pins are : • AD0-AD7: Multiplexed Address and data lines. • A8-A15: Tri-stated higher order address lines. • ALE: Address latch enable is an output signal.It goes high when operation is started by processor . • S0,S1: These are the status signals used to indicate type of operation. • RD¯: Read is active low input signal used to read data from I/O device or memory. • WR¯:Write is an active low output signal used write data on memory or an I/O device.
  • 43. 8085 PIN DESCRIPTION  HOLD & HLDA:HOLD is an input signal .When µP receives HOLD signal it completes current machine cycle and stops executing next instruction. In response to HOLD µP generates HLDA that is HOLD Acknowledge signal.  RESET IN¯:This is input signal. When RESET IN¯ is low µp restarts and starts executing from location 0000H.  SID: Serial input data is input pin used to accept serial 1 bit data .  X1, X2 :These are clock input signals and are connected to external LC, or RC circuit.These are divide by two so if 6 MHz is connected to X1X2, the operating frequency becomes 3 MHz.  VCC & VSS:Power supply VCC=+5Volt & VSS=-GND reference.
  • 44. Control and Status Signals.
  • 45. Direct Memory Access (DMA) • DMA is an IO technique where external IO device requests the use of the MPU buses. • Allows external IO devices to gain high speed access to the memory. – Example of IO devices that use DMA: disk memory system. • HOLD and HLDA are used for DMA. • If HOLD=1, 8085 will place it address, data and control pins at their high-impedance. • A DMA acknowledgement is signaled by HLDA=1.
  • 46. 46 MPU Communication and Bus Timing Figure : Moving data form memory to MPU using instruction MOV C, A (code machine 4FH = 0100 1111)
  • 47. 47 • The Fetch Execute Sequence : 1. The μp placed a 16 bit memory address from PC (program counter) to address bus. – Figure 4: at T1 – The high order address, 20H, is placed at A15 – A8. – the low order address, 05H, is placed at AD7 - AD0 and ALE is active high. – Synchronously the IO/M is in active low condition to show it is a memory operation. 2. At T2 the active low control signal, RD, is activated so as to activate read operation; it is to indicate that the MPU is in fetch mode operation. MPU Communication and Bus Timing
  • 48. 48 Figure : 8085 timing diagram for Opcode fetch cycle for MOV C, A . MPU Communication and Bus Timing