COMP2121: Microprocessors and Interfacing

Slides:



Advertisements
Similar presentations
Computer Organization and Architecture
Advertisements

Computer Organization and Architecture
COMP6005 An Introduction to Computing Session Two: Computer Hardware.
Instructor: Sazid Zaman Khan Lecturer, Department of Computer Science and Engineering, IIUC.
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
IT Systems Memory EN230-1 Justin Champion C208 –
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.
Memory and Storage - Sheetal Gosrani. Overview Memory Hierarchy RAM Memory Chip Organization ROM Flash Memory.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
S3 Computer Literacy Computer Hardware. Overview of Computer Hardware Motherboard CPU RAM Harddisk CD-ROM Floppy Disk Display Card Sound Card LAN Card.
Memory Hierarchy.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Random access memory.
COMP3221: Microprocessors and Embedded Systems
Discovering Computers 2012: Chapter 4
What is a computer ?  A computer is an electronic device that can accept data and instruction, process them or store them for later retrieval, and sometimes.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
CIM101 : Introduction to computer Lecture 3 Memory.
Microprocessor & Interfacing Techniques. HISTORY OF MICROPROCESSORS  Computers are accessible to ever-increasing sectors of the world's population. 
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Information Technology Basic Computer Architecture Adnan Khalid.
Chapter 1 Computer Hardware1 Computer Hardware A level Computing Book (Reference) By P.M.Heathcore.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Chapter 2.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
Chapter 2 content Basic organization of computer What is motherboard
Computer Components ICS 3U0.
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
MEMORY.
Internal Memory.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Discovering Computers 2011: Living in a Digital World Chapter 4
Chapter 7.2 Computer Architecture
Module IV Memory Organization.
The Central Processing Unit
Introduction of microprocessor
introduction to computer
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
William Stallings Computer Organization and Architecture 7th Edition
Electronics Technology
COMPUTER ORGANISATION AND ARCHITECTURE
Chapter Three Computer Hardware Chapter 3- Computer Hardware.
William Stallings Computer Organization and Architecture 8th Edition
PARTS OF THE COMPUTER squires productions.
Chapter Three Computer Hardware Chapter 3- Computer Hardware.
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 7th Edition
Introduction to Computing
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Computing Chapter 0
MICROPROCESSOR MEMORY ORGANIZATION
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
Introduction To Computing BBA & MBA
William Stallings Computer Organization and Architecture 8th Edition
Computer Memory.
Presentation transcript:

COMP2121: Microprocessors and Interfacing Introduction to Microprocessors http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017

Contents Processor architectures Bus Memory hierarchy

Von Neumann Architecture (1/4) Memory (Program and Data) Control Unit Arithmetic and Logic Unit Input Output John von Neumann in the 1940s

Von Neumann Architecture (2/4) Memory Stores both program and data Control unit Directs the operations of the other units by providing timing and control signals. ALU Performs arithmetic and logical operations such as addition, subtraction, multiplication and division. EDVAC, one of the first electronic stored program computers

Von Neumann Architecture (3/4) Input An input device gets data from users Examples are keyboards, mice, webcams, microphones, and secondary storage devices (hard disks, floppy disks, CD–ROMs etc) . Output An output device sends data to users. Typical output devices are monitors, printers, modems, and secondary storage devices.

Von Neumann Architecture (4/4) ALU and control unit are collectively called CPU (Central Processing Unit) 6 6

Harvard Architecture (1/2) Memory (Program) Memory (Data) Control Unit Arithmetic and Logic Unit Input Output

Harvard Architecture (2/2) Program and data are stored in separate memories, allowing accessing program and data at the same time. AVR microcontrollers use Harvard architecture.

Computer Bus A bus is a set of parallel conductors that transfer data between different components of a computer. A bus has three main parts: Data bus Carries data Address bus Carries the address of data Control bus Carries control signals

Bus-Oriented Computer Architecture … CPU Memory I/O Device 1 I/O Device n Data Bus Address Bus Control Bus

Microprocessors A microprocessor is a CPU on a single Integrated Circuit (IC). A microprocessor can manipulate numbers of a fixed width only at a time. For example, a 8-bit microprocessor can do addition and subtraction of two 8-bit numbers at a time. The first microprocessor Intel’s 4004 was introduced in 1971

Intel’s Microprocessors (1/3) Name Date Transistors Microns Clock speed Data width MIPS 8080 1974 6,000 6 2 MHz 8 bits 0.64 8088 1979 29,000 3 5 MHz 16 bits, 8 bit bus 0.33 80286 1982 134,000 1.5 6 MHz 16 bits 1 80386 1985 275,000 26 MHz 32 bits 5 80486 1989 1,200,000 25 MHz 20 Pentium 1993 3,100,000 0.8 60 MHz 32 bits, 64 bit bus 100 Pentium I 1997 7,500,000 0.35 233 MHz 300 Pentium II 1999 9,500,000 0.25 450 MHz ~510 Pentium 4 2000 42,000,000 0.18 1.5 GHz ~1,700 “Prescott” 2004 125,000,000 0.09 3.6 GHz ~7,000

