Embedded Systems: (Software)
Embedded Systems: (Software)
Embedded Systems: (Software)
(Software)
Embedded Applications
Session -2
Kavi Arya
Krithi Ramamritham
• A modern home
– has one general purpose desktop PC
– but has several embedded systems.
• More prevalent in industrial sectors
– Dozens of embedded computers in modern
automobiles
– chemical and nuclear power plants
Feedforward Control
© Krithi Ramamritham / Kavi Arya IIT Bombay 8
Example: Elevator Controller
F2 Functional
F1 F5
Design
Source:
F4 Source:
Ian Phillips, ARM
Ian Phillips, ARM
VSIA 2001
VSIA 2001
F3
(F2)
Architectural
Thread
(F5)
Design
(F3) (F4)
HW1 HW2 HW3 HW4 RTOS/Drivers
Hardware Interface
• Constrained metrics
– Values must be below (sometimes above) certain
threshold
• Optimization metrics
– Improved as much as possible to improve product
• Metric can be both constrained and
optimization
resolution of 64 x 64
yes More no Transmit serially
CCD
input Zero-bias
adjust
DCT
Quantize yes
no
Archive in Done
memory ?
yes
More no
Transmit serial output
e.g., 011010...
8×8 serially
blocks
?
output
file
UART
SOC CCDPP
Microcontroller
Instruction 4K ROM
Decoder
Controller
ALU 128
RAM
CLIENT SERVER
Requirement Choice Made Rationale
Continuous pilot The time period of the The writer thread on
inputs should be writer on Client should the Client polls for the
polled at rates be less than 16 ms pilot inputs from the
greater than 16 ms joystick
© Krithi Ramamritham / Kavi Arya IIT Bombay 43
Time Periods to meet Timing
Requirements…
CLIENT SERVER
Requirement Choice Made Rationale
The state of the The time period of the The flight dynamics
aircraft is to be Flight Dynamics thread on the Server
advanced at 12.5 thread on the Server advances the state of
ms time steps is 12.5 ms the system
© Krithi Ramamritham / Kavi Arya IIT Bombay 44
Time Periods to meet Timing
Requirements…
• we know:
– if temperature too high, it explodes
– maximum rate of temperature increase
– rate of cooling
• events:
– temperature change
– temperature > safe threshold
• we can derive:
– how often we have to check temperature
– when we have to finish cooling
We looked at details of
2mm*2mm,
PIC 12c508
512b ROM, 24b RAM,
6bits IO, 4MHz RC
Instruction 4K ROM
Decoder
Controller
ALU 128
RAM