18ECE205J - FPGA-based Embedded System Design - Unit - 1
18ECE205J - FPGA-based Embedded System Design - Unit - 1
For example,
a hard disk, UART, or device which has “busy” states, the
microcontroller must wait until the device is ready to accept
data/commands, i.e., is in a “non-busy state
Latency
Total maximum latency (Lmax) for a system can be defined as:
Lmax=Lsensors+Lmicrocontroller+Lperipherals+ Lactuators+ . . .
•In other cases, different response times are required depending on the
state of the processes being monitored/controlled
•Thus for interrupt-driven I/O, an additional latency factor is “priority” which
determines task precedence. While higher priority tasks, whether input or
output, are addressed earlier than lower priority tasks, in some applications,
all tasks may be assigned the same priority, so that no task takes
precedence, over any other.
converting analog signals to a digital form before processing gave rise to other
problems, e.g., aliasing. digital filtering overhead
Sampling at a rate below the highest frequency component of a given
signal can give rise to a phenomenon known as “aliasing” as shown in
Figure
Example of aliasing
• Sensors and Sensing Sensors are devices that convert one or more
physical parameters into digital or analog signals for processing and
control applications.
•mass flow, volume flow, etc., into an analog voltage or current, or the
digital equivalent.
Most Commonly used sensors Like :
• Dynamic range for digital signals is defined in terms of the bit error ratio
(BER) which is the ratio defined as:
BER = (number of altered bits)/(number of bits transmitted)
Types of Sensors
1.Optical Sensors
Various types devices are available for measuring of optical parameters and
the presence/absence of radiation in the optical portion of the electromagnetic
spectrum. These devices
since a magnetic field is a vector field, both magnitude and direction of the field,
a magnetic sensor can use use director, strength or direction and strength to
measure a particular parameter :
• Hall effect sensors - these sensors sense current in a small plate as a result
of the Lorentz force F = q(vxB) on electrons. This in turn produces a Hall
voltage which is directly proportional to the magnetic field.
•Magneto-inductive sensors - these sensors utilize a single winding coil which has
a ferromagnetic core in the feedback loop of an operational amplifier to form a
relaxation oscillator. Changes in the the ambient magnetic field alter the frequency
of the oscillator by as much as 100%. A shift in frequency can be detected by a
microcontrollers “capture/compare” functionality.
• Search coil sensors - this sensor relies on the fact that a changing magnetic filed
induces a changing electric field in a coil. However, search coil sensors require
that either the magnetic field is varying or the coil is moving.
• Squid sensors - Based on the Josephson junction is the most sensitive and is
capable of sensing fields as low as 10−15 gauss and as high as 9x104 gauss (9
tesla) which is equivalent to fifteen order of magnitude.
4.RF Sensors
RF sensors detect fluid viscosity, fluid contamination, fluid flow, linear and
rotational speeds, displacement and position in automotive and aeronautical
applications.
They normally operate in ranges from DC to 1 Gigahertz, -170◦C to 1000◦C.
This type of sensor can be used with both ferrous and non-ferrous materials as
well as, glass, plastic, liquids and composites.
•The computational tasks are passed to the DSP or other specialized co-
processor and the results of the computation are then made available to the
microcontroller via shared memory, or other means. DSPs are specialized
microprocessors designed to compute algorithms used in digital imaging, radar,
seismic, sensor array, statistical, communications, biomedical signal processing..
DSPs are specialized microprocessors designed to compute algorithms
used in digital imaging, radar, seismic, sensor array, statistical,
communications, biomedical signal processing. Some examples of such
algorithms are shown in the following Table
Table .Algorithms used in embedded systems.
• Field Programmable Gate Arrays (FPGAs) are also used as co-processors as a
result of the availability of extremely fast ADCs which among other things have made it
possible to apply a variety of digital algorithms to radio frequency (RF) applications.
FPGAs are also capable of supporting parallel processing by employing multiple
CPUs(multicore), Multipliers- Accumulators(MACs) and other special function devices
such as graphics processors, DMA controllers, etc. on a single chip. MACs provide
very high speed multiplications and the have the capability of adding the products to
previous products.
•Microcontrollers with integral MACs are very useful for carrying out multiplications for
which the product is “accumulated” a common requirement for many digital signal
processing algorithms such as vector-dot-products (audio, video, images) Finite
Impulse Response (FIR) and Infinite Impulse Response (IIR) filters, Fast Fourier
Transforms (FFTs), discrete cosine transforms (DCTs), convolution algorithms, etc
matrix multiplication,
•Microcontroller manufacturers have begun to revise some of their standard
microcontroller architectures to allow them to perform one, or more, of the
functions formally assigned to co-processors, or other external hardware