e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Microcontrollers and Embedded Processors Module No: CS/ES/2 Quadrant 1 e-text

Similar documents
8051 MICROCONTROLLERS

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

SARDAR RAJA COLLEGES SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

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

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

ELEC 5260/6260/6266 Embedded Computing Systems

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

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

Introduction to Embedded Systems

Microprocessors And Microcontroller

CENG 336 Introduction to Embedded Systems Development. Lecture 1: An Introduction to Computers and Embedded Systems

Mohammad Jafar Navabi Medtronic Microelectronics Center, Tempe, Arizona, USA

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text

Current Activities of the ITRON Project. Current Introduction Activities to of the ITRON Project

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Microcontroller & Interfacing

CHAPTER 1: REAL TIME COMPUTER CONTROL

Components & Characteristics of an Embedded System Embedded Operating System Application Areas of Embedded d Systems. Embedded System Components

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education,

PREPAID ENERGY METER

ELEC 5260/6260/6266 Embedded Computing Systems

CENG-336 Introduction to Embedded Systems Development

José Costa What is an embedded system? Examples of embedded systems. Characteristics of embedded systems

MECE336 Microprocessors I

EECS 388 Embedded Systems Introduction. Gary J. Minden January 22, 2013

EMBEDDED SYSTEM BASICS AND APPLICATION

Automobile Design and Implementation of CAN bus Protocol- A Review S. N. Chikhale Abstract- Controller area network (CAN) most researched

1. Pin diagram of 8051 and ports

Embedded Real-Time Systems. Facts and figures. Characteristics

8051 Microcontroller memory Organization and its Applications

Computer Hardware Requirements for Real-Time Applications

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

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

Lesson 2. Introduction to Real Time Embedded Systems Part II. mywbut.com

Embedded Computation

Basic Components of Digital Computer

CSE 466 Software for Embedded Systems. CSE 466 Software for Embedded Systems

Embedded System Current Trends

EC EMBEDDED AND REAL TIME SYSTEMS

ITONLINEEXAM.COM. Chapter 1 Basic Introduction to Computers

ECE 1161/2161 Embedded Computer System Design 2. Introduction. Wei Gao. Spring

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

Introduction to Embedded Systems

Avr Microcontroller And Embedded Systems Using Assembly And C

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text

FPGA BASED SYSTEM DESIGN. Dr. Tayab Din Memon Lecture 1 & 2

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Programming Embedded Systems in C Module No: CS/ES/9 Quadrant 1 e-text

Define the term, computer, and describe the relationship between data and information

COMP3221: Microprocessors and. Embedded Systems

MICROPROCESSOR MEMORY ORGANIZATION

LSI for Car Navigation Systems/

CONSUMER ELECTRONICS Microwave Ovens

Calendar Description

1. LCD (Liquid Crystal Display)interface

Embedded Systems. Computer Organization. Wednesday 25 November 15

Lecture 6: Embedded Systems and Microcontrollers

Introduction. Definition. What is an embedded system? What are embedded systems? Challenges in embedded computing system design. Design methodologies.

Introduction to Microcontrollers

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

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

Vehicle to Vehicle Safety Device - An Ease for Safe Driving

CMPE 310: Systems Design and Programming

Unit 2. Computer Control. PIC stands for PROGRAMMABLE INTERFACE CONTROLLER. A PIC chip takes in input signals and then controls output transducers

Introduction to Embedded Systems. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

ANTI THEFT CONTROL SYSTEM OF CAR USING ARM7 Gunaganti Ganesh* 1

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Motherboard BIOS. Fig: 1 What you see (or something similar) if you turn the PC manufacturer's logo off

MN101E50 Series. 8-bit Single-chip Microcontroller

PDF created with pdffactory Pro trial version How Computer Memory Works by Jeff Tyson. Introduction to How Computer Memory Works

Overvoltage protection with PROTEK TVS diodes in automotive electronics

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Microprocessors/Microcontrollers

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text

EMBEDDED SYSTEMS INTRODUCTION

Fig 1. Block diagram of a microcomputer

Taking the Right Turn with Safe and Modular Solutions for the Automotive Industry

Rewa Engineering College, Rewa. Rewa Department OF Electrical Engineering

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Embedded Software Development Tools Module No: CS/ES/36 Quadrant 1 e-text

