Hardware Architecture of Embedded Systems
Hardware Architecture of Embedded Systems
OF EMBEDDED SYSTEMS
Dr. Kavitha A K
AP(Sr. Gr.)
Department of Electronics and Communication Engineering
Sri Ramakrishna Institute of Technology, Coimbatore
2 Detailed Hardware Design
The components of embedded systems consist of
hardware and software elements that work together to
enable the desired functionality of the system.
Design process:
Design Process is a way of figuring out what is needed to be
done in developing an embedded product.
It describes design procedures, techniques, tools and design flow
steps at various levels of abstraction.
Abstraction:
Abstraction is the main concept in design process.
Abstraction of design means presenting essential features of
implementation and hiding the minor or background details
Functional requirements:
output as a function of input - (basic functions of the embedded
system)
Non-functional requirements:
Performance (speed, time)
Cost(manufacturing cost, NRE- Non-Recurring Engineering cost)
Physical size, weight, etc.
power consumption
reliability
General Purpose
ALU
Register
Memory Address
Stack Pointer Address Bus
Register
Memory Data
Instruction Pointer Data Bus
Register
Control and
Instruction Decoder Status Bus
many operations
Fig. shows the interaction between the CPU and memory using these three buses.
Interrupts
CISC (Complex Instruction Set Computer) is characterized by its large instruction set.
A large number of instructions are available to program the processor.
So, the number of instructions required to do a job is very less and hence less memory is
required.
The number of registers in CISC processors is very small.
The aim of designing CISC processors is to reduce the software complexity by increasing
the complexity of the processor architecture.
Examples are: Intel x86 family and Motorola 68000 series processors.
Memory
These are:
Programmable ROM
Erasable Programmable ROM.
So, even if power is switched off, the battery will ensure that the contents are not
erased.
Flash memory:
Flash memory is type of EEPROM.
These low-cost chips are characterized by their fast read quality (but not fast write).
The memory is divided into sectors or blocks. Typical sector size is 256 bytes to 16 KB.
Hardware Architecture of Embedded System
Memory
34
Hybrid memory devices
Flash memory: Contd.,
Each sector is an erasable unit. When erased, the bits in that sector are set to 1.
PROCESSOR
Address Bus
Data Bus
FLASH
EEPROM MEMORY
RAM
The processor has to be given the clock input to one of the pins.
To generate the clock signal, a crystal and oscillator are required.
For some processors, the oscillator circuitry is in-built, only external crystal has to be
added to generate the clock signal.
Real Time Clock (RTC) keeps track of the date and time.
All processor events are related to the clock.
The higher the clock frequency, the higher the speed of the processor.
However, different processors cannot be compared based on clock speed alone.
One processor may take one clock cycle for executing an instruction, whereas another
processor may take 16 clock cycles to execute the same instruction.
If the timer value reaches zero, the processor is reset through a reset-signal.
If everything is going on fine, intermittently, the timer value is again set to the large value.
If a reset button is provided in an embedded system, on pressing the button, a reset signal is
sent to the processor.
Alternatively, the processor sends a periodic signal to the reset circuit indicating that does not
receive this signal, then the processor is reset. it is healthy.
If the reset circuitry does not receive the signal then the processor is reset.
Hardware Architecture of Embedded System
Detailed Hardware and Software Design of
40
Embedded Systems
Chip Select
As many peripherals (different memory chips and input/output devices) share a
common bus, the processor must be able to uniquely identify a peripheral to
communicate with it.
The processor performs this identification using a signal called Chip Select (CS).
The Chip Select signal is available to all the peripherals connected to the bus.
• Accelerometer
• Converts the acceleration into voltage.
• The voltage is proportional to the acceleration of a vehicle.
• ADXL 150/250 does this job.
• Pressure sensors:
• Convert the pressure level to voltage level.
• Pressure sensors are used in blood pressure equipment, and to measure altitude of
aircraft, ocean depth etc.
• MPXA 6115A is an example.
• Microphone and speakers:
• Microphone converts the acoustic energy into a voltage signal.
• When you speak into a microphone, the output of the microphone is an electrical signal
with continuously varying amplitude.
• The speakers convert the electrical signal back into acoustic waves.
Hardware Architecture of Embedded System
Sensors and Transducers
Some important sensors and transducers Contd.,:
47
2. Resolution
Hardware Architecture of Embedded System
ADC and DAC
52
To measure the temperature with an accuracy of 0.5 degrees between 0 and 50 degrees,
we need 100 levels.
So, an ADC of 7 bits is enough.
As 7-bit ADC's are not available, we choose an 8-bit ADC.
Hardware Architecture of Embedded System
ADC and DAC
53
Another innovation is 3-dimensional displays in which two LCDs are used to give the 3-
dimensional effect.
Another type of display that is now making inroads is Organic Light Emitting Diode
(OLED) display in which any organic light-emitting polymer is placed between anode
and cathode.
When a voltage is applied between anode and cathode, the organic material glows
OLED gives a much brighter display as compared to LCD and is now being used on
mobile phones and PDAs.
The bus consists of two lines serial clock (SCL) and serial data
(SDA).
Both lines remain high, when Not in use.
A device using the bus drives the line low.
Each device has a unique address of 7bits or 10 bits.
If 7 bits are used 128 devices can be connected to the bus.
A device can act as a master or slave.
Transmitting device is the master and the receiving device is Figure : I 2C bus uses to connecting devices as
slave. shown in figure. the buses are bidirectional and
The same line is used for master transmission and slave synchronous to a common clock microcontroller
with built in PC and available data rates of 100
response. KBPS (standard mode)and 100 MBPS (fast
I2C bus is a multi-master bus. mode) are supported.
More than one device can act as master.Hardware Architecture of Embedded System
Debug Port
62
Joint Test Access Group (JTAG) port is a standardized port to access the
internal circuitry of the processor. JTAG port is used for debugging as well as
to download the software, on to the embedded system.
An embedded system operates either through a 230 V mains supply or through a battery.
Since the components in the embedded system require different DC voltages such as +12
volts, -12 volts, +5 volts, +3.3 volts etc., a Power Supply Unit (PSU) is required which
provides stable DC voltages from the mains or battery.
An AC adapter converts the mains supply to +5 volts to +12 volts DC supply giving a
current up to 500 mA.
The batteries give different voltages, but the output is not stable and the power supply unit
has to derive the necessary voltages from this DC voltage.
Voltage regulators are used for this purpose.
The input to a voltage regulator is a range of DC voltages and the output is a stable fixed
voltage.
For designing the PSU of an embedded system, the power supply requirement for different
components has to be identified and the total current rating has to be estimated.
Note that some devices, particularly the processors, take more power during startup.
Flash devices draw high current during write operations.
These considerations need to be kept in mind while working out the power supply requirements.
Some important steps in this direction are:
use low power devices
Processors and peripherals such as UART, memory devices to be out into low power mode
when they are not in use.
3. If the hardware contains lot of ICs such as gates, flip flops etc , the component count can
be reduced using the PLDs or FPGA.