Lecture 9 - EECE 3231
Lecture 9 - EECE 3231
29 August 2023 1
Definition
2
Embedded System:
An embedded System is a system where a microcontroller based or a
microprocessor based programmable system is embedded in a larger
system.
Functional Requirements
1. Stand-alone embedded systems 1. Small scale embedded system
2. Real time embedded system 2. Medium scale embedded system
a) Hard real time E.S 3. Large scale embedded or
b) Soft Real time E.S Sophisticated Embedded Systems
3. Networked embedded system
4. Mobile embedded system
Categories of Embedded systems
19
Hard Real-Time system: A Real time system in which, the violation of time
constraints will cause critical failure and loss of life or property damage is known as a
Hard Real time system. Ex: Deadline in a missile control embedded system , Delayed
alarm during a Gas leakage , A delayed response in pacemakers ,Failure in RADAR
functioning etc.
Networked embedded systems:
The networked embedded systems are related to a network with network interfaces to
access the resources. The connected network can be a Local Area Network (LAN) or a
Wide Area Network (WAN), or the Internet. The connection can be either wired or
wireless. Ex: A home security system is an example of a LAN networked embedded
system where all sensors (e.g. motion detectors, light sensors, or smoke sensors) are
wired and running on the TCP/IP protocol.
Mobile Embedded systems:
The portable embedded devices like mobile and cellular phones, digital cameras, MP3
players, PDA (Personal Digital Assistants) are the example for mobile embedded
systems. The basic limitation of these devices is the limitation of memory and other
resources.
Categories of Embedded systems
21
Architecture
22
Features of an Embedded System
23
Clock Oscillator
The function of this oscillator circuit is to provide an accurate and stable periodic
clock signal to a processor. The processor needs a clock oscillator as clock controls the
various clocking requirements of CPU. The clocking requirements are the system
timers and CPU machine cycles. The machine cycle includes (i) Fetching code and
data from memory and Decoding and execution and (ii) Transferring results to
memory. The clock controls the time for executing an instruction.
Interrupt Handlers
A system possesses a number of devices and the system processor has to control and
handle the requirements of devices by running appropriate Interrupt Service Routine
(ISR) for each. An interrupt handling mechanism must exist in each system to handle
interrupt from various processes in the system.
Memories
Embedded system makes use of different types of memories based on their features.
DAC/ADC
For automatic control and signal processing applications, a system must provide
necessary interfacing circuit and software for Digital to Analog Conversion (DAC)
unit and Analog to Digital Conversion (ADC) unit. A DAC operation is done with the
help of a combination of PWM (Pulse Width Modulation) unit in the microcontroller
and External Integrator chip. ADC operations are needed in systems for voice
processing, Instrumentation, Data acquisition systems and automatic control.
Data and Address Bus concept
Challenges in Embedded System
30
--Non-Recurrent
Engineering (NRE) cost
--Size
--Power
--Performance
--Flexibility
Design Goals
31
Requirements
32
Development Process
33
Development Process
34
Embedded System vs General Purpose
Computing
35
Harvard Architecture vs Von Neumann
Architecture
36
Harvard & Von-Neumann Architecture
37
Harvard Von Nuemann
Harvard architecture has physically separate Von Nuemann architecture has single physical
program and data memory and separate buses memory for program and data as well as single
to access the same. bus to access the same
With harvard architecture processor can access In Von Nuemann architecture either program
program and data memory at the same time or data can be accessed at a time.
which can help to perform faster program
execution
With harvard architecture it is possible to have With Von Nuemann architecture since only
different address and data bus width for single bus is available, bus characteristics are
program and data memory same for program and data.
HW design of this architecture is complex and HW design for this architecture is simple and
expensive. cost efficient.
Since program and data are different programs Since program and data share the same
are prone to crash caused by program error memory, a program error can rewrite the
itself. instruction and result into undesirable behavior
or crash.
Microchip based PIC microcontroller Pentium, Motorola 68HC11
38
Thanks