Microprocessor and Assembly Language

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

Microprocessor By: Dk Izzati binti Pg Haji Ahmad.
The CPU The Central Presentation Unit What is the CPU?
Microprocessors A Beginning.
Microprocessor A microprocessor also called the CPU is the heart of the computer system or any computing device. It is a semiconductor chip which can be.
CH10 Instruction Sets: Characteristics and Functions
Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Microprocessors and Interfacing
8085 Architecture & Its Assembly language programming
Microprocessors.
Parul Polytechnic Institute
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessor and Microcontroller
Course Overview and The 8051 Architecture
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA
TK 2633 Microprocessor & Interfacing
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Microcontroller based system design
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
3.1Introduction to CPU Central processing unit etched on silicon chip called microprocessor Contain tens of millions of tiny transistors Key components:
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
UNDERSTANDING ASSEMBLY LANGUAGE.
The Microcomputer System In this presentation you will: Investigate the microprocessor Title Page.
Processing Devices.
created by :Gaurav Shrivastava
Physics 413 Chapter 1 Computer Architecture What is a Digital Computer ? A computer is essentially a fast electronic calculating machine. What is a program.
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
General Concepts of Computer Organization Overview of Microcomputer.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Introduction to Microprocessors
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Lesson 3 0x Hardware Components
HOW a Computer Works ? Anatomy of Microprocessor.
MICROOCESSORS AND MICROCONTROLLER:
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Lecture # 10 Processors Microcomputer Processors.
Intel 8086 MICROPROCESSOR ARCHITECTURE
Gandhinagar Institute of Technology
Unit Microprocessor.
8085 Microprocessor Architecture
COURSE OUTCOMES OF Microprocessor and programming
BLOCK DIAGRAM OF INTEL 8085.
Microprocessor VIVA/Interview Questions And Answers
Gunjeet Kaur Dronacharya Group of institutions
Introduction of microprocessor
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
عمارة الحاسب.
Number Representations and Basic Processor Architecture
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
Computer Operation 6/22/2019.
Presentation transcript:

Microprocessor and Assembly Language

History of Microprocessor A microprocessor (sometimes abbreviated µP) is a digital electronic component with transistors on a single semiconductor integrated circuit (IC). A Central processing unit (CPU) in a computer system or handheld device consists of one or more microprocessors.

A Microprocessor is essentially a set of switches A Microprocessor is essentially a set of switches. Using photographic technology a massive set of electronic switches is superimposed onto a very small piece of silicon.  Through the use of binary language, which consists of only two states; one and zero (on and off), these can be used to store information and perform operations on it.

A bit refers to one binary digit; a zero or one  A bit refers to one binary digit; a zero or one. In computer memory and processing this refers to the state of one switch. The transistors are arranged into groups in order to represent complex numbers and instructions

The very first microprocessor is considered to be the Intel 4004 The very first microprocessor is considered to be the Intel 4004. It was released in 1971 and was a 4 Bit processor. Then the 8 bit 8008 microprocessor. It was developed by Intel in 1972 The first multi-chip 16 bit processor was released by National Semiconductor in 1973 Intel upgraded the 8008 into a 16 bit version they called the 8086. It was the first of the x86 family by which many modern PCs are powered.

32 bit designs didn't require much to improve performance since it has double the size of instructions as well as the amount of addressable memory. 68000 by Motorola was one of the first microprocessors developed to 32 bit architectures. It was released in 1979 and continued to be in use today.

Most of today's computers are turning to 64 bit designs to handle dealing with very large amounts of data. This is needed especially as demand for 3D Graphics and fast video has risen. E.g. AMD Athlon, Pentium i5/i7 processors.

