EMBEDDED SYSTEM BASICS AND APPLICATION



Similar documents
Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

ELEC 5260/6260/6266 Embedded Computing Systems

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

7a. System-on-chip design and prototyping platforms

Chapter 2 Features of Embedded System

Chapter 13. PIC Family Microcontroller

The Central Processing Unit:

Chapter 2 Logic Gates and Introduction to Computer Architecture

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

MICROPROCESSOR AND MICROCOMPUTER BASICS

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

CHAPTER 4 MARIE: An Introduction to a Simple Computer

8051 MICROCONTROLLER COURSE

Lesson 7: SYSTEM-ON. SoC) AND USE OF VLSI CIRCUIT DESIGN TECHNOLOGY. Chapter-1L07: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Microprocessor or Microcontroller?

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Introduction to Digital System Design

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

Embedded Systems. introduction. Jan Madsen

Architectures and Platforms

Microprocessor & Assembly Language

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Chapter 1 Computer System Overview

Introduction to Embedded Systems

Programming Logic controllers

Software engineering for real-time systems

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

İSTANBUL AYDIN UNIVERSITY

What is a System on a Chip?

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Mobile Processors: Future Trends

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

Lecture N -1- PHYS Microcontrollers

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Computer and Set of Robots

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

CISC, RISC, and DSP Microprocessors

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Computer Systems Design and Architecture by V. Heuring and H. Jordan

Operating System Overview. Otto J. Anshus

An Introduction to MPLAB Integrated Development Environment

Introducción. Diseño de sistemas digitales.1

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

Central Processing Unit (CPU)

CSCI 4717 Computer Architecture. Function. Data Storage. Data Processing. Data movement to a peripheral. Data Movement

EEM870 Embedded System and Experiment Lecture 1: SoC Design Overview

Central Processing Unit

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

All Programmable Logic. Hans-Joachim Gelke Institute of Embedded Systems. Zürcher Fachhochschule

CHAPTER 7: The CPU and Memory

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Video Conferencing Unit. by Murat Tasan

Microprocessor and Microcontroller Architecture

Communicating with devices

ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications

Lecture 1. Introduction to Embedded Computer Systems

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

9/14/ :38

FRANCIS XAVIER ENGINEERING COLLEGE

LSN 2 Computer Processors

ARM Microprocessor and ARM-Based Microcontrollers

Microcontrollers A Brief History of Microprocessors

Overview and History of Operating Systems

System Considerations

2.0 Command and Data Handling Subsystem

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Computer Automation Techniques. Arthur Carroll

Keil C51 Cross Compiler

1. Introduction to Embedded System Design

Computer Organization and Components

Embedded Software development Process and Tools:

Lesson 6: 6 EXAMPLES OF EMBEDDED SYSTEMS. Chapter-1L06: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

The new 32-bit MSP432 MCU platform from Texas

Development of an Internet based Embedded System for Smart House Controlling and Monitoring

Microtronics technologies Mobile:

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache

Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller

Power Reduction Techniques in the SoC Clock Network. Clock Power

Soft processors for microcontroller programming education

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

Tutorial for MPLAB Starter Kit for PIC18F

Transcription:

EMBEDDED SYSTEM BASICS AND APPLICATION

TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2

INTRODUCTION What is a system? A system is a way of working, organizing or doing one or many tasks according to a fixed plan, program or set of rules. A system is also an arrangement in which all its units assemble and work together according to the plan or program. 3

SYSTEM EXAMPLES WATCH It is a time display SYSTEM Parts: Hardware, Needles, Battery, Dial, Chassis and Strap Rules 1.All needles move clockwise only 2.A thin needle rotates every second 3.A long needle rotates every minute 4.A short needle rotates every hour 5.All needles return to the original position after 12 hours 4

SYSTEM EXAMPLES WASHING MACHINE It is an automatic clothes washing SYSTEM Parts: Status display panel, Switches & Dials, Motor, Power supply & control unit, Inner water level sensor and solenoid valve. Rules 1.Wash by spinning 2.Rinse 3.Drying 4.Wash over by blinking 5.Each step display the process stage 6.In case interruption, execute only the remaining 5

EMBEDDED SYSTEM Definition: An Embedded System is one that has computer hardware with software embedded in it as one of its important components. Its software embeds in ROM (Read Only Memory). It does not need secondary memories as in a computer HARDWARE SOFTWARE PROGRAM #include <16f876a.h> #use delay (clock=20000000) #byte PORTB=6 main() { set_tris_b(0); portb=255; //decimal delay_ms(1000); portb=0x55; //hexadecimal delay_ms(1000); portb=0b10101010; //binary delay_ms(500); } 6

COMPUTER HARDWARE A Microprocessor A Large Memory (Primary and Secondary) (RAM, ROM and caches) Input Units (Keyboard, Mouse, Scanner, etc.) Output Units (Monitor, printer, etc.) Networking Units (Ethernet Card, Drivers, etc.) I/O Units (Modem, Fax cum Modem, etc.) 7

