Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Similar documents
Dec Hex Bin ORG ; ZERO. Introduction To Computing

8051 INTERFACING TO EXTERNAL MEMORY

CC411: Introduction To Microprocessors

CPEG300 Embedded System Design. Lecture 3 Memory

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors


Microprocessor. Dr. Rabie A. Ramadan. Al-Azhar University Lecture 1

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

EE 308: Microcontrollers

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

5 Computer Organization

Computer Organization

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Computer Organization

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

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

RISC (Reduced Instruction Set Computer)

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Memory & Simple I/O Interfacing

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Chapter 4 The Components of the System Unit

Computer Organization and Assembly Language (CS-506)

Module 5a: Introduction To Memory System (MAIN MEMORY)

Computers Are Your Future

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Chapter TEN. Memory and Memory Interfacing

Lecture 13: Memory and Programmable Logic

Semiconductor Memories: RAMs and ROMs

Organization. 5.1 Semiconductor Main Memory. William Stallings Computer Organization and Architecture 6th Edition

5 Computer Organization

Memory and Programmable Logic

Information Science 1

Chapter 5 Internal Memory

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Lecture (01) Introducing Embedded Systems and the Microcontrollers By: Dr. Ahmed ElShafee

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

An Overview of the Computer System. Kafui A. Prebbie 24

William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

SECTION-A

ECED3204: Microprocessor Part I--Introduction

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

Week 1. Introduction to Microcomputers and Microprocessors, Computer Codes, Programming, and Operating Systems

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Microprocessors/Microcontrollers

Concept of Memory. The memory of computer is broadly categories into two categories:

Computer Organization. 8th Edition. Chapter 5 Internal Memory

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

MECE336 Microprocessors I

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

ELCT 912: Advanced Embedded Systems

Memory memories memory

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

Computer Systems Organization

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (5 th Week)

ORG ; Week8. Memory and Memory Interfacing

Computers Are Your Future


Technology in Action

Large and Fast: Exploiting Memory Hierarchy

Chapter One. Introduction to Computer System

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Principle and Interface Techniques of Microcontroller

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

P-2 Digital Design & Applications

IB Computer Science Topic.2-

Summer 2003 Lecture 18 07/09/03

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Menu. word size # of words byte = 8 bits

EE251: Thursday November 15

Discovering Computers 2012

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

System Unit Components Chapter2

Chapter Two. Hardware Basics: Inside the Box

Memory classification:- Topics covered:- types,organization and working

Introduction to Microcontrollers

Basic Computer Architecture

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

What is the typical configuration of a computer sold today? 1-1

Chapter 4 Main Memory

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422)

Embedded Systems Design: A Unified Hardware/Software Introduction. Outline. Chapter 5 Memory. Introduction. Memory: basic concepts

Embedded Systems Design: A Unified Hardware/Software Introduction. Chapter 5 Memory. Outline. Introduction

Components of a personal computer

Module 2: Introduction to AVR ATmega 32 Architecture

Chapter 9: A Closer Look at System Hardware

Chapter 9: A Closer Look at System Hardware 4

Chapter 4 The Components of the System Unit

Memory Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Transcription:

Lecture Objectives Introduction to Computing Chapter The AVR microcontroller and embedded systems using assembly and c Students should be able to: Convert between base and. Explain the difference between a bit, a nibble, a byte and a word Give precise mathematical definitions of the terms kilobyte, megabyte, gigabyte and terabyte List and describe the purpose of the major components of a computer system Compare and contrast the different types of computer memory Describe the relationship between the number of memory locations on a chip, the number of data pins, and the chip memory capacity Describe the role of the in computer systems List the major components of the and describe the purpose of each List a describe the steps a follows in memory address decoding Understand the RISC and Harvard architectures Topics Numbering Systems Base and numbering systems and ASCII codes Internal organization of computers I/O Connecting the different parts Connecting memory to Connecting I/Os to How computers work Humans utilizes the base or decimal system in their everyday life while computers use the base or binary system. Decimal 8 9 Binary The binary system (base ) is used in computers because and represent the two voltage levels of on and off. Conversion example???

Numbering Systems Hexadecimal (base ) is used as a convenient representation of binary numbers. Its is much easier for humans to identify with 89H than b. Hexadecimal digit structure Converting between Binary and Hexadecimal Binary to Hex Group binary in groups of starting from the right Replace each -bit binary number with its hex equivalent. Example: Answer: Represent binary in hex. 9Fh or x9f How is it done?? Hex to Binary Replace each hex digit with its -bit binary equivalent. Hex 8 9 A B C D E F Dec 8 9 Example: Answer: Convert x9b to binary. b How is it done?? ASCII Codes ASCII Table All information in a computer system must be represented by s and s. As such binary patterns are assigned to letters and other characters. In the 9s a standard representation called ASCII (American Standard Code for Information Exchange) was established. Source: https://simple.wikipedia.org/wiki/ascii

Some Important Terminology Some Important Terminology A bit is a binary digit: that is can have the value or. A kilobyte is bytes, that is bytes. A byte is defined as 8 bits. A megabyte is bytes, that is,8, bytes. A nibble is half a byte, that is bits. A gigabyte is bytes. * A word is bytes A terabyte is bytes. Logic Gates Logic Levels

