Fundamentals of. Chapter 1. Microprocessor and Microcontroller. Dr. Farid Farahmand. Updated: Tuesday, January 16, 2018

Similar documents
CSC 220: Computer Organization Unit 11 Basic Computer Organization and Design

Elementary Educational Computer

Appendix D. Controller Implementation

Computer Architecture. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Chapter 4 The Datapath

System Overview. Hardware Concept. s Introduction to the Features of MicroAutoBox t

Chapter 1. Introduction to Computers and C++ Programming. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Python Programming: An Introduction to Computer Science

University of North Carolina at Charlotte ECGR-6185 ADVANCED EMBEDDED SYSTEMS SMART CARDS. Sravanthi Chalasani

Course Site: Copyright 2012, Elsevier Inc. All rights reserved.

Computer Graphics Hardware An Overview

Microprocessors/Microcontrollers

Multi-Threading. Hyper-, Multi-, and Simultaneous Thread Execution

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor. Part A Datapath Design

ELEG 5173L Digital Signal Processing Introduction to TMS320C6713 DSK

Master Informatics Eng. 2017/18. A.J.Proença. Memory Hierarchy. (most slides are borrowed) AJProença, Advanced Architectures, MiEI, UMinho, 2017/18 1

Computer Systems - HS

CMSC Computer Architecture Lecture 12: Virtual Memory. Prof. Yanjing Li University of Chicago

K-NET bus. When several turrets are connected to the K-Bus, the structure of the system is as showns

CSE 305. Computer Architecture

CS2410 Computer Architecture. Flynn s Taxonomy

CMSC Computer Architecture Lecture 3: ISA and Introduction to Microarchitecture. Prof. Yanjing Li University of Chicago

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

ELC4438: Embedded System Design Embedded Processor

Estimated Time for Unit: 10.5 h ours Unit i CompUter BasiCs Lesson hrs. Lesson hrs. Lesson hrs. Lesson hrs.

UNIVERSITY OF MORATUWA

Isn t It Time You Got Faster, Quicker?

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor Advanced Issues

MOTIF XF Extension Owner s Manual

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

n Explore virtualization concepts n Become familiar with cloud concepts

1. SWITCHING FUNDAMENTALS

CMSC Computer Architecture Lecture 2: ISA. Prof. Yanjing Li Department of Computer Science University of Chicago

Morgan Kaufmann Publishers 26 February, COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 5

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor. Single-Cycle Disadvantages & Advantages

Morgan Kaufmann Publishers 26 February, COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 5.

Using the Keyboard. Using the Wireless Keyboard. > Using the Keyboard

EE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 13 Control and Sequencing: Hardwired and Microprogrammed Control

USB TO PARALLEL USB to DB25 Parallel Adapter Cable

Computer Architecture

Computers and Scientific Thinking

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

TELETERM M2 Series Programmable RTU s


The University of Adelaide, School of Computer Science 22 November Computer Architecture. A Quantitative Approach, Sixth Edition.

Lecture 3. RTL Design Methodology. Transition from Pseudocode & Interface to a Corresponding Block Diagram

Introduction to Microcontrollers

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

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

Lecture 1: Introduction and Fundamental Concepts 1

TELETERM M2 Series Programmable RTU s

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

G2 T. Specification Sheet G2T-001 G2T Touchscreen Mainframes Accepts G2 Plug-in Modules Four Sizes: 2RU, 3RU, 6RU and 8RU

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Introduction to Computing Systems: From Bits and Gates to C and Beyond 2 nd Edition

Outline. CSCI 4730 Operating Systems. Questions. What is an Operating System? Computer System Layers. Computer System Layers

Choosing a Micro for an Embedded System Application

Multiprocessors. HPC Prof. Robert van Engelen

Did you know that houses with CCTV are 90% less likely to be burgled? Introducing the new Easy Fit range of CCTV.

9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence

State-space feedback 6 challenges of pole placement

PIC Microcontroller and

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

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

CMSC22200 Computer Architecture Lecture 9: Out-of-Order, SIMD, VLIW. Prof. Yanjing Li University of Chicago

Lecture 12: PI/T parallel I/O, part II

OPC Server ECL Comfort 210/310 OPC Server

EE 308: Microcontrollers

Architectural styles for software systems The client-server style

1 Introduction to Microcontrollers

