INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Similar documents
Embedded Systems. Computer Organization. Wednesday 25 November 15

Basic Components of Digital Computer

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

8051 MICROCONTROLLERS

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Computer Hardware Requirements for Real-Time Applications

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

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

Lecture 1. Course Overview and The 8051 Architecture

8051 Microcontroller

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

PIC Microcontroller and

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

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

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

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

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Architecture of Computers and Parallel Systems Part 6: Microcomputers

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Engr. A. N. Aniedu Electronic and Computer Engineering Nnamdi Azikiwe University, Awka

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

ECE 471 Embedded Systems Lecture 2

Chapter 1. Microcontroller Overview

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

EMBEDDED SYSTEM BASICS AND APPLICATION

AVR Microcontrollers Architecture

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Microprocessors/Microcontrollers

EE 308: Microcontrollers

Microcontrollers. Microcontroller

Introduction to Microcontrollers

Introduction to ARM LPC2148 Microcontroller

1 Introduction to Microcontrollers

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

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

ATmega128. Introduction

ARDUINO MEGA INTRODUCTION

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

MECE336 Microprocessors I

Department of Electronics and Instrumentation Engineering Question Bank

ME 515 Mechatronics. A microprocessor

ELC4438: Embedded System Design Embedded Processor

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

PIC Microcontroller Introduction

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

ENE 334 Microprocessors

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

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

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Somes French translations :

CS-424/580A Microcontrollers and Robotics

Embedded Systems: Hardware Components (part I) Todor Stefanov

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Introducing Microcontrollers System Design

Microprocessors, Lecture 1: Introduction to Microprocessors

MICROPROCESSOR BASED SYSTEM DESIGN

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

PIC32&Overview& E155&

Embedded Systems. Read pages

DERTS Design Requirements (1): Microcontroller Architecture & Programming

Microprocessors And Microcontroller

TMS320C3X Floating Point DSP

ECE 471 Embedded Systems Lecture 2

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

Lecture (02) PIC16F84 (I)

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

ELCT 912: Advanced Embedded Systems

Alireza Mousavi Brunel University


3.1 Description of Microprocessor. 3.2 History of Microprocessor

AT90SO36 Summary Datasheet

BASIC INTERFACING CONCEPTS

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

EE4380 Microprocessor Design Project

About the Presentations

Introduction. Chapter 1

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

ECED3204: Microprocessor Part I--Introduction

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Calendar Description

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

DEPARTMENT OF ELECTRONICS & INSTRUMENTATION

Fig 1. Block diagram of a microcomputer

Overview of Microcontroller and Embedded Systems

Microcontroller: CPU and Memory

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

8051 Microcontroller memory Organization and its Applications

Microprocessors And Microcontrollers (Practical)

Transcription:

UNIVERSIDADE TÉCNICA DE LISBOA INSTITUTO SUPERIOR TÉCNICO Departamento de Engenharia Informática Architectures for Embedded Computing MEIC-A, MEIC-T, MERC Lecture Slides Version 3.0 - English Lecture 21 Title: s and Summary: Architectures; Examples of current devices. 2010/2011 Nuno.Roma@ist.utl.pt

Architectures for Embedded Computing s and Prof. Nuno Roma ACE 2010/11 - DEI-IST 1 / 47 Previous Class In the previous class... Digital Signal Processors (DSP) Architectures TMS320C55 Parallelism exploitation (SIMD, VLIW) TMS320C6x DSP market and their future Prof. Nuno Roma ACE 2010/11 - DEI-IST 2 / 47

Road Map Prof. Nuno Roma ACE 2010/11 - DEI-IST 3 / 47 Summary Today: s & : Architectures; Examples of current devices. Prof. Nuno Roma ACE 2010/11 - DEI-IST 4 / 47

Prof. Nuno Roma ACE 2010/11 - DEI-IST 5 / 47 Processing unit particularly suited to the control of simple procedures or devices in embedded systems; Processor families: General Purpose Processors (GPP): transfer and data manipulation operations (MOVs); conditional execution operations (IF... ELSE...); Digital Signal Processors (DSP): mathematical computation (mainly, multiplications); s: interface with the outside world (peripherals). Common applications: control, actuators, instrumentation, etc. Prof. Nuno Roma ACE 2010/11 - DEI-IST 6 / 47

