11 introduction to_embedded_systems [compatibility mode]

23
1 Introduction to Embedded Systems By: Walaa Mohamed Khalil

Upload: drmahmoudhassan

Post on 28-Jan-2015

119 views

Category:

Engineering


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 11 introduction to_embedded_systems [compatibility mode]

1

Introduction to Embedded Systems

By: Walaa Mohamed Khalil

Page 2: 11 introduction to_embedded_systems [compatibility mode]

2 Copyright © 2011 Embedded Systems Committee

Agenda • Embedded Systems Vs. General purpose Systems • Examples of Embedded Systems • What is a microcontroller? • Difference between Microprocessor

and Microcontroller • Trade off between HW and SW • Software characteristics • Hardware characteristics • System on chip and system on board • Advanced Embedded System • Most Microcontroller Families used in ES • Difference between Emulator and Simulator • Languages used in embedded systems programming

Page 3: 11 introduction to_embedded_systems [compatibility mode]

3 Copyright © 2011 Embedded Systems Committee

General Purpose Systems

• Embedded system is a special -purpose system designed to perform one or a few dedicated functions.

• It is usually Embedded as

a part of a complete device including hardware and mechanical parts.

• A general-purpose system can do many different tasks depending on programming. For ex.; microprocessors in PC’s.

Page 4: 11 introduction to_embedded_systems [compatibility mode]

4 Copyright © 2011 Embedded Systems Committee

Example of Embedded Systems

• Embedded systems control many of the common devices in use today o Digital watches o Traffic lights o Printers o Medical equipments o Robots o DSP processing:

� MP3 player � Digital Camera

o Communication: � Routers � Telephone switches

o Automotive: � Motor Engines � Climate Control

Page 5: 11 introduction to_embedded_systems [compatibility mode]

5 Copyright © 2011 Embedded Systems Committee

What is Microcontroller?

• A microcontroller is a single chip devices or single chip computers in a small size that its resources are far more limited than those of a desktop personal computer

• It is designed for standalone operation. • It is includes:

o Processing Unit. o RAM and ROM. o I/O. o Buses. o Peripherals (SPI, PWM,..).

Page 6: 11 introduction to_embedded_systems [compatibility mode]

6 Copyright © 2011 Embedded Systems Committee

Difference Between MC and MP

Microprocessor Is a general purpose CPU

Microcontroller Is a CPU with peripherals

Page 7: 11 introduction to_embedded_systems [compatibility mode]

7 Copyright © 2011 Embedded Systems Committee

Tradeoff between HW & SW

• For a certain application Which functional blocks should be performed in Hardware?? Which functional blocks should be performed in software??

Page 8: 11 introduction to_embedded_systems [compatibility mode]

8 Copyright © 2011 Embedded Systems Committee

Software Characteristics

• Highly configurable • Shorter development cycle • Easier in versions updates • Cheaper • Constrained with processor

speed which may satisfy real time application and may not

Page 9: 11 introduction to_embedded_systems [compatibility mode]

9 Copyright © 2011 Embedded Systems Committee

Hardware Characteristics

• Longer development cycle

• Customized for specific application

• Better performance in high speed real time application

Page 10: 11 introduction to_embedded_systems [compatibility mode]

10 Copyright © 2011 Embedded Systems Committee

System on Board

CPU

Actuator

Sensors

Customized Hardware

Shared memory

Board

A/D

Page 11: 11 introduction to_embedded_systems [compatibility mode]

11 Copyright © 2011 Embedded Systems Committee

System on Chip

• System-on-a-chip (SOC): o Integrating all components of a computer or other electronic

system into a single integrated circuit (chip). o It may contain digital, analog, mixed-signal, and often radio-

frequency functions – all on one chip. o Typical application is in the area of embedded systems.

• An application-specific integrated circuit (ASIC) is an integrated circuit (IC) customized for a particular use. For example, a chip designed solely to run a cell phone is an ASIC.

Page 12: 11 introduction to_embedded_systems [compatibility mode]

12 Copyright © 2011 Embedded Systems Committee

System on Chip

Keyboard controller

LCD controller

Customized hardware

Memories

USB interface

CPU

Page 13: 11 introduction to_embedded_systems [compatibility mode]

13 Copyright © 2011 Embedded Systems Committee

Advanced Embedded Systems

• Multi-core system on chip Like mobile handset which has one chip contains: • DSP processor • Embedded processors like ARM • Custom hardware for GSM • Custom peripherals for board interface

(keyboard, touch screen, memory card interface)

Page 14: 11 introduction to_embedded_systems [compatibility mode]

14 Copyright © 2011 Embedded Systems Committee

Advanced Embedded systems

• Network of embedded microcontrollers on board :

• Many microcontrollers on one /

many board(s) communicated together through specific bus protocol like LIN bus, CAN bus in automotive application.

Page 15: 11 introduction to_embedded_systems [compatibility mode]

15

Most Microcontroller Families used in ES

• 8051, AVR and Atmega • PIC

o Very general purpose microcontroller that can come with many different options

o Used in constructing clocks, very simple video games, robots, servo controllers.

Copyright © 2011 Embedded Systems Committee

Page 16: 11 introduction to_embedded_systems [compatibility mode]

16

Most Microcontroller Families used in ES

• HC12 o Real time and Automotive

applications • ARM

o Used in electronic devices o Mobiles, Digital cameras

DVD players, Robots and Automotive applications

Copyright © 2011 Embedded Systems Committee

Page 17: 11 introduction to_embedded_systems [compatibility mode]

17 Copyright © 2011 Embedded Systems Committee

Emulators & Simulators

• An emulator duplicates the functions of one system using a different system, so that the second system behaves like (and appears to be) the first system.

• This focus on exact reproduction of external behavior is in contrast to some other forms of computer simulation, which can concern an abstract model of the system being simulated.

Page 18: 11 introduction to_embedded_systems [compatibility mode]

18 Copyright © 2011 Embedded Systems Committee

Emulators & Simulators

• Simulation is the imitation

of some real thing, state of affairs, or process.

• The act of simulating something generally entails representing certain key characteristics or behaviors of a selected physical or abstract system.

Page 19: 11 introduction to_embedded_systems [compatibility mode]

19 Copyright © 2011 Embedded Systems Committee

Languages used in ES

• Assembly Language: o Lowest-level human-readable

method for programming. o Platform specific o No need for compilation o Used by some compilers, such

as GCC, to convert high-level languages (such as C) into platform-dependent assembly language before assembling into machine language.

Page 20: 11 introduction to_embedded_systems [compatibility mode]

20 Copyright © 2011 Embedded Systems Committee

Languages used in ES

• Assembly Disadvantages: o Platform Specific. o Operate by acting on

specific instructions. o Can perform no other

actions besides those specifically listed.

o Instructions are highly atomic: each instruction performs a single, small instruction.

o Too difficult to program large applications.

Page 21: 11 introduction to_embedded_systems [compatibility mode]

21 Copyright © 2011 Embedded Systems Committee

Languages used in ES

• C Language: o Source files 'linked' together o Ability to program in assembly

right inside the C-code o Easy to write and portable. o Knowledge of C enables

freedom.

Page 22: 11 introduction to_embedded_systems [compatibility mode]

22 Copyright © 2011 Embedded Systems Committee

Page 23: 11 introduction to_embedded_systems [compatibility mode]

23

[email protected]

[email protected]

Copyright © 2011 Embedded Systems Committee