EE Embedded Systems Fall 2015

Slides:



Advertisements
Similar presentations
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
Advertisements

Microcontroller – 3 PIC.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Engr. M.K.Debnath1 Microcontroller and PLC Eng. ISRAFIL KHAN. DIPLOMA IN ELECTRONIC.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
The 8051 Microcontroller Architecture
Microcontroller based system design
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Microcontroller: Introduction
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Atmega32 Architectural Overview
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Computer Organization & Assembly Language © by DR. M. Amer.
Introduction to Microprocessors
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
MICROOCESSORS AND MICROCONTROLLER:
Computer operation is of how the different parts of a computer system work together to perform a task.
Lecture 7: Overview Microprocessors / microcontrollers.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Know Difference Between Microprocessors and Microcontrollers.
“Atmega32 Architectural Overview” SIGMA INSTITUTE OF ENGINEERING Prepared By: SR.NO NAME OF STUDENT ENROLLMENT 1 Parihar Shipra A Guided By:-
Introduction to Computers - Hardware
Chapter 2 content Basic organization of computer What is motherboard
Introduction to Microcontroller Technology
Computer Architecture and Number Systems
Computer Organization and Architecture Lecture 1 : Introduction
Unit Microprocessor.
COURSE OUTCOMES OF Microprocessor and programming
The HCS12 Microcontroller Minnesota State University, Mankato
Microprocessor and Microcontroller Fundamentals
Atmega32 Architectural Overview
Chapter 2.
Overview of Computers and Programming Chapter 1
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
UNIT – Microcontroller.
Chapter 7.2 Computer Architecture
MCU – Microcontroller Unit – 2
Introduction of microprocessor
Introducing Embedded Systems and the Microcontrollers
INTRODUCTION TO MICROPROCESSORS
Basic Computer Organization
Chapter 1: The 8051 Microcontrollers
Introduction to Microprocessors and Microcontrollers
Tiny Computers, Hidden Control
EE Embedded Systems Fall 2015
Microprocessor & Assembly Language
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Today’s agenda Hardware architecture and runtime system
Chapter 5: Computer Systems Organization
Introduction to Microprocessor Programming
Introduction to Computer Architecture
Chapter 5 Computer Organization
Microcontroller – 2 PIC.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Presentation transcript:

EE 22442 - Embedded Systems Fall 2015 Chapter One Tiny computers, hidden control EE 22442 - Embedded Systems Fall 2015 Belal H. Sababha, Ph.D. Assistant Professor of Electrical & Computer Engineering Computer Engineering Department King Abdullah II Faculty of Engineering Princess Sumaya University for Technology Amman, 11941, Jordan Phone: +962-6-535-9949 ext. 466 Email: b.sababha@psut.edu.jo Web: http://www.psut.edu.jo/sites/bsababha

What is an embedded system? A system whose principal function is not computational, but which is controlled by a computer embedded within it. Tire Pressure Sender

Embedded Systems An embedded system is a computer designed to perform a dedicated function. An embedded system performs one or a few predefined tasks, with very specific requirements. Embedded systems are often mass-produced and benefitting from economic scale. Software written for embedded systems is often called firmware.

Number System Issue Computer hardware uses binary numbers to perform all operations. To display numbers produced by the computer, both the octal and hexadecimal numbers have been used to shorten the representation. Human beings are used to decimal number system. Conversion is often needed to convert numbers between the internal (binary) and external (decimal) representations. It is common for mixed use of different number bases. A prefix is used to indicate the base of a number. Modulus Math Computers perform modulus math because it uses a limited number of bits (e.g., 8, 16, or 32 bits) to represent numbers.

Some computer essentials What is a computer? Software Hardware

Software Computer programs are known as software A program is a sequence of instructions Machine instruction : A sequence of binary digits which can be executed by the processor Hard to understand, enter, debug, and maintain for human being

Assembly language Defined by assembly instructions An assembly instruction is a mnemonic representation of a machine instruction Assembly programs must be translated into machine instructions before it can be executed -- translated by an assembler Programmers need to work on the program logic at a very low level and cannot achieve high productivity. Instruction sets the Complex Instruction Set Computer the Reduced Instruction Set Computer

