Lecture 1: Introduction to Microprocessors

Similar documents
IEEE Standard for Floating-Point Arithmetic: 754

Introduction to Computers and Programming. Numeric Values

MACHINE LEVEL REPRESENTATION OF DATA

ECE232: Hardware Organization and Design

Floating-point Arithmetic. where you sum up the integer to the left of the decimal point and the fraction to the right.

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

EEM336 Microprocessors I. Introduction to the Microprocessor and Computer

CHW 261: Logic Design

Homework 1 graded and returned in class today. Solutions posted online. Request regrades by next class period. Question 10 treated as extra credit

COMP2121: Microprocessors and Interfacing. Number Systems

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

Number Systems. Binary Numbers. Appendix. Decimal notation represents numbers as powers of 10, for example

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

Numeric Encodings Prof. James L. Frankel Harvard University

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Number Systems and Binary Arithmetic. Quantitative Analysis II Professor Bob Orr

Number Systems. Both numbers are positive

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Calendar Description

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

CPS 104 Computer Organization and Programming Lecture-2 : Data representations,

Inf2C - Computer Systems Lecture 2 Data Representation

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

ECE331: Hardware Organization and Design

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 01, SPRING 2013

Floating-Point Data Representation and Manipulation 198:231 Introduction to Computer Organization Lecture 3

Chapter Overview. Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Printing this Slide Show

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

COMP2611: Computer Organization. Data Representation

ECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O

Signed Multiplication Multiply the positives Negate result if signs of operand are different

CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS

CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS

15213 Recitation 2: Floating Point

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

MECE336 Microprocessors I

COSC 243. Data Representation 3. Lecture 3 - Data Representation 3 1. COSC 243 (Computer Architecture)

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Floating Point. The World is Not Just Integers. Programming languages support numbers with fraction

Number Systems & Encoding

UNIT 7A Data Representation: Numbers and Text. Digital Data

ECE2049-E18 Lecture 6 Notes 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review

M1 Computers and Data

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications

Number Systems. Decimal numbers. Binary numbers. Chapter 1 <1> 8's column. 1000's column. 2's column. 4's column

BSM540 Basics of C Language

Choosing a Micro for an Embedded System Application

Floating Point Arithmetic

Number Systems Standard positional representation of numbers: An unsigned number with whole and fraction portions is represented as:

Organisasi Sistem Komputer

ECE2049-E17 Lecture 6 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review

1 Digital tools. 1.1 Introduction

Chapter 2. Data Representation in Computer Systems

ECOM 2325 Computer Organization and Assembly Language. Instructor: Ruba A.Salamah INTRODUCTION

AVR Microcontrollers Architecture

C NUMERIC FORMATS. Overview. IEEE Single-Precision Floating-point Data Format. Figure C-0. Table C-0. Listing C-0.

Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur Number Representation

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Digital Fundamentals

Objectives. Connecting with Computer Science 2

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

Floating Point (with contributions from Dr. Bin Ren, William & Mary Computer Science)

Computer (Literacy) Skills. Number representations and memory. Lubomír Bulej KDSS MFF UK

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

Experimental Methods I

CO212 Lecture 10: Arithmetic & Logical Unit

Team 1. Common Questions to all Teams. Team 2. Team 3. CO200-Computer Organization and Architecture - Assignment One

Summer 2003 Lecture 1 06/09/03

CHAPTER 2 Data Representation in Computer Systems

The ALU consists of combinational logic. Processes all data in the CPU. ALL von Neuman machines have an ALU loop.

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

CS 101: Computer Programming and Utilization

COMP Overview of Tutorial #2

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

Module 2: Computer Arithmetic

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

The type of all data used in a C (or C++) program must be specified

3.5 Floating Point: Overview

History of Computing. Ahmed Sallam 11/28/2014 1

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

Number Systems. TA: Mamun. References: Lecture notes of Introduction to Information Technologies (ITEC 1011) by Dr Scott MacKenzie

Number Systems CHAPTER Positional Number Systems

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Data Representation Floating Point

Scientific Computing. Error Analysis

MICROPROCESSOR BASED SYSTEM DESIGN

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

Behind the Curtain. Introduce TA Friday 1 st lab! (1:30-3:30) (Do Prelab before) 1 st Problem set on Thurs. Comp 411 Fall /16/13

嵌入式微處理機 Embedded Microprocessors

Divide: Paper & Pencil

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

CHAPTER 2 Data Representation in Computer Systems

Lesson #1. Computer Systems and Program Development. 1. Computer Systems and Program Development - Copyright Denis Hamelin - Ryerson University

Announcement. (CSC-3501) Lecture 3 (22 Jan 2008) Today, 1 st homework will be uploaded at our class website. Seung-Jong Park (Jay)

ECE2049: Embedded Computing in Engineering Design A Term Fall Lecture #9: Exam Review w/ Solutions

Transcription:

ECE342 Digital II Lecture 1: Introduction to Microprocessors Dr. Ying (Gina) Tang Electrical and Computer Engineering Rowan University 1

What is a microprocessor Informally, a microprocessor (µp) is the brain of a computer that has been implemented on one semiconductor chip Precisely, a microprocessor (µp) is a single-chip CPU for a programmable computer Prof. Ying (Gina) Tang 2

The Microprocessor Age The microprocessor became possible only after integrated circuit technology had advanced to the point where several thousand transistor switches could be integrated onto single semiconductor chip Prof. Ying (Gina) Tang 3