Application examples Personal appliances: Cellular phones; Watches; Calculators; PDAs. Computer components: Mouse; Keyboards; Modem; Fax; Battery charger. Prof. Nuno Roma ACE 2010/11 - DEI-IST 7 / 47 Application Examples Home appliances: Alarms; Thermostats; Ar conditioners; Remote controllers; Most domestic machines. Industrial applications: Industrial robots (manipulators); Belt conveyor systems; Lifts; Automatic control; Instrumentation. Prof. Nuno Roma ACE 2010/11 - DEI-IST 8 / 47

Application Examples Car industry: On-board computer; Controllers of traction, injection, transmission, break (ABS), etc.; Air bag; Air conditioning; Instrumentation. Entertainment: Video games; Consoles; Toys. Prof. Nuno Roma ACE 2010/11 - DEI-IST 9 / 47 GPPs versus s General Purpose Processors (GPPs): CPU, Memory and IO integrated in a single chip, board or several boards. Prof. Nuno Roma ACE 2010/11 - DEI-IST 10 / 47

GPPs versus s General Purpose Processors (GPPs): CPU, Memory and IO integrated in a single chip, board or several boards. s: CPU, Memory, IO and peripherals integrated in a single chip. Prof. Nuno Roma ACE 2010/11 - DEI-IST 10 / 47 GPPs versus s General Purpose Processors (GPPs): High performance CPU, in an independent chip; Absence of any RAM, ROM and IO modules in the CPU chip: The used memory space should be defined and adjusted according to each particular application; Peripherals (timer, serial port, etc.) are external to the CPU chip. Expansible, versatile and general purpose Prof. Nuno Roma ACE 2010/11 - DEI-IST 11 / 47

GPPs versus s s: CPU with few resources (e.g.: 8-bits); RAM, ROM and IO integrated within the CPU chip; The available memory space is fixed; Peripherals integrated within the CPU chip. Suitable for low-cost and restricted (power, HW, etc.) applications Prof. Nuno Roma ACE 2010/11 - DEI-IST 12 / 47 GPPs versus s Adopted architectures: Von Neumann architecture: Single memory shared by program and data; The processor is interconnected by a data and an address bus. Harvard architecture: Separated memories for program and data; Independent data data and address buses for each memory device. Prof. Nuno Roma ACE 2010/11 - DEI-IST 13 / 47

s CPU and Peripherals Simple CPU, implemented either with: Single-cycle state machine; Control unit with a state machine; Microprogrammed control unit; Very simple pipeline. On-chip peripherals: I/O ports; RAM and ROM memories; Timer; Interruptions controller; USART; Parallel port; etc. Prof. Nuno Roma ACE 2010/11 - DEI-IST 14 / 47 s Families Most manufacturers offer a wide set of devices, with different performance levels; Processing power: 4-bits, 8-bits, 16-bits, 32-bits: 8-bits microcontrollers are the most widely adopted and used by the majority of the applications; 32-bits and 64-bits are only requested by very specialized and reduced markets, with very specific requisites: Communications; Signal processing; Video processing; etc. Prof. Nuno Roma ACE 2010/11 - DEI-IST 15 / 47

s Families Atmel AVR ARM Intel 8-bit 8XC42 MCS48 MCS51 8xC251 16-bit MCS96 MXS296 Microchip 12-bit instruction PIC 14-bit instruction PIC PIC16F84 16-bit instruction PIC National Semiconductor COP8 NEC Motorola 8-bit 68HC05 68HC08 68HC11 16-bit 68HC12 68HC16 32-bit 683xx SGS/Thomson ST62 Texas Instruments TMS370 MSP430 Zilog Z8 Z86E02 Prof. Nuno Roma ACE 2010/11 - DEI-IST 16 / 47 s Market Market: About 16 Billions, in 2000; 8-bits microcontrollers satisfy half of the market needs! Dominant microcontrollers: Microchip 16Fxx Intel 8051 Motorola MC68HC05 National COP800 SGS/Thomson ST62 Zilog Z86Cxx Prof. Nuno Roma ACE 2010/11 - DEI-IST 17 / 47