Intel’s Microprocessors (2/3) The date is the year that the processor was first introduced. Transistors is the number of transistors on the chip. Microns is the width, in microns, of the smallest wire on the chip. For comparison, a human hair is 100 microns thick. As the feature size on the chip goes down, the number of transistors rises. The Intel 8080 was the first microprocessor in a home computer

Intel’s Microprocessors (3/3) Clock speed is the maximum rate that the chip can be clocked at. Data Width is the width of the ALU. For example, an 8-bit ALU can do the addition, subtraction and multiplication of two 8-bit numbers, while a 32-bit ALU can manipulate 32-bit numbers. MIPS stands for "millions of instructions per second" and is a rough measure of the performance of a CPU. Intel Pentium 4 processor

Microcontrollers A microcontroller (also MCU or µC) is a computer-on-a-chip. In addition to the usual arithmetic and logic elements of a general purpose microprocessor, the microcontroller typically integrates additional elements such as read-write memory for data storage, read-only memory, such as flash for code storage, EEPROM for permanent data storage, peripheral devices, and input/output interfaces. Microcontrollers are frequently used in embedded systems such as automobile engine control systems, remote controls and office machines. Microprocessors and microcontrollers are everywhere in our daily life Atmel AVR ATmega8

Embedded Systems An embedded system is a special-purpose computer system designed to perform one or a few dedicated functions. It is usually embedded as part of a complete device including hardware and mechanical parts. Examples: Consumer electronics: Personal digital assistants (PDAs), mp3 players, mobile phones, videogame consoles, digital cameras and DVD players. Transportation systems: Inertial guidance systems, GPS receivers, anti-lock braking system (ABS), Electronic Stability Control (ESC/ESP) and automatic four-wheel drive. Network router, an example of an embedded system. Labelled parts include a microprocessor (4), RAM (6), and flash memory (7).

Computer Memory Hierarchy Decreasing speed and cost Increasing size Processor Auxiliary storage (hard disk, floppy disk, CDROM) Off-chip memory (RAM, ROM) Cache or On-chip memory (SRAM) Registers Fastest but most expensive Main memory Slowest and cheapest

Registers A small amount of storage on the CPU whose contents can be accessed more quickly than other storages available elsewhere. Most, but not all, microprocessors operate on the principle of moving data from main memory into registers, operating on them, then moving the result back into main memory—a so-called load-store architecture. Each register has a fixed length. A n–bit register can store n-bit information. The number of registers of a microprocessor is small.

Cache Memory A high speed memory located on CPU or next to CPU that is managed by hardware. CPU uses cache memory as a high speed buffer to temporarily store data and instructions. Data and instructions are loaded into cache memory by its associated hardware without software’s help. When accessing data and instructions, CPU first tries to get them from cache. If they are not there, CPU will load them from the main memory. Modern microprocessors have separate cache memories for data and instructions.

RAM A type of computer memory that can be accessed randomly; that is, any byte of memory can be accessed without touching the preceding bytes. Two types: DRAM (Dynamic Random Access Memory) and SRAM (Static Random Access Memory). The two types differ in the technology they use to hold data. SRAM is faster and much more expensive. DRAM needs to be refreshed thousands of times per second while SRAM does not need to be refreshed. Both types of RAM are volatile, meaning that they lose their contents when the power is turned off.

Static RAM Cells A static memory cell is a flip-flop. The transistors could be bipolar or MOS devices. The following figure shows a typical static memory cell. C 3.5 V C´ R1 R1´ D1 D1´ A A´ R2 R2´ 2.5 V 0 V Q1 Q1´ ROW_SELECT COLUMN LINES

Dynamic RAM Cells A dynamic cell is a capacitor where absence or presence of charge denotes a stored one or zero. The following figure shows a typical dynamic memory cell. The MOS capacitor can be written to by activating the row, or word, line to turn the MOS transistor on and charge the capacitor through the column, or bit, line. The cell can be read by turning the transistor on and sensing a voltage on the column. Row or Word Line MOS Transistor MOS Capacitor Column or Bit Line

ROM ROM (Read Only Memory) is a type of non-volatile memory, meaning that the contents will not be lost when the power is turned off. There are various types of ROM memory chips. Mask programmable ROM are programmed during the manufacturing stage and cannot be programmed by user. Other ROM devices are field programmable and may be programmed by the user. These are called programmable read only memories. EPROMs are electrically programmable are erased by irradiating the chip through a quartz window with ultraviolet (UV) light. Another type of programmable read only memory is the electrically erasable PROM (EEPROM).

EEPROM Memory EEPROM can be programmed and erased without removing the chip from the circuit in use. The time required to write is longer than a comparable RAM chip. There is a maximum number of times it can be programmed (the industry standard as of 1993 is 10,000 program/erase cycles). EEPROM is used to store small amount of data that must be saved when power is off, e.g., system configuration.

Flash Memory Similar to the EEPROM. Its drawback is that the entire memory or page must be erased where single locations can be erased and reprogrammed in the EEPROM devices. Flash memory takes smaller die area than EEPROM for the same capacity because in flash memory the erase circuits are shared by large blocks of cells (often 512×8), while in EEPROM each cell usually needs a read, write and erase transistor. Flash memory is used to save larger amounts of static data and code.

Reading Material Chapter 9, Microcontrollers and Microcomputers by Fredrick M. Cady.