High-level language Syntax of a high-level language is similar to English A translator (called compiler) is required to translate the program written in a high-level language: There are two types of compilers: native compiler and cross compiler. A cross compiler executes in one environment and generates code for another. A "native compiler" generates code for its own execution environment A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is run. Cross compiler tools are used to generate executables for embedded system or multiple platforms. It is used to compile for a platform upon which it is not feasible to do the compiling, like microcontrollers that don't support an operating system. 2. High-level languages allow the user to work on the program logic at higher level and achieve higher productivity. Source code A program written in assembly or high-level language Object code The output of an assembler or compiler

Elements of a computer

The Processor A processor consists of arithmetic logic unit (ALU), control unit, and registers. The ALU can perform many different operations. An ALU that can perform 4 operations is shown in the following Figure:

Control Unit The control unit decodes machine codes and performs the operations specified by the machine code. A machine instruction has several fields. A mandated field is the opcode field. Instruction execution is timed by a clock signal. The frequency of the clock signal used in an 8-bit or 16-bit microcontroller is from a few mega hertz to several hundred mega Hertz The control unit uses a program counter to keep track of the address of the instruction to be executed next. The fetched instruction is placed in the instruction register when is decoded, and executed. Program instructions are normally stored in sequential locations in memory. The processor may not execute instructions in sequential due to the need to execute instructions based on the condition or the need to repeat a certain group of instructions. The processor uses conditional and unconditional branch (or jump) instructions to change the program flow.

Registers A register is a storage location inside the CPU. A register is used to hold data or address during the execution of an instruction. A register, very close to the ALU, provides fast access to operands for program execution. Some processors provide a dedicated register (often called an accumulator) as one of the operands of most of the instructions. Freescale HCS12, Microchip PIC18, Intel 8051 microcontrollers use this approach. Other processors provide many general-purpose registers in the CPU that can be used as operands of instructions. Atmel AVR and AVR32, Microchip PIC24 and PIC32, Freescale Coldfire use this approach.

Microprocessor A processor implemented in a single integrated circuit (IC). The first microprocessor, Intel 4004, was introduced in 1968. The Intel 8008, the first 8-bit microprocessor from Intel, was introduced in 1972. A microprocessor requires peripheral ICs to interface with I/O devices. A microprocessor does not have peripheral functions such as timers, A/D converters, D/A converters, parallel I/O ports, and memory. The designer need to add peripheral ICs and memory devices to the microprocessor in order to build a product. + High Performance + Choice of Peripherals and Memory Configurations - Expensive - Power Consumption (Heat) - Size

Microcontroller Vs. Microprocessor A microcontroller incorporates the processor and one or more of the following peripheral functions and memory in one very large scale integrated circuit (VLSI): Memory Timer functions Serial communication interface such as UART, I2C, SPI, CAN, and Ethernet A/D converter D/A converter Direct memory access Parallel I/O ports Memory component interface Software debug support Microcontroller

Dimming a Light using a microprocessor

Dimming a light using a microcontroller

Memory Technologies & Types Magnetic Memory Magnetic drums, magnetic tapes, and magnetic disks are the three major magnetic memory devices that have been invented. Only magnetic disks are still being widely used today Hard disks are rarely used in an embedded system Optical Memory Compact disk (CD) and digital video disc (DVD) are two major optical memory devices. CD was introduced in 1982. CD has two versions: CD-R and CD-RW. The capacity of a 12-inch CD is 700 MB. A 12-inch DVD has the capacity of 4.7 GB DVD has two versions: DVD-R and DVD-RW versions. Semiconductor Memory Semiconductor memory can be classified on the basis of volatility and read-writability. On the basis of volatility, semiconductor memory is divided into volatile and non-volatile memory. On the basis of read-writability, semiconductor memory is divided into random-access memory (RAM) and read-only memory (ROM). RAM: DRAM, SRAM, MRAM, FRAM, ROM: MROM, PROM, EPROM, EEPROM, Flash Memory

Organizing memory

Inside Microcontrollers

Microcontroller families

Microcontroller packaging and appearance

Microchip and the PIC microcontroller Background : General Instruments, Peripheral Interface Controller ,PIC 1650 and 1655 late 1970s, RISC, 30 instructions, Microchip, 8-bit PIC 8-bit microcontrollers today Characteristics that all have in common. Lowcost, Self-contained, Pipelined, RISC, Harvard structure, Single accumulator (the Working, or W, register), Fixed reset vector.

Comparison of 8-bit PIC families 10, 12, 16, 18 : series C: CMOS F: Flash A: Technology Upgrade

An introduction to PIC microcontrollers using the Baseline Series

The architecture of the 12F508