s Market Prof. Nuno Roma ACE 2010/11 - DEI-IST 18 / 47 Intel MCS-51 s Family Intel 8051 microcontroller Prof. Nuno Roma ACE 2010/11 - DEI-IST 19 / 47

Intel MCS-51 s Family 8-bits microcontroller; Introduced in the market by Intel (8051) by the end of the 1970 s; One of the most popular microcontrollers (about 40% of the market); Today, it is produced by several manufacturers in different formats: Intel: 8751 microcontroller UV-EPROM Atmel: AT89C51, Flash (erase before write) Dallas Semiconductor: DS5000 NV-RAM, RTC Philips: 8051 AD, DA, extended I/O, OTP and flash Prof. Nuno Roma ACE 2010/11 - DEI-IST 20 / 47 Intel MCS-51 s Family CPU, RAM, ROM, I/O, interrupt logic, timer, etc. in a single chip; 8-bits data bus; 16-bits address bus: can accede 2 16 =64 kb memory positions (RAM and ROM); On-chip RAM - 128 bytes ( Data Memory ); On-chip ROM - 4 kb ( Program Memory ); 4-bytes bi-directional IO port; UART (serial port); 2 16-bit counters/timers; Interrupt controller (2 priority levels); Low-power mode. Prof. Nuno Roma ACE 2010/11 - DEI-IST 21 / 47

Intel MCS-51 s Family Architecture: Prof. Nuno Roma ACE 2010/11 - DEI-IST 22 / 47 Intel MCS-51 s Family Prof. Nuno Roma ACE 2010/11 - DEI-IST 23 / 47

Intel MCS-51 s Family Some elements of the 8051 family: Prof. Nuno Roma ACE 2010/11 - DEI-IST 24 / 47 Intel MCS-51 s Family Internal peripherals: Parallel IO ports; Clock generator; Serial port; Timers; Interrupt controller. Prof. Nuno Roma ACE 2010/11 - DEI-IST 25 / 47

Intel MCS-51 s Family Parallel IO ports: Each port can be configured either for input or output; The direction is defined by special registers. Prof. Nuno Roma ACE 2010/11 - DEI-IST 26 / 47 Intel MCS-51 s Family Serial port: Data is sent/received serially; The transmission rate (BAUD rate) and the transmission mode are configured with specific registers (SFR). Prof. Nuno Roma ACE 2010/11 - DEI-IST 27 / 47

Intel MCS-51 s Family 2 internal timer: Each timer increments the counter at each clock cycle; The count limit is configured using specific timer registers (TH0, TL0, TH1, TL1); The current count value can be read in registers TH0, TL0, TH1, TL1; At the end of the count: An interruption is generated; Dedicated bits at SFR register are activated. Prof. Nuno Roma ACE 2010/11 - DEI-IST 28 / 47 Intel MCS-51 s Family Interrupt controller: 5 types of interruption: Timer 1 Overflow; Timer 2 Overflow; External interruption 1; External interruption 2; Serial port event (buffer full, buffee empty, etc.). Interruptions are activated/inhibited using the SFR register. Prof. Nuno Roma ACE 2010/11 - DEI-IST 29 / 47

Microchip s PIC Family Large microcontrollers (PIC) family: Wide processing capacity offer: 8, 16 or 32 bits; Several (memory) addressing spaces available: RAM ROM EEPROM Flash Advanced communication peripherals and protocols. Prof. Nuno Roma ACE 2010/11 - DEI-IST 30 / 47 Microchip s PIC Family PIC microcontrollers family: Prof. Nuno Roma ACE 2010/11 - DEI-IST 31 / 47

Microchip s PIC Family Vast set of peripherals and protocols: Communication peripherals and protocols: RS232/RS485 SPI I 2 C CAN USB TCP/IP Ethernet Control and timer peripherals: Acquisition and comparison Pulse Width Modulation (PWM) Counters and timers Watchdogs Visual peripherals: LED drivers LCD drivers Analog peripherals: A/D converters up to 12-bits D/A converters Comparators and signal amplifiers Voltage detectors Temperature sensors Oscillators Voltage references Voltage regulators Prof. Nuno Roma ACE 2010/11 - DEI-IST 32 / 47 Prof. Nuno Roma ACE 2010/11 - DEI-IST 33 / 47

