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

Similar documents
Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Microprocessors/Microcontrollers

Computer Hardware Requirements for Real-Time Applications

EMBEDDED SYSTEM BASICS AND APPLICATION

Microcomputer Architecture and Programming

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

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

Fig 1. Block diagram of a microcomputer

Basic Components of Digital Computer

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

MICROCONTROLLERS 8051

AVR Microcontrollers Architecture

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

Introduction to Microcontrollers

Chapter 2 Sections 1 8 Dr. Iyad Jafar

ME 515 Mechatronics. A microprocessor

DE5 Thursday, September 09, 2010

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

EC EMBEDDED AND REAL TIME SYSTEMS

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

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

Microcontrollers. Microcontroller

Lecture 1: Introduction to Microprocessors

Lecture 1. Course Overview and The 8051 Architecture

CN310 Microprocessor Systems Design

8051 Microcontrollers

ELC4438: Embedded System Design Embedded Processor

Basics of Microprocessor

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of 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 general architectures of 8 and 16 bit micro-processor and micro-controllers

Computer Architecture 2/26/01 Lecture #

Embedded Computing Platform. Architecture and Instruction Set

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

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

MICROPROCESSOR BASED SYSTEM DESIGN

PIC Microcontroller and

ARM ARCHITECTURE. Contents at a glance:

Module 2: Introduction to AVR ATmega 32 Architecture

Somes French translations :

COMPLEX EMBEDDED SYSTEMS

3.1 Description of Microprocessor. 3.2 History of Microprocessor

Course Introduction. Purpose: Objectives: Content: 27 pages 4 questions. Learning Time: 20 minutes

GUJARAT TECHNOLOGICAL UNIVERSITY

1 Introduction to Microcontrollers

Midrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017

MECE336 Microprocessors I

DERTS Design Requirements (1): Microcontroller Architecture & Programming

Microcontroller basics

Embedded Systems: Hardware Components (part I) Todor Stefanov

CISC RISC. Compiler. Compiler. Processor. Processor

1 Microprocessors 2 Microcontrollers 3 Actuation sensing, process control

Choosing a Micro for an Embedded System Application

Computer and Hardware Architecture I. Benny Thörnberg Associate Professor in Electronics

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CS-424/580A Microcontrollers and Robotics

EE4380 Microprocessor Design Project

ENE 334 Microprocessors

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

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

Introduction to 8051 microcontrollers

Micro computer Organization

Lecture (02) PIC16F84 (I)

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

ELCT 912: Advanced Embedded Systems

Four Categories Of 8085 Instructions That >>>CLICK HERE<<<

Computer Systems Organization

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

Microprocessors and Microcontrollers. Assignment 1:

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

SARDAR RAJA COLLEGES SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

Embedded Systems. Computer Organization. Wednesday 25 November 15

MICROPROCESSOR B.Tech. th ECE

EE 308: Microcontrollers

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Summer 2003 Lecture 1 06/09/03

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

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

8051 Microcontroller

Overview of Microcontroller and Embedded Systems

Computer Architecture Dr. Charles Kim Howard University

Introducing Microcontrollers System Design

Advanced Microcontrollers Grzegorz Budzyń Lecture. 1: Introduction

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

EE 3170 Microcontroller Applications

INTERRUPTS in microprocessor systems

8051 microcontrollers

Question Bank Microprocessor and Microcontroller

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET


Microprocessors And Microcontroller

Unit wise Question Bank UNIT-II

V8-uRISC 8-bit RISC Microprocessor AllianceCORE Facts Core Specifics VAutomation, Inc. Supported Devices/Resources Remaining I/O CLBs

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

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

Transcription:

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

Definition of an E.S. It is a system whose principal function is not computational, but which is controlled by a computer embedded within it. The word embedded implies that: - It lies inside the overall system, hidden from view forming an integral part of a greater whole. - The user may be unaware of the computer existence. - The computer is usually purpose designed, on at least customized, for the single function of controlling its system. According to this definition: a P.C. is not an embedded system!!

E.S.s are found across industry and commerce, in machine control, factory automation, robotics, most modern domestic applications such as washing machines, dishwashers, ovens, central heating. The list has almost no end and it continues to grow.

