UNIT 1 Embedded
UNIT 1 Embedded
DESIGN
What is a System?
It is an arrangement in which all its components are
assembled and work together according to a set of rules.
It is of two types,
INPUT OUTPUT
CONTROLLER
Input- Sensors,Buttons,Touch panels, Bluetooth etc..
Outputs: LED, LCD, Bluetooth ,Infrared
FREQUENCY
GENERATOR
Controller: RAM-Run time memory, ROM-Code
Memory,ALU,CU.
Frequency generator: Crystal oscillator.
2.Office Equipment's:
Printers
Copier
FAX Machine.
PCs are widely used and provide a very flexible programming environment.
Components of PCs are, in fact, used in many embedded computing systems.
2. Low power and low cost also drive us away from PC architectures and
toward multiprocessors. Personal computers are designed to satisfy a broad
mix of computing requirements and to be very flexible. Those features
increase the complexity and price of the components. They also cause the
processor and other components to use more energy to perform a given
function.
Stepwise refinements:
Functional requirements:
o output as a function of input.
• The user sends messages to the train with a control box attached to the tracks.
• The control box may have familiar controls such as a throttle, emergency stop button, and so
on.
• Since the train receives its electrical power from the two rails of the track, the control box
• can send signals to the train over the tracks by modulating the power supply voltage.
• The control panel sends packets over the tracks to the receiver on the train.
• The train includes analog electronics to sense the bits being transmitted and a control system
to set the train motor’s speed and direction based on those commands.
• Each packet includes an address so that the console can control several trains on the same
track; the packet also includes an error correction code (ECC) to guard against transmission
errors.
• This is a one-way communication system—the model train cannot send commands back to
the user.
05/07/2025 R.M.K.ENGINEERING
For design,COLLEGE
we start with requirement first 45
Model train setup
rcvr motor
power
supply
console
DCC was created to provide a standard that could be built by any manufacturer so that
hobbyists could mix and match components from multiple vendors.
■ Standard S-9.1, the DCC Electrical Standard, defines how bits are encoded on
the rails for transmission.
■ Standard S-9.2, the DCC Communication Standard, defines the packets that
carry information.
The DCC standard does not specify many aspects of a DCC train system. It doesn’t
define the control panel, the type of microprocessor used, the programming language
to be used, or many other aspects of a real model train system. The standard
concentrates on those aspects of system design that are necessary for interoperability.
05/07/2025 R.M.K.ENGINEERING COLLEGE 49
Basic system commands
set-speed speed
(positive/negative)
set-inertia inertia-value (non-
negative)
estop none
set-speed
estop
set-speed
Fig2: UML collaboration diagram for major subsystems of the train controller system
sender* detector*
panel motor-interface
speed: integer
train-number() : integer
speed() : integer
inertia() : integer
estop() : boolean
new-settings()
transmitter receiver
current: command
new: boolean
send-speed(adrs: integer,
speed: integer)
send-inertia(adrs: integer, read-cmd()
val: integer) new-cmd() : boolean
set-estop(adrs: integer) rcv-type(msg-type:
command)
rcv-speed(val: integer)
rcv-inertia(val:integer)
send-command()
panel-active() : boolean
operate()
settings
inertia/estop
number
new-settings
set-knobs
Summary
• Separate specification and programming
Small mistakes are easier to fix in the spec
Big mistakes in programming cost a lot of time
• You can’t completely separate specification and
architecture
Make a few tasteful assumptions
05/07/2025 R.M.K.ENGINEERING COLLEGE 61
R.M.K. ENGINEERING COLLEGE
R.S.M. NAGAR, KAVARAPETTAI.
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
Presented By:
Dr.M.S.Kavitha,
Associate Professor,
Dept. of ECE/RMKEC
design steps
requirements
architecture
coding
testing
specification
prototype
initial system
enhanced system
requirements
design
test
specify specify
architect architect
design design
build build
test test
Architecture
Integration
Testing
S1 S1
i2
i1 i1 i2
i2
S2 S4 S2 S4
i2
S3 S3
traditional OR state
05/07/2025 R.M.K.ENGINEERING COLLEGE 103
State chart AND state
sab
c
S1-3 S1-4 S1 S3
d
b a b a b a c d
c
S2-3 S2-4 S2 S4
d r
r r
S5
S5
traditional AND state
OR
cond1 T -
cond2 - T
AND cond3 - F
front back
requirements
bug
coding bug
time
05/07/2025 R.M.K.ENGINEERING COLLEGE 118
RECAP OF PREVIOUS
SESSIONS
Definition – System, Embedded System &
Real time system
Components of Embedded System
Application of Embedded System
Design Process of Embedded System
Design Example- Model train Controller
Design Methodologies
Requirements Analysis
System Analysis and Architecture Design
Quality Assurance Techniques
05/07/2025 R.M.K.ENGINEERING COLLEGE 119
QUIZ
Architectures and
components:
software;
hardware.
Some software is very
hardware- dependent.
Advantages:
cheap and easy to get;
rich and familiar software
environment.
Disadvantages:
requires a lot of hardware
resources;
not well-adapted to real-time.
More power hungry
05/07/20 R.M.K.Engineering College 136
25 More expensive
Typical PC hardware
platform
CPU memory
device
CPU bus
interfac
bus
high-speed bus
e
intr DMA timers
controller
low-speed bus
ctrl bus
interfac
e device
target
System-The
hardware on
serial line- which the code
USB link will run
host system-PC/workstation
05/07/20 R.M.K.ENGINEERING COLLEGE 141
25
Host-based tools
Cross compiler:
compiles code on host for target
system.
Cross debugger:
displays target state, allows
target system to be controlled.
sample
microprocessor
SYSTEM memory
Performance
depends
on all the elements
memory CPU
of the system:
CPU. cache
Cache.
Bus.
Main memory.
I/O device.
16 M
64 M
8M
1 4 8
05/07/20 R.M.K.ENGINEERING COLLEGE 158
25
Memory access times