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.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Parul Polytechnic Institute
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Computer Organization and Architecture
The 8085 Microprocessor Architecture
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessor and Microcontroller
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
TK 2633 Microprocessor & Interfacing
EE1A Revision What should you be expected to do in a typical exam question ? Understanding of basic principles. Ability to perform simple circuit analysis.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Recap: Registers A register is a single byte (or word) memory element. Once written to (clocked) it remembers the input byte and outputs the same number.
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.
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.
created by :Gaurav Shrivastava
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Levels of Architecture & Language CHAPTER 1 © copyright Bobby Hoggard / material may not be redistributed without permission.
Machine Instruction Characteristics
MICROPROCESSOR INPUT/OUTPUT
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.
Low Level Programming Lecturer: Duncan Smeed Recap.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Execution of an instruction
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
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.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Electronic Analog Computer Dr. Amin Danial Asham by.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
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 operation is of how the different parts of a computer system work together to perform a task.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
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.
Control Unit Operations Chapter10:. What is Control Unit (CU)?(1)  Part of a CPU or other device that directs its operation.  Tells the rest of the.
بسم الله الرحمن الرحيم MEMORY AND I/O.
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.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
Unit Microprocessor.
8085 Microprocessor Architecture
Seminar On 8085 microprocessor
COURSE OUTCOMES OF Microprocessor and programming
The 8085 Microprocessor Architecture
Gunjeet Kaur Dronacharya Group of institutions
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
UNIT – Microcontroller.
The 8085 Microprocessor Architecture
Introduction of microprocessor
Microcomputer Programming
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Number Representations and Basic Processor Architecture
Functional Units.
The 8085 Microprocessor Architecture
The Von Neumann Architecture
Computer Operation 6/22/2019.
Presentation transcript:

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

Updating the Paper Tape Approach The paper tape programming method has a number of disadvantages Not very quick or compact Can’t randomly access (i.e. no jumps, loops etc.) Requires a lot of bits of storage Solid state program memory (a big bank of read-only registers) solves the first two problems The last requires the introduction of operation codes (op-codes)

Operation Codes Useful operations A  B B  A A  C C  A B  C C  B Only 6, could be coded into just 3 bits A I/O CLK R/W B I/O CLK R/W 8 C I/O CLK R/W System Bus Control Unit Op-Code

Op-Codes The paper tape program can recreate absolutely any permutation of control signals, ALU inputs etc. Many permutations are either not permitted or are just not very useful, so only a restricted set of possible data transfers are allowed. This means that instructions can be coded into much shorter words, or op-codes (12 bits for PICs) It does, however, require an extra block of logic to decode the op-codes.

Machine Code & Assembly Language A sequence of op-codes forms a program It is just a list of numbers though, ideal for the processor – not so easy for humans A program in this form is written in machine code Each op-code has a mnemonic equivalent (e.g. ADD, SUB, OR etc.) A program written in such mnemonics can be converted to machine code using an assembler It is, therefore, known as assembly language

Examples For the Z80 processor: Assembly Language Machine Code SUB B OR C LD D,E

Using Program Memory WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Control Unit Instruction Register Program Memory Program Counter

Using Program Memory WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Control Unit Instruction Register Program Memory Program Counter Program Counter, PC Stores the position (or address) in program memory of the next instruction. It is automatically incremented after each operation.

Using Program Memory WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Control Unit Instruction Register Program Memory Program Counter Program Memory A block of programmable read-only memory (ROM) containing a list of op-codes, i.e. a program.

Using Program Memory WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Control Unit Instruction Register Program Memory Program Counter Instruction Register A special register whose only purpose is to temporarily store the op-code of the instruction currently being executed.

Using Program Memory WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Control Unit Instruction Register Program Memory Program Counter Control Unit A block of logic that translates the op-code into the corresponding ALU select inputs and the control signals to the registers.

More on the Program Counter The Program Counter is a special purpose register used to address program memory. After each instruction, its contents are incremented by one. It can also be written to using the system bus, allowing the processor to ‘jump’ to any address in program memory. Its contents can also be temporarily stored on a stack allowing easy implementation of sub-routines.

A Micro-Controller

The Status Register (SR) The ALU produces a variety of flags after most operations, the most important are: Carry Flag Zero Flag The states of these flags are stored in the status register, SR. This register can be read like any other. More usefully, some operations (usually jumps) can be conditional on the state of one or more flags. Using these op-codes, ‘if-then’ operations, ‘for’ loops etc. are possible.

Input/Output Registers Input/Output (I/O) registers behave just like general purpose ones… … except that I/O registers can be written to or read from externally via the pins of the chip housing the micro-controller. These registers are vital, they’re the only way the device can communicate and do something useful.

Programming Micro-controller op-codes represent very simple operations: Data transfers Arithmetic or logical operations Flow of control Even the most elaborate of tasks can be broken down into a sequence of these primitive operations. Breaking down jobs in such an elemental way is what programming is all about.

Part One of EE1A2 Number Systems You should be able to: Convert numbers between decimal, hex and binary forms Perform binary arithmetic operations Binary Arithmetic Circuits Adder, carry look-ahead Addition/Subtraction Circuit ALUs Design of basic logic devices capable of a several binary arithmetic and/or logical operations.

Part One of EE1A2 (cont) Registers Memory elements storing one byte of data. Interconnection using tri-state ports connected to a common bus. Control signals necessary to transfer data. Micro-controllers All the basic components required to make a computer integrated onto a single chip. The ALU, registers, program memory and input/output circuitry – what they all do. Programming using assembly language - welcome to the rest of the course !