Features Of The E.S.s 1. The embedded computer is made up of H/W & S/W. The design attention has shifted to some extent towards s/w development. 2. The computer must be able to respond to I/ps as they happen and make response within the time frame set by the controlled system. 3. System interconnection: possibility of interaction with other systems as shown in the figure. with the advent of the internet, a generation of internetcompatible ES is emerging. 4. Reliability: E.S. designer must develop a good grasp of reliability issues, and how a reliable system can be achieved. This implies good design procedure in both H/W & S/W, coupled with systematic testing and commissioning.

5. The Market-Place: the market is very competitive. The challenge is increased greatly by very rapid advances of technology. This lays the stress on excellent design and development strategy. An E.S. is a microcontroller-based, s/w driven, reliable, real-time control system, automation, or human, or network interactive, operating on diverse physical variable and in diverse environments, and sold into a competitive and cost-conscious market.

The Microprocessor

A μp is a simple computer on a single chip. It follows a sequence of instructions known a program. A simple μp-based system has: 1. the μp. 2. A section of memory to store the program, (ROM) 3. Another section to store temporary data, (RAM) 4. Some I/O ports to contact with the outside world. 5. Buses to interconnect these elements.

A. Von Neumann Structure B. Harvard Structure Address Prog. Memory Prog. Memory Address Bus Data Bus CPU Data CPU Address Bus Data Bus Data Memory & Peripherals Data Memory & Peripherals

The Microcontroller It is a particular type of µp, used in E.S. environment, optimized to perform control Functions, for the lowest cost and at the smallest size possible. Microcontroller Characteristics: 1. Direct interface to significant number of sensors & actuators. 2. High level of integration, with many peripheral devices included on-chip. 3. Physically small 4. Simple program & data storage requirements. 5. Ability to operate in the real-time environment. 6. An instruction set optimized for the embedded environment; 7. ( compact code, limited arithmetic, addressing capability, strong in bit manipulation). 8. Ability to work ( operate ) in high & low temp. or high electromagnetic radiation. 9. Low power capability.

Features Of General-Purpose µc Every µc is different & each has its own unique combination of core and peripherals. The core is the element that remains constant for the whole family built around it. Interconnection to the outside world is through a number of parallel and serial ports. A counter/timer is available for event counting, or to measure or generate timing intervals. There are a huge number of different µc.s now on the markets.

Examples: 1- The PIC 16F84: This device is very small and low cost, and used for some of the simplest E.S.s 2- The 80C552: It is complex device and costly, rich in peripheral and with extensive memory addressing capability Program Memory Data Memory Core Parallel Port Counter Timer Serial Port Microcontroller Diagram Parallel Port Parallel Port Serial Port 3- The 68HC05 & 68HC08: These devices lie in complexity between PIC & 80C552 µc.s.

The PIC Microcontroller PICs are now one of the fastest moving families in the 8-bit area. WHY?? They run very fast. The family is growing at a tremendous rate. Microchip Inc. has a special interest in making this controller size as attractive as possible. They are simpler, cheaper and smaller than most devices. PICs have made themselves particularly attractive to the student & low-budget developer. Development tools (h/w & s/w) are cheap & available. Microchip offers five closely related families of µc.s. ((SEE TABLE 1.2)).

16F84 Microcontroller: Its 13-bit address, can address 8 K words. Its 13- bit instruction word. Actual program memory: 1 K words. RAM: 68 Locations of 8-bit ( file registers ) Data bus: 8-bit. It has 2 parallel ports (port A: 5-bit & port B: 8-bit) It has ONE 8-bit counter/timer (TMRØ)

SUMMARY The E.S. is a sophisticated system consisting of several H/W & S/W components. The E.S. processor can be: - A general-purpose processor chosen from number of processors, microcontrollers, embedded processors & DSPs. - An application specific instruction processor (ASIP) designed for specific application on ULSI chip. - A multiprocessor unit can be used for a sophisticated embedded system.

E.S. embeds (locates) a s/w image in the ROM. The image consists of the following: - Boot up Program. - Initialization data. - Strings for an initial screen display. - Programs for the multiple tasks that the system performs. - RTOS kernel. A µp is used when large embedded s/w is to be located in the external memory chips. A µc is used when a small part of the Embedded s/w has to be located in internal memory & when the on-chip functional units, like interrupt-handler, port, timer, ADC & PWM are needed. An embedded processor is used when fast processing, fast context switching & atomic ALU ops are all needed. A DSP is used when signal-processing functions need to be processed fast. Multiple processors are used when a single processor does not meet

