Module 2 ESD BEC601 Watermark
Module 2 ESD BEC601 Watermark
Definition:
Embedded systems are custom-built to perform a specific function
within a particular domain.
They are not general-purpose systems and cannot be
reprogrammed or repurposed for different applications.
Examples:
The embedded control unit of a microwave oven cannot be replaced
with that of an air conditioner.
An embedded system designed for telecom networks (e.g., a
network switch controller) cannot be used in automotive
applications (e.g., Engine Control Unit).
A medical imaging embedded system used in MRI scanners cannot
function as a biometric fingerprint scanner.
The Data Flow Graph (DFG) model translates the data processing
requirements into a data flow graph.
It is a data-driven model in which the program execution is
determined by data.
This model emphasizes data and operations on the data that
transform the input data to output data.
Embedded applications that are computationally intensive and
data-driven are modeled using the DFG model.
DSP applications are typical examples of it.
a
x y
+ -
b c
Key Features:
The DFG model is data-driven and does not involve control
operations (conditionals).
The CDFG model is used for applications involving conditional
program execution.
CDFG models contain both data operations and control operations.
CDFG uses:
Data Flow Graph (DFG) as element.
Conditionals (constructs) as decision makers.
CDFG includes both data flow nodes and decision nodes, while DFG
only includes data flow nodes.
Example Requirement:
If flag = 1, = + ;
Else = ;
Key Representation:
Control nodes are represented
by a diamond shape (decision
block) as in flowcharts.
The decision node determines
which process gets executed.
System Requirements:
Alarm sounds if the seat belt isn’t fastened within 10 seconds after
ignition ON.
Alarm stops when:
Alarm time (5 seconds) expires.
Seat belt is fastened.
Ignition is turned off.
States:
Alarm Off
Waiting
Alarm On
Events:
Ignition Key ON
Ignition Key OFF
Timer Expire
Alarm Time Expire
Seat Belt ON
Code Example
void main()
Configurations();
Initializations();
while(1)
Task1();
Task2();
...
TaskN();
Steps involved:
1 Source File written in ‘.asm‘ or ‘.src‘.
2 Assembler translates source code to ‘.obj‘ file.
3 Linker/Locator assigns absolute addresses to code and creates an
absolute object file.
4 Object to Hex File Converter generates the final ‘.hex‘ file for
memory dumping.
Key Tools in Assembly Development
A51 Macro Assembler (Keil Software) - 8051 Assembler.
BL51 Linker/Locator (Keil Software) - Linking and assigning
addresses.
OH51 Object to Hex Converter - Generates ‘.hex‘ file for flashing.