System and Software Architecture Description (SSAD)

Microprocessors And Microcontroller

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Analysis Metrics. Intro to Algorithm Analysis. Slides. 12. Alg Analysis. 12. Alg Analysis

Computer Architecture Dr. Charles Kim Howard University

Introduction CHAPTER Computers

End Semester Examination CSE, III Yr. (I Sem), 30002: Computer Organization

CAEN Tools for Discovery

Chapter 9. Pointers and Dynamic Arrays. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Appendix A. Use of Operators in ARPS

Introduction to Network Technologies & Layered Architecture BUPT/QMUL

G2 T Made in the USA. Specification Sheet G2T-001 G2T Mainframes with Touchscreen Accepts G2 Plug-in Modules Four Sizes: 2RU, 3RU, 6RU and 8RU

Panel for Adobe Premiere Pro CC Partner Solution

GE FUNDAMENTALS OF COMPUTING AND PROGRAMMING UNIT III

Using the Avid Adrenaline

Tutorial on Packet Time Metrics

A SOFTWARE MODEL FOR THE MULTILAYER PERCEPTRON

Lecture 1: Introduction and Strassen s Algorithm

One advantage that SONAR has over any other music-sequencing product I ve worked

Outline n Introduction n Background o Distributed DBMS Architecture

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Baan Tools User Management

Chapter 5. Functions for All Subtasks. Copyright 2015 Pearson Education, Ltd.. All rights reserved.

Lecture 2. RTL Design Methodology. Transition from Pseudocode & Interface to a Corresponding Block Diagram

Computer Memory. Textbook: Chapter 1

Lecture 1: Introduction

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

SCAN INSPECT TRACK SOLVE

Term Project Report. This component works to detect gesture from the patient as a sign of emergency message and send it to the emergency manager.

Security and Communication. Ultimate. Because Intercom doesn t stop at the hardware level. Software Intercom Server for virtualised IT platforms

Transcription:

Fudametals of Chapter 1 Microprocessor ad Microcotroller Dr. Farid Farahmad Updated: Tuesday, Jauary 16, 2018

Evolutio First came trasistors Itegrated circuits SSI (Small-Scale Itegratio) to ULSI Very Large Scale Itegratio circuits (VLSI) 1- Microprocessors (MPU) Microcomputers (with CPU beig a microprocessor) Compoets: Memory, CPU, Peripherals (I/O) Example: Persoal computers 2- Microcotroller (MCU) Microcomputers (with CPU beig a microprocessor) May special fuctio peripheral are itegrated o a sigle circuit Types: Geeral Purpose or Embedded System (with special fuctioalities)

Microcotrollers Embedded Systems A embedded system is a special-purpose computer system desiged to perform oe or a few dedicated fuctios ofte with real-time A itegrated device which cosists of multiple devices Microprocessor (MPU) Memory I/O (Iput/Output) ports Ofte has its ow dedicated software

Embedded Systems 4

Amazo Warehouse Kiva Robot 5

Microprocessor-Based Systems Cetral Processig Uit (CPU) Memory Iput/Output (I/O) circuitry Buses Address bus Data bus Cotrol bus

MPU CLK GP- CPU Reg CPU Arithmetic Logic Uit Register Arrays Microprocessor-based System Cotrol Uit

Microprocessor-Based System with Buses: Address, Data, ad Cotrol

Microprocessor-based Systems Microprocessor The microprocessor (MPU) is a computig ad logic device that executes biary istructios i a sequece stored i memory. Characteristics: Geeral purpose cetral processor uit (CPU) Biary Register-based Clock-drive Programmable

