0% found this document useful (0 votes)
87 views20 pages

L01-Intro To Embedded Systems

The document provides an introduction to embedded systems. It begins by defining the aims of the module and then discusses the basic functions of a computer. It defines embedded systems and provides examples. It also compares general purpose computing to embedded systems. The document outlines the major components of an embedded system and discusses considerations for designing an embedded system, including selecting the right microprocessor.

Uploaded by

tan lee hui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views20 pages

L01-Intro To Embedded Systems

The document provides an introduction to embedded systems. It begins by defining the aims of the module and then discusses the basic functions of a computer. It defines embedded systems and provides examples. It also compares general purpose computing to embedded systems. The document outlines the major components of an embedded system and discusses considerations for designing an embedded system, including selecting the right microprocessor.

Uploaded by

tan lee hui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Module 1

Introduction to
Plastic
Chip case

Embedded Systems
Pins

Dr. Hau Yuan Wen (Jasmine)


Faculty of Biosciences and Medical Engineering

www.utm.my innovative ● entrepreneurial ● global 1


Introduction to Embedded Systems
 Aims
– At the end of this module, students should be able to:
 Basic Function of a Computer
 Definition of Embedded System and example applications
 Major components in embedded system
 General Purpose computing vs. Embedded System
 Technology options to develop an embedded system
 Design considerations
 Design Process

www.utm.my innovative ● entrepreneurial ● global 22


What is Computer ?

Computer Data Processing

Data Storage

www.utm.my innovative ● entrepreneurial ● global 33


Basic Functions of Computer

● Data Processing
● Data Storage
● Data Movement
● Control

www.utm.my innovative ● entrepreneurial ● global 44


Microprocessor-Based Systems
Whenever the word microprocessor is mentioned, it conjures up a picture of a
desktop or laptop PC

- popular application for microprocessors,


- it is not the only one
- there are millions more application

www.utm.my innovative ● entrepreneurial ● global


5/Module 15
Microprocessor-Based Systems

www.utm.my innovative ● entrepreneurial ● global 66


Computer Classifications
● Classification of computers:
– Servers:
• Big, expensive, available 24x7 (read “24 by 7” or 24 hours a day, 7
days a week. Mainframes are old servers made by IBM.
– Desktops:
• computers on your desk
– Laptops:
• computers you carry in your bag
– PDA (personal digital assistants):
• computers you carry in your pocket
– Embedded systems:
• computers that don’t look like computers!
● An embedded system is a type of computer
www.utm.my innovative ● entrepreneurial ● global 77
What is an Embedded System?
An embedded system is a microprocessor-based system that is built to
control a function or range of functions and is not designed to be
programmed by the end user in the same way that a PC is.

An embedded system is a special-purpose computer system designed


to perform certain dedicated functions. It is usually embedded as
part of a complete device including hardware and mechanical parts

www.utm.my innovative ● entrepreneurial ● global 88


Embedded System: Example

www.utm.my innovative ● entrepreneurial ● global 99


Other Processors in Embedded Systems
● Embedded Controllers:
– More powerful (32 bits) than microcontrollers (8 bits)
– Normally contains only processor and input/output, memory is
external

● Digital Signal Processors:


– Embedded processors optimized for digital signal processing
– Commonly found in hand-phones, modems, communications systems

● Graphics Processors:
– Very powerful processors found in graphics cards of workstations

● Programmable Logic Controllers:


– Microprocessor boards usually found in industrial applications

www.utm.my innovative ● entrepreneurial ● global 10


10
General Purpose Computing vs Embedded Systems

General Purpose Embedded


Intended to run a fully general set Runs a few applications often
of applications known at design time
End-user programmable Not end-user programmable
Faster is always better Operates in fixed run-time
constraints, additional performance
may not be useful/valuable
Differentiating features: Differentiating features:
• Speed (need not be fully • Power
predictable) • Cost (eg RM2 vs RM2.50)
• Software compatibility • Size
• Cost (eg RM3k vs RM5k per • Speed (must be predictable)
laptop)

www.utm.my innovative ● entrepreneurial ● global 11


11
We have look through the comparison of
General Purpose Computing vs Embedded System

Whats next?

www.utm.my innovative ● entrepreneurial ● global 12


12
To design a µP System, we must know…
● Fundamentals:
– What’s inside a computer
– What’s inside a processor
● Programming:
– What happens in the processor when it’s running a program
– What do we need to write a program
– How to create a program
– How to run a program
– How to fix a program error
● Hardware design:
– Timing diagrams
– Interfacing with other chips

www.utm.my innovative ● entrepreneurial ● global 13


13
A Computer System – Simplified View

www.utm.my innovative ● entrepreneurial ● global 14


14
A Computer System – Simplified View

Stores and retrieves data Moves data between the computer


and its external environment

CPU Memory Input/Output

Controls the operation of the computer


Performs its data processing functions

Address bus Provides communication


among CPU, main memory and I/O
Data bus

Control bus

An embedded system also has the same


structure but at a smaller size
www.utm.my innovative ● entrepreneurial ● global 15
15
Software
● Computer software
– Computer programs are known as software

● Program:
– Sequence of instructions that perform a task

● Instruction:
– The simplest operation performed by the processor
– Think of it as a note coming from a musical instrument

● How the computer works:


– Fetch an instruction from memory
– Decode the instruction
– Execute the instruction
– Repeat

www.utm.my innovative ● entrepreneurial ● global 16


16
Machine & Assembly Language
● Machine instruction
– A sequence of binary digits which can be executed by the processor, e.g. 0001 1011.
– Hard to understand for human being
● Assembly language
– An assembly program consists of assembly instructions
– An assembly instruction is a mnemonic representation of a machine instruction e.g.
MUL may stand for “multiply”
– Assembly programs must be translated into object code before it can be executed --
translated by an assembler.
– Assemblers can be of two types: cross assembler and native assembler.
– Cross assembler runs on one computer and generates machine instructions that will
be executed by another computer that has different instruction set, e.g. freeware
ASM68K.
– Native assembler runs and generates instructions for the same computer.
– Drawbacks of assembly programs are:
• dependent on hardware organization, difficult to understand long programs, low
programmer productivity

www.utm.my innovative ● entrepreneurial ● global 17


17
High-level language (HLL)
● High-Level Language
– Syntax of a high-level language is similar to English

– A translator is required to translate the program written in a high-level


language into object code -- done by a compiler.

– There are cross compilers that run on one computer but translate
programs into machine instructions to be executed on a computer
with a different instruction set.

– Main drawback is slower execution speed of the machine code


obtained after compiling an HLL program.

– However, C language has been extensively used in microcontroller


programming in industry.

www.utm.my innovative ● entrepreneurial ● global 18


18
Selecting a Microprocessor
● Choose the right one for your application
– Primary criteria: Cost, Power, Size, Speed
– Others: package options, integrated peripherals, potential for future growth

● Choose one with good software development support


– development environment - good compiler and debugger availability
– evaluation boards
– in-circuit emulators for those with deep pockets
– Operating system availability

● Other considerations
– Code density: affects power consumption, performance and system cost
– Hardware availability: make sure you can actually purchase the microcontroller
before designing it in
– Prior expertise, licensing, etc

www.utm.my innovative ● entrepreneurial ● global 19


19
Summary

 Basic Function of a Computer


 Definition of Embedded System and example
applications
 Major components in embedded system
 General Purpose computing vs. Embedded System

www.utm.my innovative ● entrepreneurial ● global 20


20

You might also like