Introduction to Embedded Systems. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

A Reliable Gateway for In-vehicle Networks

Mrs.T.Divya Barathi AP/ECE. Integrated Circuits Digital Logic Circuits Stack & Queue Concepts

ELCT 912: Advanced Embedded Systems

Embedded System Design

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot

Embedded System Design

Sri Vidya College of Engineering and Technology. EC6703 Embedded and Real Time Systems Unit IV Page 1.

Environmental Data Acquisition Using (ENC28J60)

Microprocessors, Lecture 1: Introduction to Microprocessors

Design of Bicycle mileage Speed Meter

Parts of the Computer System. Parts of the Computer System. Parts of the Computer System. Essential Computer Hardware. Information Processing Cycle

PIC Microcontroller and

Embedded Systems. Read pages

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

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

3 PHASE FAULT ANALYSIS WITH AUTO RESET FOR TEMPORARY FAULT AND TRIP FOR PREMANENT

Transcription:

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Microcontrollers and Embedded Processors Module No: CS/ES/2 Quadrant 1 e-text In this module, microcontrollers and embedded processors will be discussed in detail. To start with, the definitions of embedded systems, the architecture of embedded systems and advantages of embedded systems will be discussed. The difference between microprocessors and microcontrollers will be discussed. Examples of embedded systems will also be listed. 1.1 Embedded System An Embedded system is defined as A system that has software embedded into the computerhardware, which makes a system dedicated for an application(s) or specific part of an application or product or part of a larger system ; (or as ) A system that has a dedicated purpose software embedded in a computer hardware; that is, it is designed for a unique purpose. Or as, A dedicated computer based system for an application(s) or product. It may be an independent system or a part of a large system. Its software usually embeds into a ROM (Read Only Memory) or flash. Embedded systems are electronic systems that contain a microprocessor or a microcontroller, but we do not think of them as computers the computer is hidden or embedded in the system. In short, the system consists of both software and hardware. It is often a special purpose unit, (e.g.) a simple cell phone (it does not run MS-Word). We are not talking about smartphones! A simple cell phone is used only for a specific purpose, that is, communication. It has a CPU, memory and programs that control mainly physical things. All the programs are pre-installed. When we are buying a simple cell phone, all the programs are already installed and we cannot change any settings. Normally a CPU is an independent unit, with program memory, and peripherals, residing outside the main CPU; whereas now, processors are used to control systems intelligently with inherent input-output devices, memory and interrupts, all built in. Figure 1.1 Embedded System In an embedded system, the program is pre-installed and cannot be changed easily. It has many advantages, like, limited processing power, limited electrical power and limited data storage. That is, memory requirement is not high, since all the programs are pre-installed. It has intelligence. It can be configured, personalized and programmed for a specific purpose. For example, consider a remote-control for car or a TV remote, which is designed for a specific purpose that purpose should be understandable by the system and that function should be configured.

1.1.2 Components of Embedded system An embedded system embeds hardware to give computer like functionalities. It consists of a CPU which is designed for a special purpose. For embedding the code into the processor, memory is needed, which is the program memory and also the permanent memory. There will be Input and Output devices which are connected to the CPU (Fig 1.1). There will be sensors for measuring the physical values and actuators for controlling the physical things. Additional components can also be attached to the system according to the requirements. It embeds the main application software generally into a flash or a ROM and the application software performs a number of tasks concurrently. The most important aspect is monitoring the system. For that purpose, a Real time Operating system is used which is different from the operating system used in general purpose computers. Real time operating system(rtos) is embedded, for supervising the application-related tasks running on the hardware and organizing the accesses to system resources according to the priorities and the timing constraints of the tasks in the system. The main difference between the Real time Operating System and a general-purpose OS is that RTOS schedules the task with priorities and these priorities may be static or dynamic. Both dynamic and static priorities are handled by the RTOS while an application is running on the system. 1.2 Comparison of Microprocessors & Microcontrollers A Microprocessor is a general purpose microcomputer which does not have RAM, ROM and I/O ports (Fig 1.2). ROM, RAM, I/O ports and Timers are added externally to a general purpose microprocessor, such as Pentium, to make it functional. This whole system is called as a computer. In contrast, a microcontroller has CPU (microprocessor), RAM, ROM, I/O ports, Timer, ADC and other peripherals (Fig 1.3). All the components are available in a single chip, so that for designing a simple application like a toy, a remote control, or automatic door opener etc, this Microcontroller alone is sufficient. Figure 1.2 Microprocessor These additions make the system bulkier and more expensive. But