Internal Organization of Computers The internal organization of a computer is broken down into three parts: (Central Processing Unit) I/O (input/output) devices. Internal Organization of Computers The function of the is to execute (process) information stored in memory. Source: http://www.keystudy.com/microsys.htm The I/O devices, example keyboard, mouse, sensor, LCD, printer, hands of a robot, provide a means of communicating with the. Internal Organization of Computers Everything that can store, retain, and recall information. hard disk a piece of paper etc. The is connected to memory and I/O devices through strips of wire called a bus. There are three types of buses: address bus, data bus and control bus.

Characteristics Semiconductor Memories Capacity The number of bits that a memory can store. E.g. 8 Kbits, Mbits Organization How the locations are organized E.g. a 8 x memory has 8 locations, bits each Access time How long it takes to get data from memory 8 locations bits ROM Mask ROM PROM (Programmable ROM) EPROM (Erasable PROM) EEPROM (Electronic Erasable PROM) Flash EPROM RAM (Static RAM) SRAM (Dynamic RAM) DRAM Nonvolatile ) NV-RAM (RAM Semiconductor Memories Semiconductor Memories Mask ROM - Programmed by the IC manufacturer PROM - OTP (One-Time Programmable) User programed (only once) EEPROM Erased Electrically Erased instantly Each byte can be erased separately UV-EPROM Ultraviolet (UV) radiation is used to erase it Erasing takes up to minutes The entire contents of ROM are erased Flash ROM Erased in a Flash the entire device is erased at once

Semiconductor memories \RAM\SRAM (Static RAM) ROM Mask ROM PROM (Programmable ROM) EPROM (Erasable PROM) EEPROM (Electronic Erasable PROM) Flash EPROM RAM (Static RAM) SRAM (Dynamic RAM) DRAM Nonvolatile ) NV-RAM (RAM SRAM - Static RAM Made of flip-flops (Transistors) Advantages: Faster No need for refreshing Disadvantages: High power consumption Expensive K x 8 SRAM Semiconductor Memories Semiconductor Memories DRAM Dynamic RAM Made of capacitors NV-RAM Nonvolatile RAM Made of SRAM, Battery, control circuitry Advantages: Less power consumption Cheaper High capacity Advantages: Very fast Infinite program/erase cycle Non-volatile Disadvantages: Slower Refresh needed Disadvantage: Expensive

Central Processing Unit Connecting memory to Tasks: To execute instructions Call instructions one after another and execute them Pin Out A A Address Lines D D8 Data Lines Write Enable Output Enable Chip Select 8 n GND D-D A-A n- Connecting ing Writing from to memory to Connecting I/Os to Address Data Data should have lots of pins! Mouse Time Time Keyboard Network Graphic Card Sound Card

Connecting I/Os to using bus Connecting I/Os and to Write Write I/O I/O I/O I/O n 8 n I/O GND A-An- D-D I/O I/O I/O n Separate address and data lines for memory and I/O devices. Connecting I/Os and memory to using bus How could we manage it? GND A-An- D-D Connecting I/Os and to using bus (Peripheral I/O) Same address and data lines for memory and I/O devices. GND A-An- D-D.. Write Write IO/MEM I/O I/O I/O I/O n I/O I/O I/O I/O n 8

Connecting I/Os and to using bus ( Mapped I/O) Another example for address decoder How could we make the logic circuit? Solution Control. bus Write Write the address range in binary. Separate the fixed part of address. Using a NAND, design a logic circuit whose output activates when the fixed address is given to it. GND A-An- D-D.. Logic circuit The logic circuit enables when address is between and Design an address decoder for address of H to FFH. Solution. Write the address range in binary. Separate the fixed part of address. Design the logic circuit. From address H To address FFH a a a9 a8 a a a a a a a a a8 a9 a a a a a a a a a a From address I/O To address a I/O a I/O 8 I/O n a a An easy way of designing PC (Program Counter) Inside the Instruction decoder ALU (Arithmetic Logic Unit) Registers ALU PC Instruction decoder A B C D registers ALU Inst. Dec. PC: How computers work Write A B C D registers Logic circuit I/O I/O I/O 8 I/O n h Ch h 8h EAh h h A [] B A A [] A A+B [] A 9

How computers work h Ch h 8h EAh h A [] B A A [] A A+B [] A How computers work h Ch A [] h B A 8h A [] A A+B EAh [] A h h h Logic circuit Logic circuit ALU PC: Inst. Dec. Write A B C D registers 9 I/O I/O I/O 8 I/O n ALU PC: Inst. Dec. Write 9 A B C D registers I/O I/O I/O 8 I/O n How computers work h Ch h 8h EAh h h A [] B A A [] A A+B [] A Opcode How Instruction decoder works Operand Opcode Operand Instruction + E ALU Write E A 9 B PC: Inst. Dec. C D registers Eh Logic circuit I/O I/O I/O 8 I/O n h Ch h 8h EAh h h A [] B A A [] A A+B [] A Instruction Operation Code Meaning A x A [x] A A register (x) A A + x A A + register (x) A A x Register (x H ) Register (x L ) [x] A

Von Neumann vs. Harvard architecture Sources Code Von Neumann architecture Data http://f.tqn.com/y/pcsupport//w/k/e/-/-/intelxeon-e-.jpg http://www.physics-and-radioelectronics.com/computerbasics/images/computerblockdiagram.png https://cdn.sparkfun.com/assets//d////8 fdce9f9.png Code Data Harvard architecture