COMPONENTS OF EMBEDDED SYSTEM It has Hardware Processor, Timers, Interrupt controller, I/O Devices, Memories, Ports, etc. It has main Application Software Which may perform concurrently the series of tasks or multiple tasks. It has Real Time Operating System (RTOS) RTOS defines the way the system work. Which supervise the application software. It sets the rules during the execution of the application program. A small scale embedded system may not need an RTOS. 8

EMBEDDED SYSTEM HARDWARE 9

10

EMBEDDED SYSTEM CONSTRAINTS An embedded system is software designed to keep in view three constraints: Available system memory Available processor speed The need to limit the power dissipation When running the system continuously in cycles of wait for events, run, stop and wakeup. 11

What makes embedded systems different? Real-time operation size cost time reliability safety energy security 12

CLASSIFICATIONS OF EMBEDDED SYSTEM 1. Small Scale Embedded System 2. Medium Scale Embedded System 3. Sophisticated Embedded System 13

SMALL SCALE EMBEDDED SYSTEM Single 8 bit or 16bit Microcontroller. Little hardware and software complexity. They May even be battery operated. Usually C is used for developing these system. The need to limit power dissipation when system is running continuously. Programming tools: Editor, Assembler and Cross Assembler 14

MEDIUM SCALE EMBEDDED SYSTEM Single or few 16 or 32 bit microcontrollers or Digital Signal Processors (DSP) or Reduced Instructions Set Computers (RISC). Both hardware and software complexity. Programming tools: RTOS, Source code Engineering Tool, Simulator, Debugger and Integrated Development Environment (IDE). 15

SOPHISTICATED EMBEDDED SYSTEM Enormous hardware and software complexity Which may need scalable processor or configurable processor and programming logic arrays. Constrained by the processing speed available in their hardware units. Programming Tools: For these systems may not be readily available at a reasonable cost or may not be available at all. A compiler or retargetable compiler might have to be developed for this. 16

PROCESSOR A Processor is the heart of the Embedded System. For an embedded system designer knowledge of microprocessor and microcontroller is a must. Two Essential Units: Control Unit (CU), Execution Unit (EU) Operations Fetch Execute 17

VARIOUS PROCESSOR 1. General Purpose processor (GPP) Microprocessor Microcontroller Embedded Processor Digital signal Processor 2. Application Specific System Processor (ASSP) 3. Multi Processor System using GPPs 18

MICROPROCESSOR A microprocessor is a single chip semi conductor device also which is a computer on chip, but not a complete computer. Its CPU contains an ALU, a program counter, a stack pointer, some working register, a clock timing circuit and interrupt circuit on a single chip. To make complete micro computer, one must add memory usually ROM and RAM, memory decoder, an oscillator and a number of serial and parallel ports. 19

Processor technology The architecture of the computation engine used to implement a system s desired functionality Processor does not have to be programmable Processor not equal to general-purpose processor Controller Datapath Controller Datapath Controller Datapath Control logic and State register IR PC Register file General ALU Control logic and State register IR PC Registers Custom ALU Control logic State register index total + Data memory Data memory Program memory Assembly code for: Data memory Program memory Assembly code for: total = 0 for i =1 to General-purpose ( software ) total = 0 for i =1 to Application-specific Single-purpose ( hardware ) 20

Processor technology Processors vary in their customization for the problem at hand total = 0 for i = 1 to N loop total += M[i] Desired functionality end loop General-purpose processor Application-specific processor Single-purpose processor 21

General-purpose processors Programmable device used in a variety of applications Also known as microprocessor Features Program memory General datapath with large register file and general ALU User benefits Low time-to-market and NRE costs High flexibility Pentium the most well-known, but there are hundreds of others Controller Control logic and State register IR PC Program memory Assembly code for: total = 0 for i =1 to Datapath Register file General ALU Data memory 22

Single-purpose processors Digital circuit designed to execute exactly one program a.k.a. coprocessor, accelerator or peripheral Features Contains only the components needed to execute a single program No program memory Benefits Fast Low power Small size Controller Control logic State register Datapath index total + Data memory 23

Application-specific processors Programmable processor optimized for a particular class of applications having common characteristics Compromise between general-purpose and single-purpose processors Features Program memory Optimized datapath Special functional units Benefits Some flexibility, good performance, size and power Controller Control logic and State register IR PC Program memory Assembly code for: total = 0 for i =1 to Datapath Registers Custom ALU Data memory 24

IC technology The manner in which a digital (gate-level) implementation is mapped onto an IC IC: Integrated circuit, or chip IC technologies differ in their customization to a design IC s consist of numerous layers (perhaps 10 or more) IC technologies differ with respect to who builds each layer and when IC package IC source gate oxide channel drain Silicon substrate 25

IC technology Three types of IC technologies Full-custom/VLSI Semi-custom ASIC (gate array and standard cell) PLD (Programmable Logic Device) 26

Full-custom/VLSI All layers are optimized for an embedded system s particular digital implementation Placing transistors Sizing transistors Routing wires Benefits Excellent performance, small size, low power Drawbacks High NRE cost (e.g., $300k), long time-tomarket 27

