Professional Documents
Culture Documents
BF - ES - 1-
actuators
BF - ES - 2-
1
REVIEW: Standard layout of sensor systems
Sample A/D
Sensor Amplifier
and hold conversion
Discretization of time
Ve is a mapping ℝ ℝ
2
Sample and Hold
Input
Output
Clock
BF - ES - 5-
Idea:
Generate n different voltages by voltage divider (resistors),
e.g. Vref, ¾ Vref, ½ Vref, ¼ Vref.
Use n comparators for parallel comparison of input voltage V x to these
voltages.
Encoder to compute digital output.
BF - ES - 6-
3
Discretization of values: A/D-converters
1. Flash A/D converter (2)
BF - ES - 7-
Discretization of values
2. Successive approximation
BF - ES - 8-
4
Successive approximation (2)
1100
1011
Vx 1010
1000
V-
t
BF - ES - 9-
x3
R I3
x2
2R I2
x1
4R I1
x0
8R I0
BF - ES - 10 -
5
Operational amplifier
R2
R1
I
-
Vref +
V
BF - ES - 11 -
BF - ES - 12 -
6
Design Issues with Sensors
Calibration
Relating measurements to the physical phenomenon
Can dramatically increase manufacturing costs
Nonlinearity
Measurements may not be proportional to physical phenomenon
Correction may be required
Feedback can be used to keep operating point in the linear
region
Sampling
Aliasing
Missed events
Noise
Analog signal conditioning
Digital filtering
Introduces latency
BF - ES - 13 -
Aliasing
2 t 2 t
e 3 ( t ) sin 0 . 5 sin
8 4
2 t 2 t 2 t
e 4 ( t ) sin 0 . 5 sin 0 . 5 sin
8 4 1
Periods of p=8,4,1
Indistinguishable if sampled at integer times, ps=1
BF - ES - 14 -
7
Aliasing
Graphics
BF - ES (Wikimedia Commons) - 16 -
8
Anti-aliasing filter
g (t )
Ideal filter
e (t )
Realizable
filter fs /2 fs
BF - ES - 17 -
Weighting factor
for influence of
y(ts) at time t
BF - ES - 18 -
9
Weighting factor for influence of y(ts)
at time t
No influence at ts+n
BF - ES - 19 -
BF - ES - 20 -
10
(Attempted) reconstruction of input signal
* Assuming 0-
order hold
BF - ES - 21 -
z (t )
y (t )
fs /2 fs
Filter removes high frequencies present in y(t)
BF - ES - 22 -
11
How precisely are we reconstructing the input?
Sampling theory:
BF - ES - 23 -
Limitations
BF - ES - 24 -
12
Actuators and output
Huge variety of actuators and outputs
Two base types:
• analogue drive
(requires D/A conversion, unless on/off sufficient)
• CRTs, speakers, electrical motors with collector
• electromagnetic (e.g., coils) or electrostatic drives
• piezo drives
BF - ES - 25 -
Micromotors
BF - ES - 26 -
13
Interfaces
BF - ES - 27 -
Interfaces
Pulse width modulation (PWM)
Parallel
Multiple data lines transmitting data
Ex: PCI, ATA, CF cards, Bus
Serial
Single data line transmitting data
Ex: USB, SATA, SD cards,
BF - ES - 28 -
14
Example Using a Serial Interface
BF - ES - 29 -
BF - ES - 30 -
15
Input Mechanisms in Software
Polling Interrupts
Main loop checks each External hardware alerts
I/O device periodically. the processor that input is
If input is ready, ready.
processor initiates Processor suspends what
communication. it is doing, invokes an
interrupt service routine
(ISR).
Processor Setup Code
Not Ready
BF - ES - 31 -
Timed Interrupt
Processor Setup
Reset timer
Timer
Register Interrupt Service Routine
BF - ES - 32 -
16
Example:
Do something for 2 seconds then stop
BF - ES - 33 -
Example
BF - ES - 34 -
17
Embedded System Hardware
cyber-physical systems
BF - ES - 35 -
Microcontrollers
BF - ES - 36 -
PIC16C8X
18
Application Specific Circuits (ASICS)
or Full Custom Circuits
BF - ES - 37 -
Energy
© Hugo De Man,
IMEC, Philips, 2007
BF - ES - 38 -
19
Low Power vs. Low Energy
Consumption
Minimizing power consumption important for
• the design of the power supply
• the design of voltage regulators
• the dimensioning of interconnect
• short term cooling
Minimizing energy consumption important due to
• restricted availability of energy (mobile systems)
– limited battery capacities (only slowly improving)
– very high costs of energy (solar panels, in space)
• cooling
– high costs
– limited space
• dependability
• long lifetimes, low temperatures
BF - ES - 39 -
BF - ES - 40 -
20
Fundamentals of dynamic voltage
scaling (DVS)
[Courtesy,
Yasuura, 2000]
P C L V dd f with
2
V dd
: switching activity k CL with
V dd
2
Vt
C L : load capacitanc e
V t : threshhold voltage
V dd : supply vol tage
BF - ES (V t than V dd )
- 41 -
f : clock frequency
Variable-voltage/frequency example:
INTEL Xscale
OS should
schedule
distribution
of the
energy
budget.
From Intel’s Web Site
BF - ES - 42 -
21
Low voltage, parallel operation more efficient
than high voltage, sequential operation
Basic equations
Power: P ~ VDD² ,
Maximum clock frequency: f ~ VDD ,
Energy to run a program: E = P t, with: t = runtime
Time to run a program: t ~ 1/f
Changes due to parallel processing, with operations per clock:
Clock frequency reduced to: f’ = f / ,
Voltage can be reduced to: VDD’ =VDD / ,
Power for parallel processing: P° = P / ² per operation,
Power for operations per clock: P’ = P° = P / ,
Time to run a program is still: t’ = t,
Energy required to run program: E’ = P’ t = E /
Rough
Argument in favour of voltage scaling, approxi-
VLIW processors, and multi-cores mations!
BF - ES - 43 -
22
Result (as published by transmeta)
Pentium Crusoe
Example: Filtering
BF - ES - 46 -
23
Filtering in digital signal processing
ADSP 2100
BF - ES - 48 -
24
Heterogeneous registers
AX AY MX MY
Address- AF MF
registers
A0, A1, A2
..
+,-,..
*
Address
AR
+,-
generation
unit (AGU) MR
BF - ES - 50 -
25
Modulo addressing
sliding window
Modulo addressing: x
Am++ Am:=(Am+1) mod n
(implements ring or circular
buffer in memory)
t
t1
.. ..
n most x[t1-1] x[t1-1]
x[t1] x[t1]
recent x[t1-n+1] x[t1+1]
values x[t1-n+2] x[t1-n+2]
.. ..
Saturating arithmetic
26
Multimedia-Instructions/Processors
+
4 additions per instruction;
carry disabled at word
boundaries.
BF - ES - 53 -
BF - ES - 54 -
27
Very long instruction word (VLIW) architectures
BF - ES - 55 -
BF - ES - 56 -
28
Large # of delay slots,
a problem of VLIW processors
BF - ES - 57 -
29