microprocessor has advantages of versatility and multi-functional. Figure 1.3 Microcontroller A microcontroller has ROM, RAM, I/O ports, Timers and serial communication port on a single chip in addition to CPU. So there is no requirement for additional inclusions while developing an application. Serial communication port is used for communication purpose. I/O port is used to read and write onto the system. It is cheap, consumes very less power and the capability is very high. 1.3 Real time operating system (RTOS) An embedded system has a Real time operating system (RTOS). It enables execution of concurrent processes or threads or tasks. RTOS also handles multiple threads. RTOS provides a mechanism to let the processor run each process as per schedule and to do context-switch between the various processes (threads or tasks). It sets the rules during execution of application processes to enable finishing of a process within the assigned time interval and with assigned priority. 1.4 Need for Embedded Processors One of the most critical needs of the Embedded system is to decrease power consumption, space and cost. This can be achieved by integrating more functions into the CPU chip. Nowadays the entire computer can be built up on a single chip to reduce power consumption. 1.5 Applications Some of the real world examples of embedded systems are listed below: Telephones, security systems, garage door openers, answering machines, TVs, cable TV tuner, VCR, camcorder, remote controls, video games, cellular phones, musical instruments, sewing machines, lighting control, paging camera, toys, exercise equipment are some appliances. In office telephones, security systems, fax machines, microwave, copier, laser

printer, color printer, paging are some examples of embedded systems. In Automobile industry also these kind of systems are used. Some of them are Engine control, air bag, ABS, instrumentation, security system, transmission control, entertainment, climate control, cellular phone, keyless entry etc. Though many embedded systems are available, mobile phone is a widely used product. As everybody knows about this product, in this section, Antilock breaking system (ABS) in automobile industry will be discussed in detail. 1.5.1 Antilock Braking System ABS is one of the most popular systems in automotive electronics. ABS is a mechanism to prevent skidding due to locking up of the wheels. Consider a situation in which a vehicle is moving at a high speed and is suddenly confronted by an obstacle in its path. In a moment of panic, the driver applies full brakes, the wheels are locked and hence they start skidding on the road. As a result of this, the vehicle does not change direction but skids in the direction of obstacle. If the wheels had not got locked up, the vehicle would have changed direction and this collision could have been prevented. This is the basic concept behind ABS. Figure 1.4 ABS An ABS (Fig 1.4) consists of an ECU, wheel sensors and Hydraulic brakes. The wheel sensors inform the ECU about the speed of the wheels. The speed of the wheels relative to each other is important and hence their differences are analyzed. Whenever a wheel is moving significantly slower or faster than the other wheels, the ABS applies hydraulic brakes appropriately. If one wheel is moving faster than the other wheels, the ABS increases the brakes applied on the wheel and if one wheel is moving slower than the other wheels, the ABS decreases the brakes applied on the wheel. After a few accelerations and decelerations, all the wheels will be having similar speeds. The latest ABS mechanism makes use of brake pulsing in which the wheels are subject to a sequence of quick alternate accelerations and decelerations.

The main advantage of ABS is that it prevents wheel lockup and hence, gives the driver steering control, even after application of the full brake. This reduces the risk of accidents. ABS also has the added advantage of lesser braking distance when compared to vehicles without ABS. Braking distance is the distance a vehicle travels after application of brakes before coming to a stop. This also depends on road conditions. On snow-covered roads, vehicles without ABS have lesser braking distance than the ones with ABS. However, ABS still gives the driver better control over the car on such roads. 2. Summary In this lecture we have outlined the definitions of embedded systems. The architecture of embedded system is discussed. Differences between microprocessors and microcontrollers are discussed and embedded system examples are listed. ABS is discussed as a real world embedded system example. 3. References 1. The 8051 Microcontroller and Embedded Systems Using Assembly and C Second Edition Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin D.McKinlay Pearson Education, Second Edition 2008 2. Embedded systems An integrated approach by LYLA.B.DAS, Pearson first edition 2013 (for Anti Lock Braking System)