Classification Of E.S.s E.S.s can be classified into 3 types: 1. Small scale E.S.s: these systems are designed with a single 8-bit, or 16-bit microcontroller. - They have little h/w & s/w complexities and involve board-level design. - They may even be battery operated. - An editor & assembler specific to the µc are used. - C language is used for developing these systems. - Commonly used microcontrollers: PIC 16F8X, 8051, 6805.

2. Medium scale E.S.s: These systems are designed with a single or few 16-bit or 32-bit microcontroller or DSPs or RISCs. - They have both h/w& s/w complexities. - Programming tools: RTOS, source code eng. Tool, simulator, debugger & Integrated Development Environment (IDE). - Commonly used microcontrollers: 80X86, 68HC11XX. 3. Sophisticated E.S.s: These systems have enormous h/w & s/w complexities and may need scalable processors or configurable processors & PLAs. - They are used for applications that need h/w & s/w co-design & integration in the final system. - Development tools may not be available at a reasonable cist or may not be available at all. In some cases, a compiler might have to be developed for these systems. - Commonly used microcontrollers: Intel80960, ARM7, MPC604.

Microcontroller Architecture Architecture internal hardware arrangement. As shown in the block diagram, it has two parts: - The Program Execution section. - Register processing section. The PIC architecture Harvard Architecture, where the program and data are accessed separately. This arrangement increases overall program execution speed. The Program Execution Section contains: Program Memory, IR, Control Logic. This section store, decode & execute the program. The Register Processing section has: special registers used to set up the processor operations, Data registers to store the current data, Port registers for I/O, and the ALU to process the data. The timing & control block co-ordinate the operation of the two parts as determined by the program instructions and respond to external control inputs.

Program Memory: µc.s are designed for prototyping and system implementation. The control program is normally stored in non-volatile ROM. Recently, µc.s have flash ROM are more suitable for learning programming & prototyping. Program Counter (PC): - The PC is a register which keeps track of the program sequence by storing the address of the instruction currently being used. - The Pc is automatically loaded with ZERO when the chip is powered up or reset, since the default start address of the program is usually ZERO. - In the PIC 16XXXX chips the PC is file register 2. - PIC 16XXXX devices use address 004 to store interrupt vector if interrupts are to be used. In this case, the main program should not located at address ZERO, instead a JUMP to a higher address should be placed there.

The Stack: It is a temporary PC store. When a subroutine is executed, a stack register temporarily stores the current address, so that it can be recovered at a later point in the program. It is called a Stack, because the addresses are stored to the PC in the reverse order to which they were stored, i.e. LIFO. IR & Decoder: The IR holds the instruction code from program memory. The instruction is decoded by the instruction decoder, which is a CL cct sets up the processor control lines as required.

Timing & Control: - this sequential logic cct provides overall control of the PIC. - A crystal oscillator provides an accurate, fixed frequency clock signal to drive the program sequence. ((NOTE: PIC 16XXXX chips can operate at any frequency up to 20MHZ)). - The RESET i/p can restart the program at any time by clearing the PC to ZERO. - Interrupts: are signals generated externally or internally, which force a change in the sequence of operations. NOTE: If an interrupt source is active in the PIC 16XXXX, the program will start at address 004H, where the sequence Interrupt Service Routine (ISR) or a jump instruction must be stored.

Working Register: - It holds the data that the µc. Is working on at the current time. It is similar to the ACC in µps. - The working register is the only register that is not located in the main register block and is accessed by name w not by number. ALU: - It is a CLC which takes one or two input binary words and combines them to produce an arithmetic or logical results. Port Registers: Port Registers: - Input & output in a µc. Are achieved by simply reading or writing a port data register. - If a port register is initialized for o/p, the data moved to that register is immediately available at the pins of the chip. - in the PIC 16F84A, there are two ports (A&B): * Port A: has 5 Pins it is mapped (addressed) as SFR5. * Port B: has 8 pins it is addressed as SFR6.

Special Function Registers (SFRs): - These registers provide dedicated program control registers and processor status bits. - In the PIC, the PC, Port registers, and spare registers are SFRs, and are mapped as part of this block.