Semi-custom Lower layers are fully or partially built Designers are left with routing of wires and maybe placing some blocks Benefits Good performance, good size, less NRE cost than a full-custom implementation (perhaps $10k to $100k) Drawbacks Still require weeks to months to develop 28

PLD (Programmable Logic All layers already exist Device) Designers can purchase an IC Connections on the IC are either created or destroyed to implement desired functionality Field-Programmable Gate Array (FPGA) very popular Benefits Low NRE costs, almost instant IC availability Drawbacks Bigger, expensive (perhaps $30 per unit), power hungry, slower 29

MICROCONTROLLER A microcontroller is a functional computer system-on-a-chip. It contains a processor, memory, and programmable input/output peripherals. Microcontrollers include an integrated CPU, memory (a small amount of RAM, program memory, or both) and peripherals capable of input and output. 30

VARIOUS MICROCONTROLLERS INTEL 8031,8032,8051,8052,8751,8752 PIC 8-bit PIC16, PIC18, 16-bit DSPIC33 / PIC24, PIC16C7x Motorola MC68HC11 31

MICROPROCESSOR Vs MICROCONTROLLER MICROPROCESSOR The functional blocks are ALU, registers, timing & control units Bit handling instruction is less, One or two type only Rapid movements of code and data between external memory & MP It is used for designing general purpose digital computers system MICROCONTROLLER It includes functional blocks of microprocessors & in addition has timer, parallel i/o, RAM, EPROM, ADC & DAC Many type of bit handling instruction Rapid movements of code and data within MC They are used for designing application specific dedicated systems 32

EMBEDDED PROCESSOR Special microprocessors & microcontrollers often called, Embedded processors. An embedded processor is used when fast processing fast context-switching & atomic ALU operations are needed. Examples : ARM 7, INTEL i960, AMD 29050. 33

DIGITAL SIGNAL PROCESSOR DSP as a GPP is a single chip VLSI unit. It includes the computational capabilities of microprocessor and multiply & accumulate units (MAC). DSP has large number of applications such as image processing, audio, video & telecommunication processing systems. It is used when signal processing functions are to be processed fast. Examples : TMS320Cxx, SHARC, Motorola 5600xx 34

APPLICATION SPECIFIC SYSTEM PROCESSOR (ASSP) ASSP is dedicated to specific tasks and provides a faster solution. An ASSP is used as an additional processing unit for running the application in place of using embedded software. Examples : IIM7100, W3100A 35

MULTI PROCESSOR SYSTEM USING GPPs Multiple processors are used when a single processor does not meet the needs of different task. The operations of all the processors are synchronized to obtain an optimum performance. 36

Moore s Law Moore's law describes a long-term trend in the history of computing hardware. Since the invention of the integrated circuit in 1958, the number of transistors that can be placed inexpensively on an integrated circuit has increased exponentially, doubling approximately every two years. The trend was first observed by Intel co-founder Gordon E. Moore in 1965. Almost every measure of the capabilities of digital electronic devices is linked to Moore's law: processing speed, memory capacity, etc. 37

Moore s law 38

39

OTHER HARDWARE Power Source Clock Oscillator Real Time Clock (RTC) Reset Circuit, Power-up Reset and watchdog timer Reset Memory I/O Ports, I/O Buses Interrupt Handler DAC and ADC LCD and LED Display Keypad/Keyboard 40

SOFTWARE SOFTWARE C C++ Dot Net SIMULATOR Masm COMPILER RIDE KEIL 41

APPLICATIONS Household appliances: Microwave ovens, Television, DVD Players & Recorders Audio players Integrated systems in aircrafts and missiles Cellular telephones Electric and Electronic Motor controllers Engine controllers in automobiles Calculators Medical equipments Videogames Digital musical instruments, etc. 42

43

44

Automotive embedded systems Today s high-end automobile may have 100 microprocessors: 4-bit microcontroller checks seat belt; microcontrollers run dashboard devices; 16/32-bit microprocessor controls engine. Source: 45

Embedded Systems... react on the environment at the speed of the environment often real-time requirements are designed for one single task have often to be power-efficient are mass products and have to be cheap must be reliable 46

47

Thus... Microprocessors are used As key components in an embedded design Programmable Logic and ASICs are used for critical parts in a design An obective for an embedded system designer is to find the cheapest solution that meets the requirements Do not use a Pentium, when you only want to control a freezer... 48

Challenges in embedded system design How much hardware do we need? How big is the CPU? Memory? How do we meet our deadlines? Faster hardware or cleverer software? How do we minimize power? Turn off unnecessary logic? Reduce memory accesses? 49

Challenges, etc. Does it really work? Is the specification correct? Does the implementation meet the spec? How do we test for real-time characteristics? How do we test on real data? How do we work on the system? Observability, controllability? What is our development platform? 50

Learn by Doing Excel Thru Experimentation Lead by Example Acquire skills and get employed Update skills and stay employed THANK YOU 51