CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.

Slides:



Advertisements
Similar presentations
Chapter Three: Interconnection Structure
Advertisements

EE1A2 Microprocessor Systems & Digital Logic Part I Digital Electronic System Design Dr. T. Collins.
Processor System Architecture
Lecture - 2 Number systems and computer data formats
Binary Systems1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Introduction to Programming with Java, for Beginners
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
CEG 320/520: Computer Organization and Assembly Language Programming1 CEG 320/520 Computer Organization and Assembly Language Programming.
Number Systems Lecture 02.
Binary Number Systems.
Binary Representation and Computer Arithmetic
The Binary Number System
Programmable Logic Controllers
Monday, October 4 Assignment(s) due: Assignment #5: COMPLEMENT ARITHMETIC Assignment #6: DEBUG EXERCISES Quiz(zes) due:Quiz #5: Base Arithmetic Quiz #6.
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
IT253: Computer Organization
Number Systems So far we have studied the following integer number systems in computer Unsigned numbers Sign/magnitude numbers Two’s complement numbers.
Computer Architecture
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Data Representation and Computer Arithmetic
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
Data Representation Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Introduction to Computer Science 1 With Examples in Visual Basic, C, C++, and Java 1 Mata-Toledo, Ramon A. & Cushman, Pauline K. McGraw-Hill,
CPU Internal memory I/O interface circuit System bus
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
ECE 456 Computer Architecture
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Data Representation, Number Systems and Base Conversions
ACOE2511 Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
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.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Monday, January 14 Homework #1 is posted on the website Homework #1 is posted on the website Due before class, Jan. 16 Due before class, Jan. 16.
CMSC Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
IT11004: Data Representation and Organization Floating Point Representation.
©Brooks/Cole, 2003 Chapter 3 Number Representation.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Digital Systems and Information Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
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.
Answer CHAPTER FOUR.
MATH Lesson 2 Binary arithmetic.
Computer Architecture and Number Systems
CHAPTER 9 COMPUTER ARITHMETIC - ALU
Number Representation
Assembly Language (CSW 353)
Data Representation Binary Numbers Binary Addition
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Microprocessor Systems Design I
Number Representations and Basic Processor Architecture
University of Gujrat Department of Computer Science
Data Representation Data Types Complements Fixed Point Representation
Chapter One: Introduction
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
COMS 161 Introduction to Computing
Microprocessor I 7/18/2019.
Dr. Clincy Professor of CS
Presentation transcript:

CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor

Microprocessor-based Computer System A computer system consists of the following components: Microprocessor (CPU) Memory system I/O system These three components are interconnected by busses. This architecture applies to any computer system, from the earlier mainframe computers to the latest systems.

Microprocessor-based Computer System

The Microprocessor (CPU) The controlling element (the brain) of the a computer system. Controls memory and I/O by executing program stored in memory. A program is a series of instruction. Instruction is in machine language – string of 0’s and 1’s. The set of instructions used by a CPU is called the instruction set – unique for each CPU type.

The Microprocessor (CPU) Two main components of a CPU: Execution Unit (EU) The purpose is to execute instructions Contains the arithmetic logic unit (ALU) Data for operation by ALU are stored registers Bus Interface Unit (BIU) The purpose is to facilitate communication between the EU and the memory or I/O. Responsible for transmitting address, data and control signals on the busses.

Memory System The location where the information processed by the memory is stored. Each location in memory contains an 8-bit data (8 bits = 1 byte). The data stored in a memory byte are called contents. Each memory byte is accessed using an address. Specified using a hex number.

Memory System Two bytes of data form a word (16 bits). A pair of successive memory bytes can be treated as a single unit called a memory word. Accessed using the lower address of the two memory bytes. Intel processors store the least significant byte in the lower memory address (little endian). Data size can also be in doubleword (32 bits).

I/O System A computer communicates with the outside world through I/O devices. I/O devices are connected to the computer through I/O circuits. I/O circuits contains several registers called I/O ports. Some ports are used for data while others are used for control commands. I/O ports are accessed using I/O addresses (similar to memory addresses).

Busses A common group of wires that interconnect components in a computer system. Three types of busses: address, data and control. An operation may require data to be transmitted on all the three busses. Example: memory read. CPU places address of memory location on address bus. Control signal tells the memory to perform a read. Data is received from memory on data bus.

Busses