Microprocessor-based Systems Microprocessor the brais of the computer its job is to fetch istructios, decode them, ad the execute them 8/16/32/etc bit (how it moves the data cotais: Arithmetic Logic Uit Register Arrays Cotrol Uit ALU performs computig tasks maipulates the data/ performs umerical ad logical computatios Registers are used for temp. storage Cotrol uit is used for timig ad other cotrollig fuctios cotais a program couter (ext istructio s address ad status register) System software: A group of programs that moitors the fuctios of the etire system

Remember

Microprocessor-based Systems Memory Memory is a group of registers 16 register address: 0-15 i biary: 0-1111; Address lies: A0-A3 Serves two major purposes q storig the biary codes for the sequece of istructios specified by programs (program) q storig biary data that the computer eeds to execute istructios (data)

Microprocessor-based Systems Memory Types R/W: Read/Write Memory; also called RAM It is volatile (losses iformatio as power is removed) Write meas the processor ca store iformatio Read meas the processor ca receive iformatio from the memory Acts like a Blackboard! ROM: Read-Oly memory; It is typically o-volatile (permaet) ca be erasable It is similar to a Page from your textbook

Microprocessor-based Systems Memory Classificatio Basic Techologies: Semicoductor Magetic Optical (or combiatio) Expesive Fast/ Cheap Slow Oetime programmable Electroically Erasable PROM

Microprocessor-based Systems -oe trasistor ad oe capacitor to store a bit -Leakage problem, thus requires refreshig -Used for dyamic data/program storage -Cheap ad slow! Memory Classificatio -4/6 trasistor to save a sigle bit - Volatile - Fast but expesive Expesive Fast/ Cheap Slow Oetime programmable Electroically Erasable PROM

Erasable ROMs Marked Programmed ROM Programmed by the maufacturer Programmable ROM (PROM) Ca be programmed i the field via the programmer Erasable Programmable ROM (EPROM) Uses ultraviolet light to erase (through a quartz widow) OTP refers to oe-time programmable Electrically Erasable Programmable ROM (EEPROM) FLASH Each program locatio ca be idividually erased Expesive Requires programmer Ca be programmed i-circuit (i-system) Easy to erase (o programmer) Oly oe sectio ca be erased/writte at a time (typically 64 bytes at a time)

Microprocessor-based Systems I/O Ports The way the computer commuicates with the outside world devices I/O ports are coected to Peripherals Peripherals are I/O devices Examples Iput devices Output devices Priters ad modems, keyboard ad mouse scaer Uiversal Serial Bus (USB)

Microprocessor-based Systems - BUS The three compoets MPU, memory, ad I/O are coected by a group of wires called the BUS Address bus cosists of 16, 20, 24, or 32 parallel sigal lies (wires) - uidirectioal these lies cotai the address of the memory locatio to read or writte Cotrol bus cosists of 4 to 10 (or more) parallel sigal lies CPU seds sigals alog these lies to memory ad to I/O ports examples: Memory Read, Memory Write, I/O Read, I/O Write Data bus cosists of 8,16, or 32 parallel sigal lies bi-directioal oly oe device at a time ca have its outputs eabled, this requires the devices to have three-state output

Remember: 111 1111 1111 = 7FF = 2^11-1 = 2047 2^11=2K=2048 2^11 Requires 11 bits Expaded Microprocessor-Based System 1. Note the directios of busses 2. What is the width of the address bus? 3. What is the value of the Address but to access the first register of the R/WM? You must kow how to draw it!

Example 000 001 800 801 2K Registers or bytes of memory 2K Registers or bytes of memory What? How may bits What? How may bits How much memory do we have?

Example 000 001 800 801 2K (2^11 = 2048) Registers or bytes of memory 2K (2^11 = 2048) Registers or bytes of memory 2^11-1=7FF Requires 11 bits FFF Requires 12 bits For a total of 4095 bytes Total of 4K bytes of memory: 2^12 (FFF) à 12 bits ; last values 2^12-1 = 4096-1

Example 8 bits 000 001 1G bytes of memory 30 bits! 2^30-1=3FFF FFFF Next umber: 4000 0000 (i Hex)

Example of a 8-bit MPU A15 A0 ROM 2K 800 RAM 2K FFF D7 D0 8-bit

So what are microcotrollers?

What is a Microcotroller? A microcotroller is a small computer o a sigle itegrated circuit cotaiig processor core, memory, programmable iput/output peripherals Used for specific (embedded) applicatios

Embedded cotrollers Used to cotrol smart machies Examples: priters, auto brakig systems Also called microcotrollers or microcotroller uits (MCU)

Embedded cotrollers Software Characteristics No operatig systems Execute a sigle program, tailored exactly to the cotroller hardware Assembly laguage (vs. High-level laguage) Not trasportable, machie specific Programmer eed to kow CPU architecture Speed Program size Uiqueess

Microcotroller Uit (MCU) Block Diagram A itegrated electroic computig ad logic device that icludes three major compoets o a sigle chip Microprocessor Memory I/O ports Icludes support devices Timers A/D coverter Serial I/O Parallel Slave Port All compoets coected by commo commuicatio lies called the system bus.

First Microcotrollers IBM started usig Itel processors i its PC Itel started its 8042 ad 8048 (8-bit microcotroller) usig i priters Apple Macitosh used Motorola 1980 Itel abadoed microcotroller busiess By 1989 Microchip was a major player i desigig microcotrollers PIC: Peripheral Iterface Cotroller

Differet Microcotrollers (MCU) What is the differece? 8/16/24/32 bits Architecture Package Capability Memory Software (IDE)/cloud ADC (10-12 bit) http://e.wikipedia.org/wiki/microcotroller A more complete list is here: http://e.wikipedia.org/wiki/category:microcotrollers

MCU Architecture RISC Reduced istructio set computer Simple operatios Simple addressig modes Loger compiled program but faster to execute Uses pipeliig Most embedded system CISC Complex istructio set computer More complex istructios (closer to high-level laguage support) x86 stadard (Itel, AMD, etc.), but eve i the maiframe territory CISC is domiat via the IBM/390 chip Bech marks: How to compare MCUs together MIPS: Millio Istructios / secod (Useful whe the compilers are the same)

CISC vs RISC CISC Petium/x86 are CISC-based Complex istructios require multiple cycles May istructios ca referece memory Istructios are executed oe at a time Few geeral registers RISC ARM-based Most mobile-phoes Reduced istructios take 1 cycle Oly Load ad Store istructios ca referece memory Uses pipeliig to execute istructios May geeral registers RISC ad CISC architectures are becomig more ad more alike. *Read the LINK o the web site!*

8-bit Cotrollers (Mai Players) Microchip RISC architecture (reduced istructio set computer) Has sold over 2 billio as of 2002 Cost effective ad rich i peripherals Motorola CISC architecture Has hudreds of istructios Examples: 68HC05, 68HC08, 68HC11 Itel CISC architecture Has hudreds of istructios Examples: 8051, 8052 May differece maufacturers: Philips, Dallas/MAXIM Semicoductor, etc. Atmel RISC architecture (reduced istructio set computer) with CISC istructio set! Cost effective ad rich i peripherals Claims to be very code efficiet less memory for the same code! AVR (Advaced Virtual RISC): TuyAVR, MegAVR, XmegaAVR Freescale Ziglog (Z8) What is the differece? Speed Package Power RAM/ROM IO Pis Software (IDE)/cloud

A Bit About ARMs Architecture (Advaced RISC Machie) ARM desig takes the RISC based computer desig approach Liux like architecture ARM is a British semicoductor (ad software) desig compay that desigs ad liceses ARM processor cores to semicoductor maufacturers They just sell the ARM core Other maufacturers licese the core from them ad the desig microcotrollers aroud that core by addig i peripherals ad memory to suit their desig goals There are differet cores for differet applicatios Cortex-M0/M0+, Cortex-M3, or Cortex-M4.

ARM Processor IP

Applicatios of ARM-Based Microcotrollers Who is usig ARM? Check this out! http://e.wikipedia.org/wiki/list_of_applicatios_of_arm_cores Most Cellphoes!

Desig Examples.. Microcotrollers vs. Microprocessors

MPU-Based Time ad Temperature System

MCU-Based Time ad Temperature System

Refereces Computer History Museum: http://www.computerhistory.org/ Read about microcotrollers: http://www.mikroe.com/e/books/picbook/2_01chapter.htm Lots of good iformatio exist o Wikipedia about microcotrollers http://e.wikipedia.org/wiki/ History of trasistors: http://ivetors.about.com/library/weekly/aa061698.htm Nice trasistor timelie by Itel: http://www.itel.com/techology/timelie.pdf I used a few slides from here: http://www.ceg.metu.edu.tr/courses/ceg336/_documets/itroduct io.pdf ARM related refereces: http://mc2.ul.edu/2013/10/03/gettig-started-with-arm-microcotrollers/ http://www4.cs.fau.de/lehre/ss06/hs_akes/slides/arm.pdf - Very good referece!

Refereces - RISC http://cse.staford.edu/class/sophomorecollege/projects-00/risc/ http://e.wikipedia.org/wiki/complex_istructio_set_co mputer http://e.wikipedia.org/wiki/risc http://arstechica.com/articles/paedia/cpu/pipeliig- 1.ars/4