Professional Documents
Culture Documents
MBA.Tech. – EXTC
Sem VII
AY 2022-2023
Instructor: Dr. Prashant Kharote
Let us discuss what we already learnt in DLD
and MPMC
Unit
Syllabus
Description Duration
1 08
Introduction of Embedded Systems (ES): 8/16-bit microcontrollers block diagram, basic requirements of ES, Design of embedded
systems, system on chip concept, VLSI and ASCI concepts, Memory, Sensors and Actuators, Communication Interface, Embedded
Firmware, Other System Components used in ES.
2 Hardware Software Co-Design and Program Modeling: Fundamental Issues in Hardware Software Co-Design, Embedded 08
communication protocols (X-bee, RS-232, IrDA, I2C and CAN) Computational Models in Embedded Design, Introduction to Unified
Modeling Language, Hardware Software Trade-offs, and Higher-level programming models.
3 Embedded Firmware & Hardware Design and Development: Embedded Firmware Design Approaches, Embedded Firmware
Development Languages, Programming in Embedded C, Hardware Design: Analog electronics and digital electronics components, 08
Electronic design automation (EDA) tools, Schematic design using OrCad, PCB layout design.
4 Real-Time Operating System (RTOS) Basics: Operating System Basics, Types of OS, Tasks, Process and Threads, Multiprocessing and
Multitasking, Task Scheduling, Threads and Processes Scheduling: Putting them altogether, Task Communication, Task Synchronization, 04
Device Drivers, How to Choose an RTOS.
5 The Embedded System Development Environment: The Integrated Development Environment (IDE), Types of Files Generated on Cross
Compilation, Disassembler/Decompiler, Simulators, Emulators and Debugging, Target Hardware Debugging, Boundary Scan 08
6 Trends in the Embedded Industry: Processor Trends in Embedded System, Embedded OS Trends, Development Language Trends, Open
Standards, Frameworks and Alliances, RTOS examples: VxWorks/MicroOS/OS-II
08
1. Raj Kamal (2017), “Embedded Systems”, Tata McGraw Hill Education Private Limited, 4th Edition, 2017
2. Shibu K V (2009), “Introduction to Embedded Systems”, Tata McGraw Hill Education Private Limited, 6th Edition,
2014
Reference Books:
1. James K Peckol (2015), “Embedded Systems - A Contemporary Design Tool”, John Weily Publicatoin, 3rd Edition,
2015.
2. Frank Vahid, and Tony Givargis (2014), “Embedded System Design”, John Wiley Publication, 2nd Edition, 2014
3. David E. Simon (1999), “An Embedded Software Primer”, Addison-Wesley Professional Publication, 5th Edition, 1999.
ICA (100 Marks)
1. M1 (20M)
2. M2 (20M)
3. Weekly Lab Performance and submission (20M)
4. Lab Exam and Viva (20M)
5. Model building (HW/SW) for ATM/ AVM/Digital camera/Setup box etc. using
simulation tool (20M)
Unit 1
Introduction of Embedded Systems (ES):
• 8/16-bit microcontrollers block diagram
• Basic requirements of ES
• Design of embedded systems, system on chip concept, VLSI and ASCI concepts
Von-Neumann architecture
• It shares single common bus for instruction and data fetching.
• Low performance as compared to Harvard architecture.
• It is cheaper.
• Accidental corruption of program memory may occur if data memory and program
memory are stored physically in the same chip.
RISC (Reduced Instruction Set Computing)
• It contains a lesser number of instructions.
• Instruction pipelining and increased execution speed.
• Orthogonal instruction set (allows each instruction to operate on any register and use any addressing
mode).
• Operations are performed on registers only, only memory operations are load and store.
• A larger number of registers are available.
• Programmer needs to write more code to execute a task since instructions are simpler.
• It is single, fixed-length instruction.
CISC (Complex Instruction Set Computing)
• It contains a greater number of instructions.
• The instruction pipelining feature does not exist.
• Non-orthogonal set(all instructions are not allowed to operate on any register and use any addressing
mode).
• Operations are performed either on registers or memory depending on the instruction.
• The number of general-purpose registers are limited.
• It is variable-length instruction.
Let’s consider a Computer
❖ A computer is a system that has the following or more components.
❖ A microprocessor.
❖ A large memory comprising the following two kinds:
❖ (a) Primary memory (semiconductor memories - RAM, ROM and fast accessible caches)
❖ (b) Secondary memory [(magnetic memory located in hard disks, diskettes and cartridge tapes, optical
memory in CD-ROM or memory stick (in mobile computer)] using which different user programs can load
into the primary memory and can be run.
❖ I/O units such as keyboard, mouse, digitizer, scanner, touch screen, modem, fax cum modem etc.
❖ Output units like LCD screen, video monitor, printer, etc.
❖ Networking units like Ethernet card, front-end processor-based server, bus drivers, etc.
❖ Operating system (OS).
Embedded system
❖ Three main embedded components:
Serial
Processor Communicat
ion Ports
Interrupt Parallel
Controller Ports
17
Architecture of Embedded System
• The CPU consists of
• ALU – To perform arithmetic and logical operations
• General purpose registers – which constitute processor’s internal memory, which can be
used for data manipulation and arithmetic operation.
• Control unit – Fetches instructions from memory, decodes and executes them.
• A program counter points to the next instruction to be executed.
• Stack pointer points to stack memory
• Instruction decoder
• Memory address register and data register
• The processors are designed with RISC / CISC, Harvard / Von Neumann architecture
18
Architecture of Embedded System
• Memory
• Memory is divided into program memory and data memory.
• Program memory is a Read only memory and stores firmware (program code) permanently
where as data memory is read / write holds the data dynamically.
• In a microcontroller, both program memory and data memory are internal, if the internal memory
is not sufficient, external memory chips can be used.
• EEPROM memory can be additionally used as programmable memory.
• Clock
• A clock or oscillator circuit is required to be provided as input for clock signal.
• In some processors, the clock is inbuilt.
• All events of the processor are related to the clock.
• Higher the clock frequency, greater the speed of the processor.
• Watchdog timer
• A watchdog timer helps in reset function of the processor.
• The timer is set to a large value and is decremented slowly. When it reaches zero, the processor is
reset through a reset signal.
19
Architecture of Embedded System
• I/O Devices
• I/O devices can be classified as programmed I/O or interrupt driven I/O.
• In programmed I/O, the processor sends the data to the device by itself.
• In interrupt driven I/O, the processor is driven by an interrupt signal and an ISR is executed. The ISR
transfers the data from input device to memory or memory to output device.
• Generally the data transfer between I/O devices and memory is coordinated by the CPU. In cases where this
transfer is not efficient, the function is carried out by a special device called DMA controller.
• Sensors and Transducers:
• Embedded systems need to convert real life information into digital signals. This is achieved through
sensors and transducers.
• E.g., Temperature sensors convert temperature into electrical voltage (used in air conditioners, boilers,
ovens etc).
• Light sensors convert light intensity into electrical voltage
• Accelerometer converts acceleration into voltage
• Pressure sensors convert pressure level into voltage
• Microphone and speakers convert acoustic energy into voltage level
• ADC & DAC: The analog signal can be converted to digital signal through sampling and quantization
technique (ADC). The reverse process is called DAC. 20
Classification of embedded systems
1. Small Scale embedded systems:
The system may be battery operated and will utilize low memory (mostly that provided by
processor on chip).
The software design is generally through assembly language and considers low power
dissipation requirements.
21
2. Medium Scale embedded systems:
Designed with single or few 16 or 32 bit microcontrollers, DSPs or RISCs.
They may also employ single purpose processors for various functions.
Tools like High level programming languages - C/C++, RTOS, debugger, simulator
etc. are used for the complex design.
22
3. Sophisticated embedded systems:
These systems have enormous complexities and may need several ASIPs, scalable or
configurable processors, and programmable logic arrays.
They are used for cutting-edge applications that need software and hardware co-design and
components that have to be integrated.
Certain software functions such as encryption, TCP/IP protocol, etc., the software implements
some of the functions of the hardware resources.
Development tools for these systems may not be readily available at a reasonable cost or may
not be available at all.
23
Processor in the system
❖ Heart of the embedded system.
4. Processor ability to solve the complex algorithms used in meeting the deadlines for their
processing.
CORE OF EMBEDDED SYSTEMS
❖ Almost 80% of the embedded systems are processor/controller based.
❖ The processor may be a microprocessor or a microcontroller or a digital signal processor,
depending on the domain and application.
❖ INTEL: 8031,8032,8051,8052,8751,8752
❖ Motorola: MC68HC11
Embedded Processor
❖ Special microprocessors & microcontrollers often called, Embedded processors.
❖ An embedded processor is used when fast processing, fast context-switching & atomic ALU
operations are needed.
❖ An operation during which a processor can simultaneously read a location and write it in the
same bus operation. This prevents any other processor or I/O device from writing or reading
memory until the operation is complete.
❖ DSP has large number of applications such as image processing, audio, video &
telecommunication processing systems.
❖ An ASSP is used as an additional processing unit for running the application in place of
processing using embedded software.
❖ Typically, a set top box processor ; mpeg video-processor ; network application processor
; mobile application processor
❖ The operations of all the processors are synchronized to obtain an optimum performance.
Embeds:
➢ Multiple processors,
➢ memories,
➢ multiple standard source
solutions (IP Cores),
➢ Logic and analog units
IP Core
❖ An IP (intellectual property) core is a block of logic or data that is used in making a field
programmable gate array ( FPGA ) or application-specific integrated circuit (ASIC) for a
product.
❖ As essential elements of design reuse , IP cores are part of the growing electronic design
automation ( EDA ) industry trend towards repeated use of previously designed components.
❖ Ideally, an IP core should be entirely portable - that is, able to easily be inserted into any
vendor technology or design methodology.
❖ Hence, they are called passive devices. The simplest resistive sensor is the
potentiometer.
• IMAGE CAPTURE
• IMAGE PROCESSING
• FEATURE EXTRACTION
• FEATURE COMPARISON
Position Sensors
❖ Position Sensors is a device that provides the position measurement of a
component.
❖ A position sensor can be:
➢ Linear
➢ Angular
➢ Multi-axis
❖ Some of the well-known position sensors are:
➢ Linear Variable Differential Transformer
➢ Hall Effect Sensor
➢ Proximity Sensor
➢ Potentiometer
➢ Ultrasonic Sensor
Thermal Sensors
❖ The most commonly used type of all the sensors are those which detect
Temperature or heat.
➢ Thermistors: Works on the principle that resistance of some materials changes
with the change in their temperature.
➢ Thermocouple: Very popular device used for measurement of temperature.
➢ Light Dependent Resistor: The light dependent resistor consists of a length of
material (cadmium sulphide) whose resistance changes according to the light
level.
Design Issues with Sensors
❖ Calibration
➢ Relating measurements to the physical phenomenon.
➢ Can dramatically increase manufacturing costs.
❖ Nonlinearity
➢ Measurements may not be proportional to physical phenomena.
➢ Correction may be required.
➢ Feedback can be used to keep an operating point in the linear region.
Design Issues with Sensors
❖ Sampling
➢ Aliasing (A high frequency sinusoid sampled at a low rate
looks just like a low frequency sinusoid.)
➢ Missed events
❖ Noise
➢ Analog signal conditioning
➢ Digital filtering
➢ Introduces latency
Actuators
Logical Mechanism
Signal Signal Processing Electric Hydraulic
& Amplification Final Actuation
Pneumatic
Element
Actuator
Sensor
Types of Actuators
1. Electrical actuators
• Electric motors
• DC servomotors
• AC motors
• Stepper motors
• Solenoids
2. Hydraulic actuators
• Use hydraulic fluid to amplify the controller command
signal
3. Pneumatic actuators
• Use compressed air as the driving force
➢A solenoid is a coil wound into a tightly packed helix.
➢In physics, the term solenoid refers to a long, thin loop of wire, and wrapped
around a metallic core.
➢which produces a magnetic field when an electric current is passed through it.
Communication Interface
❖ Serial communication (RS232, RS485, CAN, I2C, SPI).
❖ Parallel communication
Embedded Firmware
❖ The embedded software is responsible for controlling the various peripherals of the
embedded hardware to get the desired result as per specified functional requirements.
❖ The embedded software is generally embedded into ROM; hence it is also called
embedded firmware.
❖ Considered as the mastermind of the embedded system.
❖ Embedded firmware – RTOS, Drivers & Application programs.
❖ Embedded software can be developed by using any of the Processor/controller-specific
language such as
❖ Assembly language
❖ Machine language
❖ Processor /controller independent high-level language like C, C++, and JAVA.
❖ Combination of assembly language and high-level language.
Embedded Memories
❖ By using chip erase mode, the chip can be erased in a few milliseconds.
❖ It has static RAM based memory and a small tiny battery for providing
supply to the memory in the absence of external power supply.
❖ Volatile Memory.
❖ Its not Sequential Access Memory (SAM) like magnetic tapes and CDROMs.
❖ 2 Types of RAM
➢ Static RAM (SRAM)
➢ Dynamic RAM (DRAM)
Static RAM Vs Dynamic RAM
Static RAM Dynamic RAM
Stores data in the form of Stores data in the form of
voltage. charges.
Basic element – flip-flops Basic element – MOS
transistor gates.
Fastest Slower than SRAM.
Costly Cheaper
Refreshing circuitry not Refreshing circuitry is
required. required for restore
charge.
Functions Assigned to the ROM or EPROM or Flash
1.Storing 'Application' program from where the processor fetches the instruction codes.
2.Storing codes for system booting, initializing, Initial input data and Strings.