Microprocessors are classified into different types on the basis of the bit of operation. Based on bit of operation at a time, the following are the types of microprocessors: ==> 4 bit. e.g. Intel 4004 ==> 8 bit. e.g. Intel 8085, 8088, Zilog Z80, Z180 ==> 16 bit. e.g. Intel 8086, 80186, 80286, 80386, ==> 32 bit. e.g. Intel Pentium, Celeron, AMD Sempron ==> 64 bit. e.g. AMD Athlon. Based on the instruction set microprocessors are classified into: RISC — Reduced Instruction Set Computing. These types of processors are commonly used in ovens, air conditioners, etc. CISC — Complex Instruction Set Computing. The types of processors are used in desktops, laptops and servers.

Microcomputer Block Diagram

Basic Block Diagram of Microprocessor Arithmetic and Logic Unit (ALU) Register Array Timing and Control unit ALU – Performs all arithmetic and logical operations Register array – Holds the data temporarily for processing Control Unit – It supervises/ monitors all the operations carried out in the computer

The 8085 Microprocessor The 8085 microprocessor was introduced by Intel in the year 1976. This microprocessor is an update of 8080 microprocessor. The 8080 processor was updated with Enable/Disable instruction pins and Interrupt pins to form the 8085 microprocessor. It is an 8-bit microprocessor with a 40 pin dual in line package

Pin Diagram of a Basic 8085 Microprocessor

Intel 8085 Microprocessor Architecture 8-bit_Internal_databus Accumulator Temp. Reg Flag Reg Instruction Reg B C D E Arithmetic and Logic Unit H L Instruction decoder Stack Pointer Program Counter Incrementer/ Decrementer Address latch Address Buffer A8-A15 Data/address Buffer AD0-AD7 Timing and Control unit 8- bit External Data bus RAM memory Clock Write Read

The 8085 has a set of registers for performing various operations The 8085 has a set of registers for performing various operations. The various registers include: Accumulator – 8 bit register which holds the latest result from ALU B, C, D, E, H and L are general purpose registers HL pair can be used for indirect addressing as well Program counter – 16 bit register which holds the address of the next instruction to be executed Instruction register – It holds the instruction that is currently being processed. Stack pointer is used during subroutine calling and execution. Address Latch – It increments/ decrements the address before sent to the address buffer

Various Flags Sign Flag:If the result of the latest arithmetic operation is having MSB (most- significant byte) ‘1’ (meaning it is a negative number), then the sign flag is set. Otherwise, it is reset to ‘0’ which means it is a positive number. Zero flag: If the result of the latest operation is zero, then zero flag will be set; otherwise it be reset. Auxiliary Carry Flag: This flag is not accessible to programmer. This flag will be used by the system during BCD (binary-coded decimal) operations. Parity Flag: If the result of the latest operation is having even number of ‘1’s, then this flag will be set. Otherwise this will be reset to ‘0’. This is used for error checking. Carry Flag: If the result of the latest operations exceeds 8-bits then this flag will be set. Otherwise it be reset.

An example assembly language program Address Instruction 202A MVI A, 21 ;Copies 21 into accumulator 202C MVI B, 2A ;Copies 2A into B register 202E ADD B ;Adds B reg content with Acc and stores the result in Acc. 202F STA 41 FF ; Stores the Acc (the sum) into the memory location 41 FF. 2032 HLT ; Stops the program

Memory storage of the Assembly language Address Instruction/Data 202A MVI A, 202B 21 202C MVI B, 202D 2A 202E ADD B 202F STA 2030 FF 41 2032 HLT

Another example assembly language program Address Instruction 2020 MVI B, 24 ;Copies 24 into accumulator 2022 INR B ;Increment B reg content by 1 2023 MOV A, B ;Copies B register into Acc. 2024 SUB B ;Subtracts B reg content from Acc and stores the result in Acc. 2025 STA 5F FF ; Stores the Acc content into the memory location 5F FF. 2028 HLT ; Stops the program

Reference: http://www.brighthub.com/engineering/electrical/articles/51225.aspx http://www.cpu-world.com/Arch/8085.html http://www.ehow.com/way_5230222_8085-microprocessor-tutorial.html