- Are they another particular application of microcontrollers? Prof. Nuno Roma ACE 2010/11 - DEI-IST 34 / 47 Appeared in the beginning of the 1970 s, but... Only by the beginning of the 1980 s were the supporting technologies developed. Two types of cards appeared: Memory card (without CPU); Card with microprocessor. Prof. Nuno Roma ACE 2010/11 - DEI-IST 35 / 47

Applications: Information technology: Secure access and user authentication; Storage of digital certificates and passwords; Encryption of critical data; Cellular phones (GSM) Subscriber authentication; Data storage; e-commerce: e-banking and e-payments; Identification and access control (tickets); Parking; Phone credit (decrement of a credit counter). Prof. Nuno Roma ACE 2010/11 - DEI-IST 36 / 47 WITHOUT microprocessor: They are usually based on the I 2 C bus (serial memory); Typical storage space: 256 Bytes; EEPROM memory: Non-volatile; 10.000 write/erase cycles; 10ms to write a given cell or a group of cells; Low cost. Prof. Nuno Roma ACE 2010/11 - DEI-IST 37 / 47

WITH microprocessor Processor: Usually, 8-bits @ 3.5-5.0 MHz. E.g.: Intel s 8051; Memory: ROM (16 kbytes - 32 kbytes) for the operating system; RAM (256 Bytes - 512 Bytes) for data; EEPROM (4 kbytes - 16 kbytes) for persistent data; ROM size 4 EEPROM size 16 RAM size; File system supported on the installed memory; Small silicon area (5mm 2 ), due to space and energy restrictions. Prof. Nuno Roma ACE 2010/11 - DEI-IST 38 / 47 Communication: Contact-based; Contact-less (transmission with an antena); Serial protocol, 9600 bps. Prof. Nuno Roma ACE 2010/11 - DEI-IST 39 / 47

Power-supply: With battery; Without battery: the CPU is powered with an inductive circuit. Prof. Nuno Roma ACE 2010/11 - DEI-IST 40 / 47 Cipher algorithms: Public / Private key algorithms: RSA (Rivest-Shamir-Adleman): 1024 bits EC-167 (Elliptic Curve Cryptography): 167 bits Symmetric key algorithms: AES (Advanced Encryption Standard) 128/192/256 bits DES (Data Encryption Standard) 56/112 bits SG-LFSR (Shrinking Generator - Linear Feedback Shift Register) Prof. Nuno Roma ACE 2010/11 - DEI-IST 41 / 47

Dedicated commands to support secure / cryptography protocols: Access control: Examples: check key(), change key() Authentication: Examples: autenticate() Encryption: Examples: start encription(), stop encription() Atomic operations: Examples: exchange(), increment(), decrement() Prof. Nuno Roma ACE 2010/11 - DEI-IST 42 / 47 Other examples: Key generation to access e-banking systems: Prof. Nuno Roma ACE 2010/11 - DEI-IST 43 / 47

Other examples: Dallas ibutton: Applications: Access control; Storage; Security; Interface: Only two wires: Power + Data Ground Serial communication: 16kbps a 142kbps Prof. Nuno Roma ACE 2010/11 - DEI-IST 44 / 47 Other examples: Dallas ibutton: Functionality: Each unit has an unique address; When existent, the installed microprocessor has very scarce resources and is dedicated to the target application (e.g.: encryption engine). Available models: Address-only (ID only); Memory-only; Real-time clock; Authentication/encryption key; Sensor (thermometer, hydrometer); Data-logger. Prof. Nuno Roma ACE 2010/11 - DEI-IST 45 / 47

Prof. Nuno Roma ACE 2010/11 - DEI-IST 46 / 47 Dedicated architectures: Application Specific Instruction-set Processors (ASIPs) Architectures extensions: Instruction Set Architecture (ISA) extensions Prof. Nuno Roma ACE 2010/11 - DEI-IST 47 / 47