Beruflich Dokumente
Kultur Dokumente
SYSTEMS
General-purpose
Microprocessor
CPU for Computers
No RAM, ROM, I/O on CPU chip itself
Example--Intels x86: 8086,8088,80386,80486,
Pentium
CPU
GeneralPurpose
Microprocessor
Data Bus
RAM
ROM
I/O
Port
Timer
Address Bus
General-Purpose Microprocessor System
Serial
COM
Port
Microcontroller
A smaller computer.
On-chip RAM, ROM, I/O ports...
Example:- Motorolas 6811, Intels 8051 and PIC
16X
CPU
RAM
ROM
A single chip
Serial
I/O Timer COM
Port
Port
Microcontroller
Microprocessor v/s
Microcontroller
Microprocessor
CPU is stand-alone, RAM, ROM,
I/O, timer are separate
designer can decide on the
amount of ROM, RAM and I/O
ports.
expensive
general-purpose
Ex. 8085,8086 mp, Motorola 6800,
Intels 8086, etc.
Microcontroller
CPU, RAM, ROM, I/O and timer
are all on a single chip
fix amount of on-chip ROM,
RAM, I/O ports
for applications in which cost,
power and space are critical
single-purpose
Ex. 8051, PIC mc, Motorola
MCs, Phillips, etc.
Comparison
Embedded Systems
Few applications that are
known at design-time.
Not programmable by
end user.
Fixed run-time
requirements (additional
computing power not
useful).
Criteria:
cost
power consumption
General Purpose
Computing
Broad class of
applications.
Programmable by end
user.
Faster is better.
Criteria:
Cost
average speed
Application areas
Automotive electronics
Aircraft electronics
Trains
Telecommunication
10
Automobiles
Consumer electronics
Industry Automation
Telecommunication
Medical systems
Application areas
Medical
Medicalsystems
systems
Military
Militaryapplications
applications
Authentication
Authentication
17
Application areas
Consumer electronics
Fabrication
Fabricationequipment
equipment
Smart
Smartbuildings
buildings
18
DVD player
Digital clock
Traffic Light
Embedded System
Architecture
Software Design
Developments Tools
Assembler
C compiler
Editors
RTOS (Real Time Operating System)
Flash programmer
Simulator
Assembler
It is a software that converts assembly
language program to Machine language
program understandable by microprocessor
MOV A,#CR
CALL PUTCHAR
MOV A,#LF
CALL PUTCHAR
Assembly
program
RET
:10002600750B00750C00750D00750E007513FFD26B
:1000360083D284D282C287C286C285C281C200C2EE
:1000460001C202C203C204C205C206C20775140079
Machine
Codes
C cross Compiler
It is a software that converts High level
language program [ written in C ] to Machine
language program understandable by
microprocessor
main()
{ unsigned int d;
int_reg(); int_var();
for(d=0; d < 50000 ;d++)
{ LCD_PORT=0; }
C program
Machine Codes
init_lcd();
TR0=1;
uputs(0,0,15, "Conveyer System
"); 0,15," Version 1.0 ");
:10002600750B00750C00750D00750E007513FFD26B
P0=0;
:1000360083D284D282C287C286C285C281C200C2EE
P2=0;
:1000460001C202C203C204C205C206C20775140079
Editor
Embedded Software
Embedded software is specialized
programming in a chip or onfirmwarein an
embedded deviceto controls its functions.
Foreground/Background Systems
Small systems of low complexity are generally
designed as foreground/background or superloops.
An application consists of an infinite loop that calls
modules (that is, functions) to perform the desired
operations (background).
Interrupt Service Routines (ISRs) handle
asynchronous events (foreground). Foreground is
also called interrupt level while background is
called task level.
Foreground/Background Systems
RTOS Concepts
Critical Section of Code
A critical section of code, also called a critical
region, is code that needs to be treated indivisibly.
Once the section of code starts executing, it must
not be interrupted.
Resource
A resource is any entity used by a task. A resource
can thus be an I/O device such as a printer, a
keyboard, a display, etc. or a variable, a structure,
an array, etc.
RTOS Concepts
Shared Resource
A shared resource is a resource that can be used by more
than one task.
Each task should gain exclusive access to the shared
resource to prevent data corruption.
Multitasking
Multitasking is the process of scheduling and switching the
CPU (Central Processing Unit) between several tasks;
Single CPU switches its attention between several sequential
tasks.
Multitasking maximizes the utilization of the CPU and also
provides for modular construction of applications.
RTOS Concepts
Task
A task, also called a thread, The design process for a realtime application involves splitting the work to be done into
tasks which are responsible for a portion of the problem.
Each task is assigned a priority, its own set of CPU
registers, and its own stack area.
Context Switch
When a multitasking kernel decides to run a different task,
it simply saves the current task's status in CPU registers,
and starts executing new task.
After complete the new task, restored old task from its
storage area and starts executing.
Task States
Task scheduling
Interrupt handling
Memory management
Task synchronization
Avoid priority inversion
Time management
Types of RTOS
Hard Real-time RTOS
This type operating systems used in hard real-time
embedded systems
Examples are
LynxOS
OSE
QNX
RTLinux
VxWorks
Windows CE
Types of RTOS
Soft real-time operating system
This type of operating systems used in soft real-time
embedded systems
Examples are
uCOS-II
Android
embOS
Symbian OS
Flash programmer
Flash programmer used to
transfer the binary image
from personal computer to
embedded systems.
Separate software are
used for this purpose
Examples are
Flash magic
Philips flash utility
Win pic
Tiny bootloader
PC
RS232
Programme
r
Embedde
d system
Thank
You