Es Module1 Notes
Es Module1 Notes
The application areas and the products in the embedded domain are countless.
A few of the important domains and products are listed below:
1. Consumer electronics: Camcorders, cameras, etc.
2. Household appliances: Television, DVD players, washing machine, fridge, microwave
oven, etc.
3. Home automation and security systems: Air conditioners, sprinklers, intruder detection
alarms, closed circuit television cameras, fire alarms, etc.
4. Automotive industry: Anti-lock breaking systems (ABS), engine control, ignition
systems, automatic navigation systems, etc.
5. Telecom: Cellular telephones, telephone switches, handset multimedia applications, etc.
6. Computer peripherals: Printers, scanners, fax machines, etc.
7. Computer Networking systems: Network routers, switches, hubs, firewalls, etc.
8. Healthcare: Different kinds of scanners, EEG, ECG machines etc.
9. Measurement & Instrumentation: Digital multi meters, digital CROs, logic analyzers
PLC systems, etc.
10. Banking & Retail: Automatic teller machines (ATM) and currency counters, point of sales
(POS).
11. Card Readers: Barcode, smart card readers, hand held devices, etc.
1. Data collection/Storage/Representation
2. Data Communication
3. Data (signal) processing
4. Monitoring
5. Control
6. Application specific user interface
1. Data Collection/Storage/Representation:
• An embedded system designed for the purpose of data collection performs acquisition of
data from the external world.
• The term “data” refers all kinds of information, such as text, voice, image, video, electrical
signals and any other measurable quantities.
• Data can be either analog (continuous) or digital (discrete).
• Data collection is usually done for storage, analysis, manipulation and transmission.
• These actions are purely dependent on the purpose for which the embedded system is
designed.
Example:
• A digital camera is a typical example of an embedded system with data
collection/storage/representation of data.
• Images are captured and the captured image may be stored within the memory of the
camera.
• The captured image can also be presented to the user through a graphic LCD unit.
2. Data Communication:
• Embedded data communication systems are deployed in applications from complex
satellite communication systems to simple home networking systems.
• The data collected by an embedded terminal may require transferring of the same to some
other system located remotely.
• The transmission is achieved either by a wire-line medium or by a wire-less medium.
• Wire-line medium was the most common choice in all olden days embedded systems.
• As technology is changing, wireless medium is becoming the standard for data
communication in embedded systems.
Examples: Wireless modules -Bluetooth, Zig-Bee, Wi-Fi, EDGE, GPRS, etc.
Wire-line modules (RS-232C, USB, TCP/IP, PS2,etc).
Data transmission embedded systems- Network hubs, routers, switches, etc.
• Sophisticated functionalities like data packetizing, encrypting and decrypting for data
security, monitoring etc.
3. Data (Signal) Processing:
• The data collected by embedded systems may be used for various kinds of data processing.
• Embedded systems with signal processing functionalities are employed in applications
demanding signal processing like speech coding, synthesis, audio video codec,
transmission applications, etc.
Example: A digital hearing aid is a typical example of an embedded system employing data
processing. Digital hearing aid improves the hearing capacity of hearing impaired persons.
4. Monitoring:
• Almost all embedded products coming under the medical domain are with monitoring
functions only.
• They are used for determining the state of some variables using input sensors.
• They cannot impose control over variables.
Example: Electro cardiogram (ECG) machine for monitoring the heartbeat of a patient.
• The machine is intended to do the monitoring of the heartbeat of a patient but it cannot
impose control over the heartbeat.
• The sensors used in ECG are the different electrodes connected to the patient’s body.
• Other examples, like digital CRO, digital multi-meters, logic analyzers., etc. used in control
& instrumentation applications.
5. Control:
• Embedded systems with control functionalities impose control over some variables
according to the changes in input variables.
• A system with control functionality contains both sensors and actuators.
• Sensors are connected to the input port for capturing the changes in environmental variable
or measuring variable.
• The actuators connected to the output port are controlled according to the changes in the
input variable.
Example: Air conditioner system used in our home to control the room temperature to a
specified limit.
• An air conditioner contains a room temperature sensing element (sensor) which may be
thermistor and a handheld unit for setting up (feeding) the desired temperature.
• The air compressor unit acts as the actuator.
6. Applications specific user interface
• Buttons, switches, keypad, lights, speakers, display units, etc. are application-specific user
interfaces.
Example: Mobile phone is an example of application specific user interface.
• In mobile phone, the user interface is provided through the keypad, graphic LCD module,
system speaker, vibration alert, etc.
The Typical Embedded System
A typical embedded system contains a single chip controller, which acts as the master brain of the
system as shown in block diagram.
The Memory of the system is responsible for holding the control algorithm and other important
configuration details.
For Example, Embedded system is designed for any handheld application, such as a mobile
handset application, then the system should contain user interfaces like a keyboard for performing
input operations and display unit for providing users the status of various activities in progress.
II. Microcontrollers
• A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and
General-purpose Register, On Chip FLASH memory for program storage, Timer and
Interrupt control units and dedicated I/O ports.
• Microcontrollers can be considered as a super set of Microprocessors.
• Microcontroller can be general purpose or application specific.
• Microcontroller contains all the necessary functional blocks for independent working,
they found greater place in the embedded domain in place of microprocessors.
• Microcontrollers are cheap, cost effective and are readily available in the market
Notes:
Explain Digital Signal Processor
• DSP are powerful special purpose microprocessor designed to meet the computational
demands and power constraints.
• DSP are 2 to 3 times faster than general purpose microprocessors in signal processing
applications.
• DSPs implement algorithms in hardware which speeds up the execution whereas general
purpose processor implement the algorithm in software depends primarily on the clock.
• These advanced FPGA, offer features such as built-in hardwired processors, substantial
amounts of memory, clock management systems, and support for many of the latest,
very fast device-to-device signaling technologies.
• Examples: Data processing and storage, to instrumentation, telecommunications, and
digital signal processing etc.
Complex Programmable Logic Device (CPLD):
• A complex programmable logic device (CPLD) is a programmable logic device with
complexity between that of PALs and FPGAs, and architectural features of both.
• CPLDs, by contrast, offer much smaller amounts of logic - up to about 10,000 gates.
• CPLDs offer very predictable timing characteristics and ideal for critical control
applications.
• CPLDs, making them ideal for cost-sensitive, battery-operated, portable applications
such as mobile phones and digital handheld assistants.
Advantages OF PLDs:
• PLDs offer customer much more flexibility during design cycle.
• PLDSs do not require long lead times for prototype or production.
• PLDs do not require customers to pay for large NRE costs and purchase expensive
mask sets
• PLDs allow customers to order just the number of parts required when they need them.
• PLDs are reprogrammable.
• Able to add new features or upgrade.
2 It has separate buses for instruction as well as It shares single common bus for
data fetching. instruction and data
fetching.
3 Easier to pipeline, so high performance can be Low performance as compared to
achieve. Harvard
Architecture
4 Comparatively high cost. It is cheaper.
5 Since data memory and program memory are Accidental corruption of program
stored physically in different locations, no memory may occur if data memory and
chances exist for accidental corruption of program memory are stored physically in
program memory. the same chip.
Memory:
Memory is an important part of an embedded system.
Two types of memory,
1. Program Storage Memory (ROM)
2. Data memory (RAM).
Certain Embedded contain built in program memory and data memory and this memory is
known as on-chip memory
Certain Embedded do not contain sufficient memory inside the chip and requires external
memory called off-chip memory or external memory.
Memory Program Storage Memory:
• Stores the program instructions
• Retains its contents even after the power to it is turned off.
• It is generally known as Non-volatile storage memory
• Depending on the fabrication, erasing and programming techniques they are classified into
1. PROM(OTP)
2. Masked ROM(MROM)
3. EPROM
4. EEPROM
5. NVRAM
6. FLASH
1. Masked ROM (MROM):
• One-time programmable memory.
• Uses hardwired technology for storing data.
• The device is factory programmed by masking and metallization process according
to the data provided by the end user.
• The primary advantage of MROM is low cost for high volume production.
• MROM is the least expensive type of solid state memory.
• The limitation with MROM based firmware storage is the inability to modify the device
firmware against firmware upgrades.
• The MROM is permanent in bit storage, it is not possible to alter the bit information.
2. Programmable Read Only Memory (PROM) / (OTP):
• It is not pre-programmed by the manufacturer.
• The end user is responsible for Programming these devices.
• PROM/OTP has poly-silicon wires arranged in a matrix, these wires can be functionally
viewed as fuses.
• PROM programmer which selectively burns the fuses according to the bit pattern to be
stored.
• Fuses which are not blown/burned represents a logic “1”.
• Fuses which are blown/burned represents a logic “0”.
• OTP is widely used for commercial production of embedded systems whose proto-
typed versions are proven and the code is finalized.
• It is a low cost solution for commercial production.
• OTPs cannot be reprogrammed.
• Systems memory requirement depend primarily on the nature of the application that is
planned to run on the system.
• Memory performance and capacity requirement for low cost systems are small, whereas
memory throughput can be the most critical requirement in a complex, high performance
system.
• Following are the factors that are to be considered while selecting the memory devices
1. Speed
2. Data storage size and capacity
3. Bus width
4. Power consumption
5. Cost
Sensors & Actuators:
• Embedded system is in constant interaction with the real world
• The changes in the system environment or variables are detected by the sensors connected
to the input port of the embedded system.
• If the embedded system is designed for any controlling purpose, the system will produce
some changes in controlling variable to bring the controlled variable to the desired value.
• It is achieved through an actuator connected to the out port of the embedded system.
Sensor:
• A transducer device which converts energy from one form to another for any measurement
or control purpose.
• Sensors acts as input device
Example: Hall Effect Sensor which measures the distance between the cushion and magnet in
the Smart Running shoes from adidas
Example: IR, humidity, PIR(passive infrared), ultrasonic, piezoelectric, smoke sensors.
Actuator:
• A form of transducer device (mechanical or electrical) which converts signals to
corresponding physical action (motion).
• Actuator acts as an output device
Example: Micro motor actuator which adjusts the position of the cushioning element in the
Smart Running shoes from adidas
The I/O Subsystem:
• The I/O subsystem of the embedded system facilitates the interaction of the embedded
system with external world
• The interaction happens through the sensors and actuators connected to the Input and
output ports respectively of the embedded system
• The sensors may not be directly interfaced to the Input ports, instead they may be interfaced
through signal conditioning and translating systems like ADC, Optocouplers etc
Light Emitting Diode (LED):
• Light Emitting Diode (LED) is an output device for visual indication in any embedded
system
• LED can be used as an indicator for the status of various signals or situations
• Typical examples are indicating the presence of power conditions like „Device ON‟,
„Battery low‟ or „Charging of battery‟ for a battery operated handheld embedded devices
• LED is a p-n junction diode and it contains an anode and a cathode.
• For proper functioning of the LED, the anode of it should be connected to +ve terminal of
the supply voltage and cathode to the –ve terminal of supply voltage
• The current flowing through the LED must limited to a value below the maximum current
that it can conduct.
• A resister is used in series between the power supply and the resistor to limit the current
through the LED
7-Segment LED Display:
• The 7 – segment LED display is an output device for displaying alpha numeric characters
• It contains 8 light-emitting diode (LED) segments arranged in a special form.
• Out of the 8 LED segments, 7 are used for displaying alpha numeric characters
• The LED segments are named A to G and the decimal point LED segment is named as DP
• The LED Segments A to G and DP should be lit accordingly to display numbers and
characters
• The 7 – segment LED displays are available in two different configurations, namely;
1. Common anode and 2. Common cathode
• In the Common anode configuration, the anodes of the 8 segments are connected
commonly whereas in the Common cathode configuration, the 8 LED segments share a
common cathode line.
• LED segment anode or cathode is connected to the Port of the controller in the order „A‟
segment to the Least significant port Pin and DP segment to the most significant Port Pin.
• The current flow through each of the LED segments should be limited to the maximum
value supported by the LED display unit
• The typical value for the current falls within the range of 20mA
• The current through each segment can be limited by connecting a current limiting resistor
to the anode or cathode of each segment
Opto-coupler:
Stepper Motor:
• Stepper motor is an electro mechanical device which generates discrete displacement
(motion) in response to dc electrical signals
• It differs from the normal dc motor in its operation.
• The dc motor produces continuous rotation on applying dc voltage whereas a stepper motor
produces discrete rotation in response to the dc voltage applied to it
• Stepper motors are widely used in industrial embedded applications, consumer electronic
products and robotics control systems
• The paper feed mechanism of a printer/fax makes use of stepper motors for its functioning.
• Based on the coil winding arrangements, a two phase stepper motor is classified into
1. Unipolar
2. Bipolar
• Unipolar: A unipolar stepper motor contains two windings per phase.
The direction of rotation (clockwise or anticlockwise) of a stepper motor is controlled by
changing the direction of current flow.
Current in one direction flows through one coil and in the opposite direction flows through
the other coil.
It is easy to shift the direction of rotation by just switching the terminals to which the coils
are connected.
Relay:
• An electro mechanical device which acts as dynamic path selectors for signals and power.
• The “Relay” unit contains a relay coil made up of insulated wire on a metal core and a
metal armature with one or more contacts.
• Relay works on electromagnetic principle.
• When a voltage is applied to the relay coil, current flows through the coil, which in turn
generates a magnetic field.
• The magnetic field attracts the armature core and moves the contact point.
• The movement of the contact point changes the power/signal flow path.
• The Relay is normally controlled using a relay driver circuit connected to the port pin of
the processor/controller
• A transistor can be used as the relay driver. The transistor can be selected depending on
the relay driving current requirements.
Piezo Buzzer:
• It is a piezoelectric device for generating audio indications in embedded applications.
• A Piezo buzzer contains a piezoelectric diaphragm which produces audible sound in
response to the voltage applied to it.
• Piezoelectric buzzers are available in two types
1. Self-driving
2. External driving
• Self-driving contains are the necessary components to generate sound at a predefined tone.
• External driving piezo Buzzers supports the generation of different tones.
• The tone can be varied by applying a variable pulse train to the piezoelectric buzzer.
• A Piezo Buzzer can be directly interfaced to the port pin of the processor/Controller.
Push button switch:
• Push Button switch is an input device.
• Push button switch comes in two configurations, namely “Push to Make” and “Push to
Break”
• The switch is normally in the open state and it makes a circuit contact when it is pushed or
pressed in the “Push to Make” configuration.
•In the “Push to Break‟ configuration, the switch normally in the closed state and it breaks
the circuit contact when it is pushed or pressed
• The push button stays in the “closed” (For Push to Make type) or “opens” (For Push to
Break type) state as long as it is kept in the pushed state and it breaks/makes the circuit
connection when it is released.
• Push button is used for generating a momentary pulse
Communication Interface:
• Communication interface is essential for communicating with various subsystems of the
embedded system and with the external world
• The communication interface can be viewed in two different perspectives; namely;
1. Onboard Communication Interface
2. External Communication Interface
1. On board communication interfaces:
• The Communication channel which interconnects the various components within an
embedded product is referred as Device/board level communication interface (Onboard
Communication Interface)
• These are classified into
1. I2C (Inter Integrated Circuit) Bus
2. SPI (Serial Peripheral Interface) Bus
3. UART (Universal Asynchronous Receiver Transmitter)
4. 1-Wires Interface
5. Parallel Interface
The sequence of operation for communicating with an I2C slave device is:
1. Master device pulls the clock line (SCL) of the bus to “HIGH”
2. Master device pulls the data line (SDA) „LOW‟, when the SCL line is at logic “HIGH”
3. Master sends the address (7 bit or 10 bit wide) of the „Slave‟ device to which it wants to
communicate, over the SDA line.
4. Master waits for the acknowledgement bit from the slave device whose address is sent on the
bus along with the Read/Write operation command.
5. The Slave device with the address requested by the master device responds by sending an
acknowledge bit (Bit value =1) over the SDA line
6. Upon receiving the acknowledge bit, master sends the 8bit data to the slave device over
SDA line, if the requested operation is „Write to device‟.
7. If the requested operation is „Read from device‟, the slave device sends data to the master
over the SDA line.
8. Master waits for the acknowledgement bit from the device upon byte transfer complete for
a write operation and sends an acknowledge bit to the slave device for a read operation
9. Master terminates the transfer by pulling the SDA line „HIGH‟ when the clock line SCL
is at logic „HIGH‟ (Indicating the „STOP‟ condition).
• Master device selects the required slave device by slave select signal “LOW”.
• The serial data transmission through SPI Bus is fully configurable.
• SPI devices contain certain set of registers for holding these configurations.
• The Serial Peripheral Control Register holds the various configuration parameters like
master/slave selection for the device, baud-rate selection for communication, clock signal
control etc.
• The status register holds the status of various conditions for transmission and reception.
• SPI works on the principle of „Shift Register‟.
• The master and slave devices contain a special shift register for the data to transmit or
receive.
PARALLEL COMMUNICATION:
• The communication channel is the number of electrical conductors used at the physical
layer to convey bits.
• Parallel communication implies more than one such conductor.
• For example, an 8-bit parallel channel will convey eight bits (or a byte) simultaneously,
whereas a serial channel would convey those same bits sequentially, one at a time.
• Parallel communication is and always has been widely used within integrated circuits, in
peripheral buses, and in memory devices such as RAM.
Note:
• RS-232 is a point-to-point communication interface and the devices involved in RS-232
communication are called „Data Terminal Equipment (DTE)‟ and „Data Communication
Equipment (DCE)‟.
• If no data flow control is required, only TXD and RXD signal lines and ground line (GND)
are required for data transmission and reception.
• The RXD pin of DCE should be connected to the TXD pin of DTE and vice versa for
proper data transmission.
• If hardware data flow control is required for serial transmission, various control signal lines
of the RS-232 connection are used appropriately.
• The control signals are implemented mainly for modem communication and some of them
may be irrelevant for other type of devices.
• The Request to Send (RTS) and Clear To Send (CTS) signals co-ordinate the
communication between DTE and DCE.
• Whenever the DTE has a data to send, it activates the RTS line and if the DCE is ready to
accept the data, it activates the CTS line.
• The Data Terminal Ready (DTR) signal is activated by DTE when it is ready to accept
data.
• Ring Indicator (RI) is a modem specific signal line for indicating an incoming call on the
telephone line.
• The Data Set Ready (DSR) is activated by DCE when it is ready for establishing a
communication link.
• DTR should be in the activated state before the activation of DSR.
• The Data Carrier Detect (DCD) is used by the DCE to indicate the DTE that a good signal
is being received.
2. USB (UNIVERSAL SERIAL BUS):
• The USB is a 4 wire bus that supports communication between a host and a
Peripheral.
• It support maximum of 127number of peripherals.
• The host controller allocates the bandwidth through a token based protocol.
5. GPRS
1. INFRARED:
• Infrared is a certain region in the light spectrum
• Ranges from .7μ to 1000μ or .1mm
• Broken into near, mid, and far infrared
• One step up on the light spectrum from visible light
• Measure of heat
IR transmission:
• The transmitter of an IR LED inside its circuit, which emits infrared light for every electric
pulse given to it.
• This pulse is generated as a button on the remote is pressed, thus completing the circuit,
providing bias to the LED.
• The LED on being biased emits light of the wavelength of 940nm as a series of pulses,
corresponding to the button pressed.
• However since along with the IR LED many other sources of infrared light such as us
human beings, light bulbs, sun, etc, the transmitted information can be interfered.
• A solution to this problem is by modulation. The transmitted signal is modulated using a
carrier frequency of 38 KHz (or any other frequency between 36 to 46 KHz).
• The IR LED is made to oscillate at this frequency for the time duration of the pulse. The
information or the light signals are pulse width modulated and are contained in the 38 KHz
frequency.
• IR supports data rates ranging from 9600bits/second to 16Mbps
• Serial infrared: 9600bps to 115.2 kbps
• Medium infrared: 0.576Mbps to 1.152 Mbps
• Fast infrared: 4Mbps
2. BLUETOOTH:
• Bluetooth is a wireless technology standard for short distances (using short-wavelength
UHF band from 2.4 to 2.485 GHz)for exchanging data over radio waves.
• Invented by telecom vendor Ericsson in 1994, it was originally conceived as a wireless
alternative to RS- 232 data cables.
• Bluetooth uses a radio technology called frequency- hopping spread spectrum.
• Bluetooth divides transmitted data into packets, and transmits each packet on one of 79
designated Bluetooth channels.
• Each channel has a bandwidth of 1 MHz.
• It usually performs 800 hops per second, with Adaptive Frequency-Hopping (AFH)
enabled
• Bluetooth is a packet-based protocol with a master- slave structure.
• One master may communicate with up to seven slaves in a piconet.
• Wi-Fi is the name of a popular wireless networking technology that uses radio waves to
provide wireless high-speed Internet and network connections
• Wi-Fi follows the IEEE 802.11 standard
• Wi-Fi is intended for network communication and it supports Internet Protocol (IP) based
communication
• Wi-Fi based communications require an intermediate agent called Wi-Fi router/Wireless
Access point to manage the communications.
• The Wi-Fi router is responsible for restricting the access to a network, assigning IP address
to devices on the network, routing data packets to the intended devices on the network.
• Wi-Fi enabled devices contain a wireless adaptor for transmitting and receiving data in the
form of radio signals through an antenna.
• Wi-Fi operates at 2.4GHZ or 5GHZ of radio spectrum and they co-exist with other ISM
band devices like Bluetooth.
• A Wi-Fi network is identified with a Service Set Identifier (SSID). A Wi-Fi device can
connect to a network by selecting the SSID of the network and by providing the credentials
if the network is security enabled
• Wi-Fi networks implements different security mechanisms for authentication and data
transfer.
• Wireless Equivalency Protocol (WEP), Wireless Protected Access (WPA) etc., are some
of the security mechanisms supported by Wi-Fi networks in data communication.
4. ZIGBEE:
• Zigbee is an IEEE 802.15.4-based specification for a suite of high level communication
protocols used to create personal area networks with small, low-power digital radios, such
as for home automation, medical device data collection, and other low-power low-
bandwidth needs, designed for small scale projects which need wireless connection.
• Hence, zigbee is a low-power, low data rate, and close proximity (i.e., personal area)
wireless ad hoc network.
• The technology defined by the zigbee specification is intended to be simpler and less
expensive than other wireless personal area networks (WPANs), such as Bluetooth or Wi-
Fi.
• Applications include wireless light switches, electrical meters with in-home-displays,
traffic management systems, and other consumer and industrial equipment that require
short-range low- rate wireless data transfer.
• Its low power consumption limits transmission distances to 10– 100 meters line-of-sight,
depending on power output and environmental characteristics.
• Zigbee devices can transmit data over long distances by passing data through a mesh
network of intermediate devices to reach more distant ones.
• Zigbee devices falls under any one of the following zigbee device cetagiries,
1. Zigbee Coordinator:
The zigbee coordinator acts as the root of the zigbee network.
The ZC is responsible for initiating the Zigbee network and it has the capability to store
information about the network.
2. Zigbee Router:
Responsible for passing information from device to another device or to another ZR.
3. Zigbee end device:
End device containing zigbee functionality for data communication. It can talk only
with a ZR or ZC and doesn’t have the capability to act as a mediator for transferring
data from one device to another.
o Zigbee supports an operating distance of up to 100 metres at a data rate of 20 to
250 Kbps.
5. General Packet Radio Service(GPRS):
• General Packet Radio Service (GPRS) is a packet oriented mobile data service on the
2G and 3G cellular communication system's global system for mobile communications
(GSM).
• GPRS was originally standardized by European Telecommunications Standards Institute
(ETSI) GPRS usage is typically charged based on volume of data transferred, contrasting
with circuit switched data, which is usually billed per minute of connection time.
• Sometimes billing time is broken down to every third of a minute. Usage above the bundle
cap is charged per megabyte, speed limited, or disallowed.
Services offered:
• GPRS extends the GSM Packet circuit switched data capabilities and makes the following
services possible:
1. SMS messaging and broadcasting
2. "Always on" internet access
3. Multimedia messaging service (MMS)
4. Push-to-talk over cellular (PoC)
5. Instant messaging and presence-wireless village Internet applications for smart devices
through wireless application protocol (WAP).
6. Point-to-point (P2P) service: inter-networking with the Internet (IP).
7. Point-to-multipoint (P2M) service: point-to- multipoint multicast and point-to-
multipoint group calls.
Reset Circuit:
• The reset circuit is essential to ensure that the device is not operating at a voltage level
where the device is not guaranteed to operate, during system power ON.
• The reset signal brings the internal registers and the different hardware systems of the
processor/controller to a known state and starts the firmware execution from the reset
vector.
• The reset signal can be either
1. Active high :The processor undergoes reset when the reset pin of the processor is at
logic high
2. Active low: The processor undergoes reset when the reset pin of the processor is at
logic low.
• Since the processor operation is synchronized to a clock signal, the reset pulse should be
wide enough to give time for the clock oscillator to stabilize before the internal reset state
starts.
• Some microprocessors/controllers contain built-in internal reset circuitry and they don’t
require external reset circuitry.
• The reset pulse width can be adjusted by changing the resistance value R and capacitance
value C.
Brown-out Protection Circuit:
• The brown-out protection circuit prevents the processor/controller from unexpected
program execution behavior when the supply voltage to the processor/controller falls below
a specified voltage.
• It is essential for battery powered devices since greater chances for voltage drops below
threshold.
Oscillator:
• The Oscillator unit generates clock signals for synchronizing the operations of the
processor.
• The speed of the operation of a processor is primarily dependent on the clock.
• Certain processor/controllers contain built in oscillators.
• Total system power consumption is directly proportional to the clock frequency.
• Accuracy of program execution depends on the accuracy of the clock signal.
• The RTC chip contains a microchip for holding the time and date related information and
backup battery cell for functioning in the absence of power, in a single IC package.
• The RTC chip is interfaced to the processor or controller of the embedded system. For
Operating System based embedded devices, a timing reference is essential for
synchronizing the operations of the OS kernel.
Watchdog Timer:
• A watchdog is to monitor the firmware execution and reset the system
processor/microcontroller when the program execution hangs up or generates an Interrupt
in case the execution time for a task is exceeding the maximum allowed limit.
• If the firmware execution doesn’t complete due to malfunctioning, within the time required
by the watchdog to reach the maximum count, the counter will generate a reset pulse and
this will reset the processor (if it is connected to the reset line of the processor).
• Most of the processors implement watchdog as a built-in component and provides status
register to control the watchdog timer (like enabling and disabling watchdog functioning)
and watchdog timer register for writing the count value. If the processor/controller doesn’t
contain a built in watchdog timer, the same can be implemented using an external watchdog
timer IC circuit.
PCB and Passive Components:
• Printed Circuit Board (PCB) is the backbone of every embedded system. After finalizing
the components and the inter-connection among them, a schematic design is created and
according to the schematic PCB is fabricated.
• PCS acts as a platform for mounting all the necessary components as per the design
requirement.
• Also it acts as a platform for testing your embedded firmware. You can also find some
passive electronic components like resistor, capacitor, diodes, etc. on your board.
• They are the co-workers of various chips contained in your embedded hardware.
• They are very essential for the proper functioning of your embedded system.
Software Architecture:
Embedded firmware:
• Embedded firmware refers to the control algorithm and/or the configuration settings that
an developer dumps into the code memory of the embedded system.
• It is an un-avoidable part of an embedded system.
• There are various methods available for developing the embedded firmware.
• They are listed below:
1. Write the program in high level languages like Embedded C/C++ using an Integrated
Development Environment.
2. Write the program in Assembly language using the instructions supported by your
application’s target processor/controller.
Operating System Basics:
• The operating system provides an infrastructure to control applications and manage
hardware system resources.
• Many embedded systems do not require a full operating system.
• Divide operating systems into two main categories:
1. Real-time operating systems (RTOSs) and
2. Platform operating systems.
1. Real-time operating systems (RTOSs):
• RTOSs provide guaranteed response times to events.
• Different operating systems have different amounts of control over the system response
time.
1. A hard real-time application requires a guaranteed response to work at all.
2. A soft real-time application requires a good response time, but the performance
degrades more gracefully if the response time overruns.
2. Platform Operating System:
• Platform operating systems require a memory management unit to manage large, non-real
time applications and tend to have secondary storage.
• The Linux operating system is a typical example of a platform operating system.
• This requirement dictates that an embedded system must perform fast enough to fulfill its
timing requirements.
• Typically, the more deadlines to be met-and the shorter the time between them-the faster
the system's CPU must be.
4. Compactness
• Application design constraints and cost constraints help determine how compact an
embedded system can be.
• For example, a cell phone clearly must be small, portable, and low cost.
• These design requirements limit system memory, which in turn limits the size of the
application and operating system.
5. Scalability
• Because RTOSes can be used in a wide variety of embedded systems, they must be able to
scale up or down to meet application-specific requirements.
• Depending on how much functionality is required, an RTOS should be capable of adding
or deleting modular components, including file systems and protocol stacks.
Embedded System Software:
• An embedded system needs software to drive it.
• The software components can run from ROM or RAM. ROM code that is fixed on the
device is called firmware.
• Figure shows four typical software components required to control an embedded device.
• Diagnostic code tests the system by exercising the hardware target to check if the target is
in working order.
• It also tracks down standard system-related issues.
• The primary purpose of diagnostic code is fault identification and isolation.
3. Booting:
• Booting involves loading an image and handing control over to that image.
• Booting an image is the final phase, but first you must load the image.
• Loading an image involves anything from copying an entire program including code and
data into RAM.
2. Device Drivers:
• They provide a consistent software interface to the peripherals on the hardware device.
3. Applications:
• ARM processors are found in numerous market segments, including networking,
automotive, mobile and consumer devices, mass storage, and imaging.