Advantages of Microprocessors Programmability Sophisticated functions can be provided relatively easily in software Performance Advances in integrated circuit technology leads to faster and more powerful microprocessors Reliability Integrated circuits are highly-reliable and solid state devices. Compactness Prof. Ying (Gina) Tang 4

Limitations of Microprocessors Limitations External memory chips needed to hold program and data Glue logic (e.g., address decoder and buffer chips) required to interface with the memory chips Peripheral chips needed to interface with I/O devices Prof. Ying (Gina) Tang 5

Embedded Processor What make a processor an embedded processor A microprocessor used in an embedded system that is not a general-purpose computer Systems range from using 4-bit to 128-bit CPUs. Programming languages range from assembly language to higher level object oriented languages. Complex systems typically run a embedded OS or a lite desktop OS. CPU clock speeds can range from khz to GHz. Packages from 6 pins to 1000+ pins. Prof. Ying (Gina) Tang 6

Anatomy of a Microcontroller Essential Components of a Microcontroller : the processor and peripheral functions Prof. Ying (Gina) Tang 7

Anatomy of a Microcontroller Different Peripherals Timers The time at which transitions occur on an input can be recorded Outputs can be driven on and off automatically at a specified frequency They provide a regular tick that can be used to schedule tasks in a program Watchdog Timer A safety feature that resets the processor if the program stuck in an infinite loop Prof. Ying (Gina) Tang 8

Anatomy of a Microcontroller Different Peripherals (cont.) Communication interfaces Integrated Circuit (I 2 C) Universal Synchronous/Asynchronous Receiver/Transmitter (USART) RS232 A/D and D/A Real Time Clock Track the time of day Data loggers Prof. Ying (Gina) Tang 9

Architectures Harvard Architecture: Microchip PIC; Intel 8051 von Neumann Architecture MSP430; ARM7 10

Data representation Number systems Integer storage sizes byte word doubleword quadword 8 16 32 64 Ranges of unsigned integers 11

Data representation Number systems Storage sizes and ranges of signed integers Two s complement Question: what are the 2 s complement representations of 8d and 8d in 8-bit binary? 12

Data representation Conversion Convert binary/hex/oct to decimal (Number) n = (multiply each digit by an integer power of n) Convert decimal to binary/hex/oct For a decimal integer - successive division by n - accumulation of the remainders For a decimal fraction - successive multiplication by n - accumulation of the integer digits 13

Data representation Your turn.conversion Problems (0.6875) 10 =( ) 2 (1.234) 5 = ( ) 10 45677h = ( ) 8-38d = ( )h 14

Data representation Character Storage 7-bit /8-bit ASCII Format Value ASCII binary "01000001" ASCII decimal "65" ASCII hexadecimal "41" ASCII octal "101" 16-bit Unicode: http://www.unicode.org 15

Data representation Real Numbers floating-point numbers Floating-point numbers are expressed as a number (Significand) multiplied by a constant (base) raised to some integer power (exponent). e.g., the floating-point notation for decimal number +6123.78 is: +.612378x10 4 16

Data representation Floating-point numbers can be taken with ± E binary numbers in the form: ± S B This number can be stored in a binary word with three field: Sign: plus or minus The base B is implicit Significand S and need not be stored because it is the same for Exponent E all numbers A normalized number: one in which the most significant digit of the significand is nonzero. 17

IEEE Floating-point Standard For base 2 representation, a normalized number is one in which the most significant bit of the ± E significand is one: ± 1. bbb... b 2 Since the most significant bit is always one, it is unnecessary to store this bit, which is called the hidden bit. Biased exponent: a constant called excess number is added to the actual exponent so that the biased exponent is always a positive number. 18

IEEE Floating-point Standard Two most common formats of IEEE floatingpoint representations (+/- S x B +/-E ) Single precision (the bias is 127d) Sign Biased exponent (E) Significand/mantissa/fraction (S) 1 bit 8 bits 23 bits Double precision ( the bias is 1023) Sign Biased exponent (E) Significand/mantissa/fraction (S) 1 bit 11 bits 52 bits Hidden bit Hidden bit In decimal In binary 1.5 x 2-126 0 00000001 10000000000000000000000-1.5 x 2 126 1 11111101 10000000000000000000000 19

IEEE Floating-point Standard Note that we are not representing more individual values with floating-point notation. What we have done is to spread those numbers out in two ranges, positive and negative. The number in floating-point notation are not spaced evenly along the number line as are fixedpoint numbers. 20

IEEE Floating-point Standard Two exceptions The number infinity is stored as all ones in the exponent and all zeros in the mantissa. The sign bit indicates either a positive or a negative infinity The number 0.0 is stored as all zeros. The sign bit indicates either a positive or a negative zero. 21

Focus of This Course Embedded systems without an OS 16 bit processors Embedded software in C Software patterns & tricks Embedded hardware overview Peripheral usage Prof. Ying (Gina) Tang 22

Development Hardware TI MSP430F5529 Launchpad 16-bit processor w/ 128 KB flash Integrated USB and PHY, supporting USB 2.0 4 16-bit timers Hardware multiplier Real time clock 2 university serial communication interfaces DMA (direct memory access) 12-bit A/D 63 I/O pins 23

Development Hardware (cont.) 24

Development Software Code Composer Studio 6 An integrated development environment (IDE) with A suite of tools used to develop and debug embedded applications Compilers for each of TI's device families Source code editor12-bit A/D Project build environment Debugger Simulators Free in a special 16KB code-limited! Available at http://www.ti.com/tool/ccstudio-msp 25