ESD Module1 Notes
ESD Module1 Notes
(BEC601)
VI SEMESTER
Prepared by
Ms. Arpitha T G
Assistant Professor
Department of Electronics & Communication
MODULE 1
Text Book:
1. Shibu K V, “Introduction to Embedded Systems”, Tata McGraw Hill Education,
Private Limited, 2nd Edition.
Introduction to Embedded Systems MODULE 1
E.g. Electronic Toys, Mobile Handsets, Washing Machines, Air Conditioners, Automotive Control
Units, Set Top Box, DVD Player etc.
Less/not at all tailored towards reduced operating Highly tailored to take advantage of the power
power requirements, options for different levels of saving modes supported by hardware and Operating
power management. System
Response requirements are not time critical For certain category of embedded systems like
mission critical systems, the response time
requirement is highly critical
Need not be deterministic in execution behavior Execution behavior is deterministic for certain type
of embedded systems like “Hard Real Time‟
systems
1. Data Collection/Storage/Representation
Embedded systems designed for the purpose of data collection performs acquisition of data from the
external world.
Data collection is usually done for storage, analysis, manipulation, and transmission. The term “data”
refers to all kinds of information, viz. text, voice, image, video, electrical signals and any other
measurable quantities.
The collected data may be stored directly in the system or may be transmitted to some other systems or
it may be processed by the system or it may be deleted instantly after giving a meaningful representation.
2. Data Communication
Embedded Data communication systems are deployed in applications ranging 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 wireless medium.
Wireline medium was the most common choice in all olden days embedded systems. As technology is
changing, wireless medium is becoming the de-facto standard for data communication in embedded
systems.
A wireless medium offers cheaper connectivity solutions and make the communication link free from
the hassle of wire bundles. Data can either be transmitted by analog means or by digital means. Modern
industry trends are settling towards digital communication.
The data communication can happen through a wired interface (like Ethernet, RS-232C/ USB/
IEEE1394 etc) or wireless interface (like Wi-Fi, GSM,/GPRS, Bluetooth, ZigBee etc)
Network hubs, Routers, switches, Modems etc are typical examples for dedicated data
transmission embedded systems
4. Monitoring
Embedded systems coming under this category are specifically designed for monitoring purpose
They are used for determining the state of some variables using input sensors
They cannot impose control over variables.
Electro Cardiogram (ECG) machine for monitoring the heart beat of a patient is a typical example for
this
The sensors used in ECG are the different Electrodes connected to the patient’s body
Measuring instruments like Digital CRO, Digital Multi meter, Logic Analyzer etc used in Control &
Instrumentation applications are also examples of embedded systems for monitoring purpose
5. Control
Embedded systems with control functionalities are used for imposing control over some variables according
to the changes in input variables
Embedded 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 input variable to put
an impact on the controlling variable to bring the controlled variable to the specified range
Air conditioner for controlling room temperature is a typical example for embedded system with Control
functionality
Air conditioner contains a room temperature sensing element (sensor) which may be a thermistor and a
handheld unit for setting up (feeding) the desired temperature
The air compressor unit acts as the actuator. The compressor is controlled according to the current room
temperature and the desired temperature set by the end
Microprocessor
A silicon chip representing a Central Processing Unit (CPU), which is capable of performing
arithmetic as well as logical operations according to a pre-defined set of Instructions, which is specific
to the manufacturer
In general, the CPU contains the Arithmetic and Logic Unit (ALU), Control Unit and Working
registers
Microprocessor is a dependent unit and it requires the combination of other hardware like Memory,
Timer Unit, and Interrupt Controller etc for proper functioning.
Intel claims the credit for developing the first Microprocessor unit Intel 4004, a 4 bit processor which
was released in Nov 1971
Microcontroller:
A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and General- purpose
Register Arrays, On Chip ROM/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 (like Intel 8051, designed for generic applications and
domains) or application specific (Like Automotive AVR from Atmel Corporation. Designed
specifically for automotive applications)
Since a 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
Texas Instruments TMS 1000 is considered as the world‟s first microcontroller
Microprocessor Vs Microcontroller
Microprocessor Microcontroller
A silicon chip representing a Central A microcontroller is a highly integrated chip
Processing Unit (CPU), which is capable of that contains a CPU, scratch pad RAM,
performing arithmetic as well as logical Special and General-purpose Register
operations according to a pre-defined set of Arrays, On Chip ROM/FLASH memory for
Instructions program storage, Timer and Interrupt control
units and dedicated I/O ports
It is a dependent unit. It requires the It is a self-contained unit and it doesn’t
combination of other chips like Timers, require external Interrupt Controller, Timer,
Program and data memory chips, Interrupt UART etc. for its functioning
controllers etc. for functioning
Most of the time general purpose in design Mostly application oriented or domain
and specific
operation
Doesn’t contains a built in I/O port. The I/O Most of the processors contain multiple built-
Port functionality needs to be implemented in I/O ports which can be operated as a single
with the help of external Programmable 8 or 16- or 32-bit Port or as individual port
Peripheral Interface Chips like 8255 pins
Targeted for high end where Targeted for embedded market where
market
performance is important performance is not so critical (At present this
demarcation is invalid)
Limited power saving options compared to Includes lot of power saving features
microcontrollers
General Purpose Processor (GPP) Vs Application Specific Instruction Set Processor (ASIP)
General Purpose Processor or GPP is a processor designed for general computational tasks
GPPs are produced in large volumes and targeting the general market. Due to the high- volume
production, the per unit cost for a chip is low compared to ASIC or other specific ICs
A typical general-purpose processor contains an Arithmetic and Logic Unit (ALU) and Control Unit
(CU)
Application Specific Instruction Set processors (ASIPs) are processors with architecture and
instruction set optimized to specific domain/application requirements like Network processing,
Automotive, Telecom, media applications, digital signal processing, control applications etc.
ASIPs fill the architectural spectrum between General Purpose Processors and Application Specific
Integrated Circuits (ASICs)
The need for an ASIP arises when the traditional general purpose processor are unable to meet the
increasing application needs
Some Microcontrollers (like Automotive AVR, USB AVR from Atmel), System on Chips, Digital
Signal Processors etc are examples of Application Specific Instruction Set Processors (ASIPs)
ASIPs incorporate a processor and on-chip peripherals, demanded by the application requirement,
program and data memory
each of them operates simultaneously to increase the execution speed. It also includes
multiple hardware shifters for shifting operands and saves execution time.
I/O Unit: It acts as an interface between the outside world and DSP. It is responsible for
capturing signals
Audio video signal processing, telecommunication and multimedia applications are typical examples
where DSP is employed
Separate buses for Instruction and Data Single shared bus for Instruction and Data
fetching fetching
Easier to Pipeline, so high performance can Low performance Compared to Harvard
be achieved Architecture
Comparatively high cost Cheaper
No memory alignment problems Allows self-modifying codes
Since data memory and program memory are stored Since data memory and program memory are
physically in different locations, no chances for stored physically in same chip, chances for
accidental corruption of program accidental corruption of program
memory memory
Little-endian means the lower-order byte of the data is stored in memory at the lowest address, and
the higher-order byte at the highest address. (The little end comes first)
For example, 4 byte long integer Byte3 Byte2 Byte1 Byte0 will be stored in the memory as shown
below:
The first instruction load R1, x loads the register R1 with the content of memory location x, the second
instruction load R2, y loads the register R2 with the content of memory location y. The instruction add R3,
R1, R2 adds the content of registers R1 and R2 and stores the result in register R3. The next instruction
store R3, z stores the content of register R3 in memory location z.
Instruction Pipelining
The conventional instruction execution by the processor follows the fetch-decode-execute sequence.
Where the ‘fetch’ part fetches the instruction from program memory or code memory and the decode
part decodes the instruction to generate the necessary control signals.
The execute stage reads the operands perform ALU operations and stores the result. In conventional
program execution, the fetch and decode operations are performed in sequence.
ASIC integrates several functions into a single chip and thereby reduces the system development
cost. Most of the ASICs are proprietary products. As a single chip, ASIC consumes very small area in
the total system and thereby helps in the design of smaller systems with high capabilities/functionalities.
ASICs can be pre-fabricated for a special application or it can be custom fabricated by using the
components from a re-usable “building block‟ library of components for a particular customer
application
Fabrication of ASICs requires a non-refundable initial investment (Non-Recurring Engineering (NRE)
charges) for the process technology and configuration expenses
If the Non-Recurring Engineering Charges (NRE) is born by a third party and the Application Specific
Integrated Circuit (ASIC) is made openly available in the market, the ASIC is referred as Application
Specific Standard Product (ASSP)
The ASSP is marketed to multiple customers just as a general-purpose product, but to a smaller number
of customers since it is for a specific application.
Some ASICs are proprietary products, the developers are not interested in revealing the internal details
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 are therefore ideal for critical control
applications.
CPLDs such as the Xilinx Cool Runner series also require extremely low amounts of power and are very
inexpensive, making them ideal for cost-sensitive, battery-operated, portable applications such as mobile
phones and digital handheld assistants.
Advantages of PLDs:
(1) PLDs offer customers much more flexibility during the design cycle because design iterations are
simply a matter of changing the programming fi le, and the results of design changes can be seen
immediately in working parts.
(2) PLDs do not require long lead times for prototypes or production parts–the PLDs are already on a
distributor’s shelf and ready for shipment.
(3) PLDs do not require customers to pay for large NRE costs and purchase expensive mask sets–PLD
suppliers incur those costs when they design their programmable devices and are able to amortize
those costs over the multi-year lifespan of a given line of PLDs.
(4) PLDs allow customers to order just the number of parts they need, when they need them, allowing them
to control inventory.
(5) PLDs can be reprogrammed even after a piece of equipment is shipped to a customer. To do this, they
simply upload a new programming fi le to the PLD, via the Internet, creating new hardware logic in
the system.
Commercial off the Shelf Component (COTS)
A Commercial off-the-shelf (COTS) product is one which is used ‘as-is’
COTS products are designed in such a way to provide easy integration and interoperability with
existing system components
Typical examples for the COTS hardware unit are Remote Controlled Toy Car control unit
including the RF Circuitry part, High performance, high frequency microwave electronics (2 to 200
GHz), High bandwidth analog-to-digital converters, Devices and components for operation at very
high temperatures, Electro-optic IR imaging arrays, UV/IR Detectors etc
A COTS component in turn contains a General Purpose Processor (GPP) or Application Specific
Instruction Set Processor (ASIP) or Application Specific Integrated Chip (ASIC)/Application
Specific Standard Product (ASSP) or Programmable Logic Device (PLD)
The major advantage of using COTS is that they are readily available in the market, cheap and a
Sir M Visvesvaraya Institute of Technology 15 2025-26
Introduction to Embedded Systems MODULE 1
Memory:
Memory is an important part of an embedded system. The memory used in embedded system
can be either Program Storage Memory (ROM) or Data memory (RAM).
Certain Embedded processors/controllers contain built in program memory and data memory
and this memory is known as on-chip memory
Certain Embedded processors/controllers do not contain sufficient memory inside the chip and
requires external memory called off-chip memory or external memory.
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.
Different mechanisms are used for the masking process of the ROM, like
Creation of an enhancement or depletion mode transistor through channel implant
By creating the memory cell either using a standard transistor or a high threshold
transistor.
In the high threshold mode, the supply voltage required to turn ON the transistor is
above the normal ROM IC operating voltage.
This ensures that the transistor is always off and the memory cell stores always logic 0.
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
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 nichrome or polysilicon wires arranged in a matrix; these wires can be
functionally viewed as fuses.
It is programmed by a 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” whereas fuses which are
blown/burned represents a logic “0”. The default state is logic “1”.
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.
Sensor
A transducer device which converts energy from one form to another for any measurement
or control purpose. Sensors acts as input device
Eg. Hall Effect Sensor which measures the distance between the cushion and magnet in the
Smart Running shoes from adidas
Example: IR, humidity, PIR (passive infra-red), 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
Eg. Micro motor actuator which adjusts the position of the cushioning element in the Smart
Running shoes from adidas.
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
The current through each segment can be limited by connecting a current limiting resistor
to the anode or cathode of each segment
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.
Piezoelectric buzzers are available in two types. ‘Self-driving’ and ‘External driving’. The ‘Self-driving’
circuit contains all the necessary components to generate sound at a predefined tone.
It will generate a tone on applying the voltage. 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/control. Depending on the
driving current requirements, the piezo buzzer can also be interfaced using a transistor-based driver
circuit as in the case of a ‘Relay’.
In the ‘Push to Break’ configuration, the switch is 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
‘open’ (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. In embedded application push button is generally
used as reset and start switch and pulse generator.
The Push button is normally connected to the port pin of the host processor/ controller. Depending on
the way in which the push button interfaced to the controller, it can generate either a ‘HIGH’ pulse or a
‘LOW’ pulse. Figure 2.4 illustrates how the push button can be used for generating ‘LOW’ and ‘HIGH’
pulses.
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. Device/board level communication interface (Onboard Communication Interface)
2. Product level communication interface (External Communication Interface)
1. Device/board level communication interface (Onboard Communication Interface)
The communication channel which interconnects the various components within an
embedded product is referred as Device/board level communication interface (Onboard
Communication Interface)
Examples: Serial interfaces like I2C, SPI, UART, 1-Wire etc and Parallel bus interface.
The external communication interface can be either wired media or wireless media and it can
be a serial or parallel interface.
I2C bus is a shared bus system to which many number of I2C devices can be connected. Devices
connected to the I2C bus can act as either “Master‟ device or “Slave‟ device.
The “Master‟ device is responsible for controlling the communication by initiating/terminating data
transfer, sending data and generating necessary synchronization clock pulses.
Slave devices wait for the commands from the master and respond upon receiving the commands. Master
and “Slave‟ devices can act as either transmitter or receiver. Regardless whether a master is acting as
transmitter or receiver, the synchronization clock signal is generated by the “Master‟ device only. I2C
supports multi masters on the same bus.
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. Clock pulses are generated at the SCL line for synchronizing the bit reception by the slave device.
5. The MSB of the data is always transmitted first.
6. The data in the bus is valid during the “HIGH‟ period of the clock signal.
7. In normal data transfer, the data line only changes state when the clock is low.
8. Master waits for the acknowledgement bit from the slave device whose address is sent on the
bus along with the Read/Write operation command.
9. Slave devices connected to the bus compares the address received with the address assigned to
them
10. The Slave device with the address requested by the master device responds by sending an
acknowledge bit (Bit value =1) over the SDA line
11. 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‟.
12. If the requested operation is “Read from device‟, the slave device sends data to the master
over the SDA line.
13. 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
14. Master terminates the transfer by pulling the SDA line “HIGH‟ when the clock line SCL is
at logic “HIGH‟ (Indicating the “STOP‟ condition).
UART based serial data transmission doesn’t require a clock signal to synchronize the transmitting end
and receiving end for transmission. Instead it relies upon the pre-defined agreement between the
transmitting device and receiving device.
The serial communication settings (Baud rate, number of bits per byte. parity, number of start bits and
stop bit and flow control) for both transmitter and receiver should be set as identical. The start and stop
of communication is indicated through inserting special bits in the data stream. While sending a byte of
data, a start bit is added first and a stop bit is added at the end of the bit stream.
The least significant bit of the data byte follows the ‘start’ bit.
The ‘start’ bit informs the receiver that a data byte is about to arrive.
The receiver device starts polling its received line’ as per the baud rate settings.
If the baud rate is ‘x’ bits per second, the time slot available for one bit is l /x seconds. The receiver unit
polls the receiver line at exactly half of the time slot available for the bit.
If parity is enabled for communication, the UART of the transmitting device adds a parity bit (bit value
is l for odd number of ls in the transmitted bit stream and 0 for even number of is the UART of the
receiving device calculates the parity of the bits received and compares it with the received parity bit
for error checking.
The UART of the receiving device discards the ‘Start’, ‘Stop’ and ‘Parity' bit from the received bit
stream and converts the received serial bit data to a word (In the case of 8 bits/byte, the byte is formed
with the received 8 bits with the first received bit as the LSB and last received data bit as MSB).
For proper communication, the ‘Transmit line’ of the sending device should be connected to the
‘Receive line’ of the receiving device. Figure illustrates the same.
In addition to the serial data transmission function, UART provides hardware handshake receiver
support for controlling the serial data now. UART chips are available from different semiconductor
manufacturers. National Semiconductor’s 8250 UART chip is considered as the standard setting
UART. It was used in the original IBM PC.
Every 1-wire device contains a globally unique 64bit identification number stored within it. The unique
identification number can be used for addressing individual devices present on the bus in case there are
multiple slave devices connected to the 1-wire bus.
The identifier has three parts: an 8bit family code, a 48bit serial number and an 8-bit CRC computed from
the first 56 bits.
The sequence of operation for communicating with a 1-wire slave device is listed below:
1. The master device sends a ‘Reset’ pulse on the l-wire bus.
2. The slave device(s) present on the bus respond with a ‘Presence’ pulse.
3. The master device sends a ROM command (Net Address Command followed by the 64bit address of the
device). This addresses the slave device(s) to which it wants to initiate a communication.
4. The master device sends a read/write function command to read/write the internal memory or register of
the slave device.
5. The master initiates a Read data/Write data from the device or to the device
All communication over the l-wire bus is master initiated. The communication over the l- wire
bus divided into timeslots of 60 microseconds. The ‘Reset’ pulse occupies 8 time slots.
For starting a communication, the master asserts the reset pulse by pulling the 1-wire bus ‘LOW’
for at least 8 time slots ‘slave’ device is present on the bus and is ready for communication it
should respond to the master with a ‘Presence’ pulse, within 60us of the release of the ‘Reset’
pulse by the master.
The slave device(s) responds with a ‘Presence’ pulse by pulling the l-wire bus ‘LOW’ for a
minimum of 1 time slot (60 us).
For writing a bit value of 1 on the l-wire bus, the bus master pulls the bus for l to l5µs and then
releases the bus for the rest of the time slot. A bit value of ‘0’ is written on the bus by master
pulling the bus for a minimum of 1 time slot (60µs) and a maximum of 2 time slots (120µs). To
Read a bit from the slave device, the master pulls the bus ‘LOW’ for l to 15us. If the slave wants
to send a bit value ‘1’ in response to the read request from the master, it simply releases the bus
for the rest of the time slot. If the slave wants to send a bit value ‘0’, it pulls the bus ‘LOW’ for
the rest of the time slot.
Parallel interface
The on-board parallel interface is normal used for communicating with peripheral devices which are
memory mapped to the host of the system.
The host processor/controller of the embedded system contains a parallel bus and the device which
supports parallel bus can directly connect to this bus system.
The communication through the parallel bus is controlled by the control signal interface between the
device and the host.
The ‘Control Signals’ for communication includes ‘Read/ Write’ signal and device select signal. The
device normally contains a device select line and the device becomes active only when this line is
asserted by the host processor.
The direction of data transfer (Host to Device or Device to Host) can be controlled through the control
signal lines for ‘Read’ and ‘Write’. Only the host processor has control over the ‘Read’ and ‘Write’
control signals.
The device is normally memory mapped to the host processor and a range of address is assigned to
it. An address decoder circuit is used for generating the chip select signal for the device.
When the address selected by the processor is within the range assigned for the device, the decoder
circuit activates the chip select line and thereby the device becomes active.
The processor then can read or write from or to the device by asserting the corresponding control line
(RD and WR respectively). Strict timing characteristics are followed for parallel communication.
parallel communication is host processor initiated.
Sir M Visvesvaraya Institute of Technology 32 2025-26
Introduction to Embedded Systems MODULE 1
If a device wants to initiate the communication, it can inform the same to the processor through
interrupts. For this, the interrupt line of the device is connected to the interrupt line of the processor and
the core, responding interrupt is enabled in the host processor. The width of the parallel interbank is
determined by the data bus width of the host processor. It can be 4bit, 8bit, 16bit, 32bit or 64bit etc. The
bus width supported by the device should be same as that of the host processor.
The bus interface diagram shown in Figure illustrates the interfacing of devices through parallel
interface.
1. RS-232C:
RS-232 C (Recommended Standard number 232, revision C from the Electronic Industry Association)
is a legacy, full duplex, wired, asynchronous serial communication interface
RS-232 extends the UART communication signals for external data communication.
UART uses the standard TTL/CMOS logic (Logic “High‟ corresponds to bit value 1 and Logic “LOW‟
corresponds to bit value 0) for bit transmission whereas RS232 use the EIA standard for bit transmission
In EIA standard, logic “0‟ is known as “Space‟ and logic “1‟ as “Mark‟.
The RS232 interface define various handshaking and control signals for communication apart
from the “Transmit‟ and “Receive‟ signal lines for data communication
RS-232 supports two different types of connectors, namely; DB-9: 9-Pin connector and DB-25:
25-Pin connector.
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.
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.
Ring Indicator (RI) is a modem specific signal line for indicating an incoming call on the
telephone line.
As per the EIA standard RS-232 C supports baudrates up to 20Kbps (Upper limit 19.2Kbps).
The commonly used baudrates by devices are 300bps, 1200bps, 2400bps, 9600bps,
11.52Kbps and 19.2Kbps.
The maximum operating distance supported in RS-232 communication is 50 feet at the highest
supported baudrate.
Embedded devices contain a UART for serial communication and they generate signal levels
conforming to TTL/CMOS logic.
A level translator IC like MAX 232 from Maxim Dallas semiconductor is used for converting
the signal lines from the UART to RS-232 signal lines for communication.
On the receiving side the received data is converted back to digital logic level by a converter IC.
USB uses differential signals for data transmission. It improves the noise immunity.
USB interface has the ability to supply power to the connecting devices. Two connection lines (Ground
and Power) of the USB interface are dedicated for carrying power. It can supply power up to 500 mA at
5 V. It is sufficient to operate low power devices. Mini and Micro USB connectors are available for small
form factor devices like portable media player.
Each USB contains a Product ID (PID) and a Vendor ID (VID). The PID & VID are embedded into the
USB chip by USB device manufacturer. The VID for a device is supplied by USB standards forum. PID
& VID are essential for loading the drivers corresponding to a USB device for communication
USB supports four different types of data transfers, namely; Control, Bulk, Isochronous and Interrupt.
Control transfer is used by USB system software to query, configure and issue commands to the USB
device.
Bulk transfer is used for sending a block of data to a device. Bulk transfer supports error checking
and correction. Transferring data to a printer is an example for bulk transfer.
Isochronous data transfer is used for real-time data communication. In Isochronous transfer, data is
transmitted as streams in real-time. Isochronous transfer doesn’t support error checking and re-
transmission of data in case of any transmission loss. All streaming devices like audio devices and medical
equipment for data collection make use of the isochronous transfer.
Interrupt transfer is used for transferring small amount of data. Interrupt transfer mechanism makes
use of polling technique to see whether the USB device has any data to send. The frequency of polling is
determined by the USB device and it varies from 1 to 255 milliseconds. Devices like Mouse and
Keyboard, which transmits fewer amounts of data, uses interrupt transfer.
LLINK is the 1394 implementation from Sony Corporation ([Link] and Lynx is the
implementation from Texas Instruments [Link]).
1394 supports peer-to-peer connection and point-to-multipoint communication allowing 63
devices to be connected on the bus in a nee topology.
1394 is a wired serial interface and it can support a cable length of up to 15 feet for interconnection.
The 1394 standard has evolved a lot from the first version IEEE 1394-1995 released in 1995 to the
recent version IEEE 1394-2008 released in June 2008. The 1394 standard supports a data rate of 400
to 3200Mbits/second.
The IEEE 1394 uses differential data transfer (The information is sent using differential signals through
a pair of twisted cables. It increases the noise immunity) and the interface cable supports 3 types of
connectors, namely; 4-pin connector, 6-pin connector (alpha connector) and 9 pin connectors (beta
connector).
The 6 and 9 pin connectors carry power also to support external devices (In case an embedded device
is connected to a PC through an IEEE 1394 cable with 6 or 9 pin connector interface, it can operate
from the power available through the connector.) It can supply unregulated power in the range of 24 to
30V. (The Apple implementation is for battery operated devices and it can supply a voltage in the range
9 to 12V.)
There are two differential data transfer lines A and B per connector. In a 1394 cable, normally the
differential lines of A are connected to B (TPA+ to TPB+ and TPA-to TPB~) and vice versa.
1394 is a popular communication interface for connecting embedded devices like Digital Camera,
Camcorder, and Scanners to desktop computers for data transfer and storage.
Unlike USB interface (Except USB OTG), IEEE 1394 doesn‘t require a host for communicating
between devices.
For example, you can directly connect a scanner with a printer for printing. The data rate supported by
1394 is far higher than the one supported by USB2.0 interface.
The 1394 hardware implementation is much costlier than USB implementation.
1. INFRARED:
Infrared ( IrDA) is a serial, half duplex, line of sight based wireless technology for data communication
between devices. It is in use from the olden days of communication and you may be very familiar with it.
The remote control of your TV, VCD player, etc. works on Infrared data communication principle.
Infrared communication technique uses infrared waves of the electromagnetic spectrum for transmitting
the data.
IrDA supports point-point and point-to-multipoint communication, provided all devices involved in the
communication are within the line of sight. The typical communication range for IrDA lies in the range
10 cm to 1 m.
The range can be increased by increasing the transmitting power of the IR device. IR supports data rates
ranging from 9600bits/second to 16Mbps.
Depending on the speed of data transmission IR is classifi ed into Serial IR (SIR), Medium IR (MIR),
Fast IR (FIR), Very Fast IR (VFIR), Ultra Fast IR (UFIR) and GigaIR.
SIR supports transmission rates ranging from 9600bps to 115.2kbps.
MIR supports data rates of 0.576Mbps and 1.152Mbps.
FIR supports data rates up to 4Mbps.
VFIR is designed to support high data rates up to 16Mbps.
The UFIR supports data rates up-to 96Mbps, whereas the GigaIR supports data rates 512 Mbps to 1
Gbps.
IrDA communication involves a transmitter unit for transmitting the data over IR and a receiver for
receiving the data. Infrared Light Emitting Diode (LED) is the IR source for transmitter and at the
receiving end a photodiode acts as the receiver.
Both transmitter and receiver unit will be present in each device supporting IrDA communication for
bidirectional data transfer. Such IR units are known as ‘Transceiver’.
Certain devices like a TV remote control always require unidirectional communication and so they
contain either the transmitter or receiver unit (The remote control unit contains the transmitter unit and
TV contains the receiver unit).
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 in the ISM and mobile devices, and
building personal area networks (PANs).
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.
Sir M Visvesvaraya Institute of Technology 38 2025-26
Introduction to Embedded Systems MODULE 1
Each channel has a bandwidth of 1 MHz. It usually performs 800 hops per second, with Adaptive
Frequency-Hopping (AFH) enabled.
Originally, Gaussian frequency-shift keying (GFSK) modulation was the only modulation scheme
available. Since the introduction of Bluetooth 2.0+EDR, π/4-DQPSK (Differential Quadrature
Phase Shift Keying) and 8DPSK modulation may also be used between compatible devices.
Bluetooth is a packet-based protocol with a master- slave structure. One master may communicate
with up to seven slaves in a piconet. All devices share the master's clock. Packet exchange is based
on the basic clock, defined by the master, which ticks at 312.5 μs intervals.
A master BR/EDR Bluetooth device can communicate with a maximum of seven devices in a
piconet (an ad-hoc computer network using Bluetooth technology), though not all devices reach
this maximum.
The devices can switch roles, by agreement, and the slave can become the master (for example, a
headset initiating a connection to a phone necessarily begins as master—as initiator of the
connection—but may subsequently operate as slave).
3. Wi-Fi:
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
Sir M Visvesvaraya Institute of Technology 39 2025-26
Introduction to Embedded Systems MODULE 1
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.
ZigBee Coordinator (ZC)/Network 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.
ZigBee Router (ZR)/ Full function Device (FFD) Responsible for passing information from device to
another device or to another ZR.
ZigBee End Device (ZED)/Reduced Function Device (RFD) 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.
The diagram shown in Fig. 3.2 gives an overview of ZC, ZED and ZR in a ZigBee network.
2. Data is sent as packets. The transmitting device splits the data into several related packets. At the
receiving end the data is re-constructed by combining the received data packets
4. In GPRS communication, the radio channel is concurrently shared between several users instead of
dedicating a radio channel to a cell phone user. The GPRS communication divides the channel into 8
timeslots and transmits data over the available channel
5. GPRS supports Internet Protocol (IP), Point to Point Protocol (PPP) and X.25 protocols for
communication.
6. GPRS is mainly used by mobile enabled embedded devices for data communication. The device should
support the necessary GPRS hardware like GPRS modem and GPRS radio
7. GPRS is an old technology and it is being replaced by new generation data communication techniques
like EDGE, High Speed Downlink Packet Access (HSDPA) etc which offers higher bandwidths for
communication
Services offered:
GPRS extends the GSM Packet circuit switched data capabilities and makes the
following services possible:
SMS messaging and broadcasting
"Always on" internet access
Multimedia messaging service (MMS)
Push-to-talk over cellular (PoC)
Embedded Firmware
The control algorithm (Program instructions) and or the configuration settings that an embedded
system developer dumps into the code (Program) memory of the embedded system The embedded
firmware can be developed in various methods like
1. Write the program in high level languages like Embedded C/C++ using an Integrated
Development Environment (The IDE will contain an editor, compiler, linker, debugger,
simulator ) etc. IDEs (Keil) are different for different family of processors/controllers.
2. Write the program in Assembly Language using the Instructions Supported by your
application’s target processor/controller
The processor behavior may not be predictable if the supply voltage falls below the recommended
operating voltage. It may lead to situations like data corruption
A brown-out protection circuit holds the processor/controller in reset state, when the operating
voltage falls below the threshold, until it rises above the threshold voltage
Certain processors/controllers support built in brown-out protection circuit which monitors the
supply voltage internally
If the processor/controller doesn’t integrate a built-in brown-out protection circuit, the same can
be implemented using external passive circuits or supervisor ICs
3. Oscillator Unit
A microprocessor/microcontroller is a digital device made up of digital combinational and
sequential circuits
The instruction execution of a microprocessor/controller occurs in sync with a clock signal
The oscillator unit of the embedded system is responsible for generating the precise clock for the
processor
Fig 3.5: Oscillator circuitry using quartz crystal and quartz crystal oscillator
Certain processors/controllers integrate a built-in oscillator unit and simply require an external
ceramic resonator/quartz crystal for producing the necessary clock signals
Certain processor/controller chips may not contain a built-in oscillator unit and require the clock
pulses to be generated and supplied externally
Quartz crystal Oscillators are example for clock pulse generating device
If the firmware execution completes before the expiration of the watchdog timer the WDT can be stopped
from action
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.