The size of the address bus determines the maximum memory size that can be supported. 32-bit systems has 32 pins for the address. Can support a maximum of 4GB of memory. The size of the data bus determines how much data can be transferred at a time. Many new microprocessors has 64-bit extensions. They have 64-bit data bus. But the address bus is still less than 64-bit.

Number Systems Use of microprocessor requires the working knowledge of number systems. Binary, decimal, hexadecimal. Decimal numbers: Base (radix) 10 Contains 10 different digits: 0 to 9 The one we use in everyday life Binary numbers: Base (radix) 2 Contains only 2 different digits: 0 and 1 The number representation used in digital circuits

Number Systems Hexadecimal numbers: Base (radix) 16 Contains 16 different digits: 0 to 9, A to F Normally written with ‘0x’ in front or with an ‘H’ at the back. Example: 91B7 16 = 0x91B7 = 91B7H Used as a compact way to represent binary numbers

Number System Conversions Binary to decimal (example): = (1x2 3 ) + (0x2 2 ) + (0x2 1 ) + (1x2 0 ) = = 9 10 Hexadecimal to decimal (example): 610A 16 = (6x16 3 ) + (1x16 2 ) + (0x16 1 ) + (10x16 0 ) = =

Number System Conversions Decimal to binary (example): Convert to binary. 43 / 2 = 21 remainder 1 21 / 2 = 10 remainder 1 10 / 2 = 5 remainder 0 5 / 2 = 2 remainder 1 2 / 2 = 1 remainder 0 1 / 2 = 0 remainder 1 Therefore, =

Number System Conversions Decimal to hexadecimal (example): Convert to hexadecimal. 425 / 16 = 26 remainder 9 26 / 16 = 1 remainder 10 (A) 1 / 16 = 0 remainder 1 Therefore, = 1A9 16

Conversion Involving Fractional Numbers Binary to decimal (example): = (0x2 -1 ) + (1x2 -2 ) + (1x2 -3 ) = = = (1x2 1 )+(0x2 0 )+(1x2 -1 )+(1x2 -2 ) = = Hexadecimal to decimal (example): 0.A8 16 = (10x16 -1 ) + (8x16 -2 ) = =

Conversion Involving Fractional Numbers Decimal to binary (example): Convert to binary x 2 = 0.75  x 2 = 1.5  x 2 = 1.0  1 0 x 2 = 0 Therefore, =

Conversion Involving Fractional Numbers Decimal to hexadecimal (example): Convert to hexadecimal x 16 =  x 16 =  E x 16 = 15.0  F 0 x 16 = 0 Therefore, = 0.1EF 16

Binary-coded Hexadecimal Refers to the use of binary to represent a hexadecimal number. Example: HexadecimalBinary 9A F DC

Binary and Hexadecimal Arithmetic In general, addition and subtraction in other number systems are performed in a similar way to addition and subtraction in decimal. However, there is a minor difference. Addition: Digit position can only contain the maximum digit permitted by the number system. If addition of two digits result in a number higher than the maximum digit, there will be a carry. Subtraction: When a borrow is performed, the borrowed value will be the value of the number system’s radix.

Unsigned and Signed Integers Unsigned integers can only represent positive numbers. If the hardware can store 8-bits, the integer that can be stored ranges from 0 to 255. Signed integers can represent both positive and negative numbers. The value of the MSB tells whether the number is positive or negative. If the hardware can store 8-bits, the integer that can be stored ranges from -128 to +127.

Unsigned and Signed Integers In theory, there are three ways to represent negative integers in binary: Using a sign bit 1’s complement 2’s complement Example: Assuming an 8-bit hardware, represents -10 in binary. Using a sign bit: ’s complement: ’s complement: =

Unsigned and Signed Integers In all microprocessor systems, signed integers are represented using 2’s complement. Advantage of 2’s complement: Subtraction can be performed using addition. Simplifies the ALU circuitry. Example: – = ( ) = =

Unsigned and Signed Integers

Floating Point Numbers Representing a number as an integer that has certain number of bits can seriously limit the values that can be represented. What if we want to represent a very large number? Or a number with decimal point? Floating point number refers to a way to represent real numbers which supports a wide range of values. Format: M x 10 E M – mantissa / significand / fraction E – exponent

Floating Point Numbers Example: Representing a very large number = 55 x Example: Representing a number with decimal point = 2934 x Single-precision floating point number has 32 bits. Double-precision floating point number has 64 bits.

Floating Point Numbers (a)Single precision floating point number format (b)Double precision floating point number format