EMBEDDED SYSTEM NOTES-Module I
EMBEDDED SYSTEM NOTES-Module I
EMBEDDED SYSTEM NOTES-Module I
EMBEDDED SYSTEM
• Based on Generation
• Based on Complexity & Performance Requirements
• Based on deterministic behaviour
• Based on Triggering
First Generation: The early embedded systems built around 8-bit microprocessors like 8085 and Z80
and 4-bit microcontrollers
Second Generation: Embedded Systems built around 16-bit microprocessors and 8 or 16-bit
microcontrollers.
Fourth Generation: Embedded Systems built around System on Chips (SoC’s), Reconfigurable
processors and multicore processors. It brings high performance, tight integration and miniaturization
into the embedded device market
Small Scale: The embedded systems using low performance and low cost 8 or 16 bit microprocessors/
microcontrollers. It is suitable for simple applications and where performance is not time critical. It
may or may not contain OS.
Medium Scale: Embedded Systems using medium performance, low cost 16 or 32 bit microprocessors
/ microcontrollers or DSPs. These are slightly complex in hardware and firmware. It may contain
GPOS/RTOS.
Soft Real time Systems: Missing a deadline may not be critical and can be tolerated to a certain
degree.
Hard Real time systems: Missing a program/task execution time deadline can have catastrophic
consequences (financial, human loss of life, etc.).
Event Triggered: Activities within the system (e.g., task run-times) are dynamic and depend upon
occurrence of different events.
Time triggered: Activities within the system follow a statically computed schedule (i.e., they are
allocated time slots during which they can take place) and thus by nature are predictable.
Each Embedded Systems is designed to serve the purpose of any one or a combination of the
following tasks.
• Data Collection/Storage/Representation
• Data Communication
• Data (Signal) Processing
• Monitoring
• Control
• Application Specific User Interface
Power Supply - Normally, a 5V power supply is required for the system, however, it can also range
from 1.8 to 3.3V.
ROM/RAM - ROM is called the code memory that stores the program code and is non-volatile. RAM
is called the data memory and is a volatile memory.
Timers/Counters- used to create time delays and count number of times of a particular event.
Communication Ports - Used to establish connection with other embedded systems. There are
several communication ports including USB, UART, USB, I2C, SPI, and RS-485
Output and Input – Sensors, switches and keypads are used as inputs. Monitors, LED display, 7
segment display, LCD etc are used as output devices.
Editor - The code you write in C and C++ programming languages will be saved in a text file in the
editor.
Compiler - A compiler is used to turn the written code into low-level machine language that the
machine can understand.
Assembler - difference between compiler and assembler is that the assembler converts assembly
language to machine language and on the other hand compiler converts a high-level language as C or
C++ to low-level language.
Emulator- The main task of the emulator is to make the embedded system act like a real system in a
simulation environment. Using an emulator, you’ll get an idea of how the code will function in real-
time.
Linker- Linker is a tool that takes one or more object files and combines them to develop a single
executable code.
Microprocessor- It is a general purpose digital computer CPU. It contains ALU, PC, SP, registers etc. It
does not contain I/O port, ROM, RAM, timer etc.
Digital Signal processors – Used specifically for signal processing applications. It is 2 to 3 times faster
than general purpose microprocessor in signal processing applications.
Programmable logic devices are used to implement logic functions. It is easily configured by the user
for specific applications.
It is used as replacement to general purpose logic chips. It integrates several functions to a single chip,
so reduces system development cost. Have high speed of operation.
It provides easy integration with existing system. They are readily available in the market. No need to
design the module yourself.
Classification of Memory
Some of the processors or controller contain built-in memory. It is called on-chip memory. Some of
them doesn’t have sufficient memory. So we need to use external memory. It is called off-chip memory.
ROM stands for read only memory. We can only read but cannot write on it. Information are stored
permanently during manufacturing. It is non volatile ie when the power is off data will not be lost.
MROM
• Masked ROM
• Oldest type of memory
• Programs are stored at the time of manufacturing
• It can’t be modified
PROM
• Programmable ROM
• It can be modified once by the user
• User buy a blank PROM and write content using PROM program
• It can be programmed only once and not erasable
EEPROM
Flash ROM
RAM
Sensors
Actuator
I/O Subsystem
The I/O subsystem of the embedded system give the interaction of embedded system with outside
world.
Optocoupler
A relay is an electrically operated switch. It consists of a set of input terminals for a single or multiple
control signals, and a set of operating contact terminals. Relays are used where it is necessary to
control a circuit by an independent low-power signal, or where several circuits must be controlled by
one signal.
Stepper Motor
It is a device which converts electrical energy to mechanical energy and generate a discrete motion by
applying a dc signal.
Based on coil winding, a two- phase stepper motor can be classified into two.
Communication Interface
It is a bidirectional half duplex two-wire serial bus that uses serial clock (SCL) and serial data (SDA)
wires to send and manage data between devices connected to the bus.
I2C is used to connect devices like microcontrollers, EEPROMs, I/O interfaces, and other peripheral
devices in an embedded system. A microcontroller is often used as the master device, and other
peripheral devices are used as slave devices. Because all communication takes place on only two wires,
all devices must have a unique address to identify it on the bus.
SPI (Serial Peripheral Interface) is a full duplex synchronous serial communication interface used for
short distance communications. It is usually used for communication between different modules in a
same device or PCB.
MISO (Master Input/Slave Output) – Line for the slave to send data to the master.
SS/CS (Slave Select/Chip Select) – Line for the master to select which slave to send data to.
In UART communication, two UARTs communicate directly with each other. The transmitting UART
converts parallel data from a controlling device like a CPU into serial form, transmits it in serial to the
receiving UART, which then converts the serial data back into parallel data for the receiving device.
Only two wires are needed to transmit data between two UARTs. Data flows from the Tx pin of the
transmitting UART to the Rx pin of the receiving UART.
UARTs transmit data asynchronously, which means there is no clock signal to synchronize the data
transfer. The transmitting UART adds start and stop bits to the data packet being transferred. UART is
being used in many applications like GPS Receivers, Bluetooth Modules, GSM and GPRS Modems,
Wireless Communication Systems, RFID based applications etc.
1. RS232 protocol
In RS232 protocol output is Logic 0 when the voltage is between +3 V and +15 V and is Logic 1 when
the voltage is between -3 V to -15 V.
2. USB
USB is a wired high speed serial bus for data communication. It connects peripheral devices including
digital cameras, mice, keyboards, printers, scanners, media devices, external hard drives, and flash
drives.
3. Bluetooth
Bluetooth is a Wireless Personal Area Network (WPAN) technology and is used for exchanging data
over smaller distances. It operates in the unlicensed, industrial, scientific, and medical (ISM) band from
2.4 GHz to 2.485 GHz. Maximum devices that can be connected at the same time are 7. Bluetooth
ranges up to 10 meters. It provides data rates up to 1 Mbps or 3 Mbps depending upon the version.
• Bluetooth is Wireless.
• Bluetooth is cable replacement technology that can be used to connect almost any device to
any other device.
Wi-Fi is a family of wireless network protocols based on the IEEE 802.11 family of standards, which are
commonly used for local area networking of devices and Internet access, allowing nearby digital
devices to exchange data by radio waves. It can also provide wireless Internet access for Wi-Fi-enabled
devices when they are near areas that have Wi-Fi access, called “hot spots.” Wi-Fi uses radio waves to
transmit data from your wireless router to your Wi-Fi enabled devices like your TV, smartphone, tablet
and computer. Wi-fi routers use 2.4GHz or 5GHz for data transfer.
**************************