ECP2036 Microprocessor and Interfacing Registers Control & Status Registers Program Counter User-Visible Registers Instruction Register... General-Purpose.

Slides:



Advertisements
Similar presentations
Fetch-Execute cycle. Memory Read operation Read from memory.
Advertisements

Machine cycle.
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
The 8085 Microprocessor Architecture
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
1 Sec (2.1) Computer Architectures. 2 For temporary storage of information, the CPU contains cells, or registers, that are conceptually similar to main.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Basic Operational Concepts of a Computer
Computer architecture Microprocessor based computers.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
created by :Gaurav Shrivastava
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Computer Science 210 Computer Organization The von Neumann Architecture.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Chapter 14 Introduction to Microprocessors. 2 Microcomputer A self-contained computer system that consists of CPU (central processing unit), memory (RAM.
Microcode Source: Digital Computer Electronics (Malvino and Brown)
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
General Concepts of Computer Organization Overview of Microcomputer.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
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.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
HOW a Computer Works ? Anatomy of Microprocessor.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Computer operation is of how the different parts of a computer system work together to perform a task.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Processor Organization and Architecture Module III.
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.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Unit Microprocessor.
COURSE OUTCOMES OF Microprocessor and programming
Von Neumann architecture
Gunjeet Kaur Dronacharya Group of institutions
Computer Science 210 Computer Organization
Microprocessor and Assembly Language
Dr. Michael Nasief Lecture 2
Number Representations and Basic Processor Architecture
Morgan Kaufmann Publishers Computer Organization and Assembly Language
8085 Microprocessor Architecture
MARIE: An Introduction to a Simple Computer
8051 ASSEMBLY LANGUAGE PROGRAMMING
8085 Microprocessor Architecture
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture Assembly Language
Computer Operation 6/22/2019.
Computer Architecture
Presentation transcript:

ECP2036 Microprocessor and Interfacing Registers Control & Status Registers Program Counter User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register...

Control & Status Registers Program Counter ECP2036 Microprocessor and Interfacing User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register... To hold the memory address of the next instruction to be executed Default value at power on/reset: PC = 0000H or FFFFH (or other address predetermined by the manufacturer)

Control & Status Registers Program Counter ECP2036 Microprocessor and Interfacing User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register... To hold the instruction fetched from external memory

Control & Status Registers Program Counter ECP2036 Microprocessor and Interfacing User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register... Can be assigned to a variety of functions by programmer

Control & Status Registers Program Counter ECP2036 Microprocessor and Interfacing User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register... To hold the address of next memory location to be addressed

Program Counter ECP2036 Microprocessor and Interfacing User-Visible Registers Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register... To hold the data fetched from memory

Control & Status Registers ECP2036 Microprocessor and Interfacing Instruction Register... General-Purpose Reg. Address Register Data Register Flag Register... Condition-code register that contains a number of flag bits. Each flag bit is either set (“1”) or reset (“0”) by the result of an arithmetic or logical instruction that has just been executed

Memory Memory Location-1 Memory Location-2 Memory Address-1  Memory Address-2  Memory Location-n Memory Address-n  word = 8-bit data (for 8051) ECP2036 Microprocessor and Interfacing

Bus System (I) Address Bus These are the wires that carry the CPU generated address signals out to memory and to I/O devices. The address signals only travel outwards from the CPU (unidirectional). The number of address lines that a microprocessor has determines the size of the memory space that it can access. ECP2036 Microprocessor and Interfacing

Memory Size ECP2036 Microprocessor and Interfacing

Data Bus These are the data signals that travel out of and into the  P (bi-directional). The number of wires in the data bus depends on the word size that the  P operates with. An 8-bit  P will have a data bus consisting of 8 wires and a 32-bit  P will have a data bus with 32 wires. Bus System (II) ECP2036 Microprocessor and Interfacing

Control Bus The control bus consists of wires, some of which carry signals from the CPU to external devices, while others carry signals from external devices to the CPU. The number of wires present in the control bus varies from one  P to another. Examples of control bus signals are READ/, WAIT, READY, and HOLD. Bus System (III) ECP2036 Microprocessor and Interfacing

von Neumann Architecture Main Memory ALU CU I/O ECP2036 Microprocessor and Interfacing

Basic Instruction Cycle Execute Instruction Start Fetch Instruction End Fetch Cycle Execute Cycle PC = 0000H PC = PC + n ECP2036 Microprocessor and Interfacing

Memory Read Operation - Step 1 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus CPU places address (XXXX) of the memory location on the address bus Memory request Read The CPU sends out the control signals Memory Request and Read to indicate that it wants to read from memory

Memory Read Operation - Step 2 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus Memory request Read Accessed location at XXXX Memory places data from the accessed location onto the data bus

Memory Read Operation - Step 3 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus Memory request Read Memory request Read The CPU removes the Memory Request and Read signals CPU latches the data into a register Register

Memory Write Operation - Step 1 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus CPU places address (YYYY) of the memory location on the address bus The CPU sends out a Memory Request control signal to indicate that it wants to perform a memory operation Memory request

Memory Write Operation - Step 2 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus Memory request CPU places the data from a register onto the data bus Register The CPU sends out a Write control signal to indicate that valid data is available on the data bus Write

Memory Write Operation - Step 3 ECP2036 Microprocessor and Interfacing CPU Memory Address bus Data bus Memory request Memory copies the data bus into the accessed location Register Write Accessed location at YYYY The CPU removes the Write signal to complete the memory write operation Memory request Write

Assembly Language Program An assembly language program is a program written using labels and mnemonics, in which each statement corresponds to a machine instruction. ; A test program ORG 0000H MOV A, #01H LOOP:RLA MOVP1, A; output to port 1 JMPLOOP END ECP2036 Microprocessor and Interfacing

Assembling A Source Program asm51 program.srcprogram.obj program.lst An assembler is a program that translate an assembly language program into a machine language program. ECP2036 Microprocessor and Interfacing

Linking Object Files RL51 program program.m51 A linker/locator is a program that combines relocatable object programs (modules) and produces an absolute object program that is executable by a computer. File3.obj File2.obj File1.obj ECP2036 Microprocessor and Interfacing

BIN to HEX conversion OH program.hexprogram.bin Download to 8051 ECP2036 Microprocessor and Interfacing