Complete RGPV exam-oriented notes on normal OS versus RTOS, scheduling algorithms, TinyOS, VxWorks, QNX, VLSI technology, device drivers and practical embedded-system case studies.
Supporting technologies are the hardware and software technologies that help an embedded system perform real-time control, communication, computation, interfacing and application-specific functions.
Main Supporting Technologies
Real-Time Operating Systems
Task scheduling
VLSI and integrated-circuit technology
Device drivers
Embedded software development tools
Communication interfaces
Application-specific hardware
2. Operating System in Embedded Systems 7 Marks
An operating system is system software that manages processor time, memory, devices, files and program execution.
Major Functions
Process and task management
Memory management
Device management
Interrupt handling
Resource sharing
Communication and synchronization
File management where required
Applications / Tasks
|
v
+----------------------+
| Operating System |
| Scheduler |
| Memory Manager |
| Device Manager |
| Interrupt Handling |
+----------+-----------+
|
v
Hardware Resources
3. Real-Time Operating System 14 Marks
A Real-Time Operating System is an operating system designed to provide predictable and bounded response times so that time-critical tasks can meet their deadlines.
Main Characteristics
Deterministic behavior
Fast interrupt response
Priority-based scheduling
Low context-switch time
Predictable latency
Task synchronization
Reliable inter-task communication
Small memory footprint in embedded systems
Types of Real-Time Systems
Hard real-time: Missing a deadline may cause system failure.
Firm real-time: A late result has no useful value, though occasional misses may be tolerated.
Soft real-time: Deadline misses reduce quality but do not cause total failure.
Airbag control is hard real-time, industrial inspection may be firm real-time, and multimedia playback is usually soft real-time.
4. Difference Between Normal OS and RTOS 14 Marks
Feature
Normal Operating System
RTOS
Main objective
High throughput and user convenience
Predictable timing and deadline satisfaction
Response time
May vary
Bounded and deterministic
Scheduling
Fairness and throughput oriented
Priority and deadline oriented
Interrupt latency
May be comparatively higher
Low and predictable
Context switching
Not always time critical
Fast and bounded
Deadline guarantee
Not guaranteed
Designed to meet deadlines
Memory usage
Usually larger
Often optimized for small systems
Applications
Desktop, office and general computing
Automotive, medical, industrial and aerospace systems
Examples
Desktop-oriented operating systems
VxWorks, QNX and other embedded RTOS products
The main difference is that a normal operating system aims to provide good average performance, while an RTOS aims to guarantee correct operation within specified time limits.
5. Important Real-Time Terms 7 Marks
Deadline: Latest time by which a task must finish.
Release time: Time at which a task becomes ready.
Execution time: Processor time required by a task.
Period: Time interval between repeated releases of a periodic task.
Response time: Time from task release to task completion.
Latency: Delay before the system responds to an event.
Jitter: Variation in timing or response delay.
Determinism: Ability to predict maximum timing behavior.
Response Time = Completion Time − Release Time
6. Tasks, Threads and Task States 14 Marks
A task is an independently scheduled unit of execution in an RTOS.
Only essential services such as scheduling, interrupt handling and inter-process communication run in the kernel. Other services execute as separate processes.
Main Features
Microkernel architecture
Message-based inter-process communication
Process isolation
Real-time scheduling
Modularity
Fault containment
Good support for distributed systems
Applications
Automotive infotainment
Industrial systems
Medical systems
Transportation systems
Networked embedded platforms
18. TinyOS vs VxWorks vs QNX 14 Marks
Feature
TinyOS
VxWorks
QNX
Main target
Sensor nodes
Complex real-time embedded systems
Reliable modular real-time systems
Architecture
Event-driven component model
RTOS kernel with rich services
Microkernel
Resource requirement
Very low
Moderate to high depending on configuration
Moderate
Strength
Low power and small footprint
Mature real-time performance and tools
Isolation and fault containment
Typical use
Wireless sensor networks
Aerospace, industrial and telecom
Automotive, medical and transportation
19. Overview of VLSI Technology 14 Marks
VLSI stands for Very Large Scale Integration. It is the technology of integrating a very large number of transistors and electronic components onto a single integrated circuit.
Importance in Embedded Systems
Reduces system size
Improves speed
Reduces power consumption
Improves reliability
Reduces manufacturing cost for large production
Enables processors, memory and peripherals on one chip
Levels of Integration
SSI – Small Scale Integration
MSI – Medium Scale Integration
LSI – Large Scale Integration
VLSI – Very Large Scale Integration
Applications
Microprocessors
Microcontrollers
System-on-Chip devices
DSP processors
Memory chips
ASICs
20. Basic VLSI Design Flow 14 Marks
System Specification
|
v
Architecture Design
|
v
Logic / RTL Design
|
v
Functional Verification
|
v
Synthesis
|
v
Physical Design
|
v
Fabrication
|
v
Testing and Packaging
Steps
Specification: Define required functions, speed, power and area.
Architecture: Divide the system into hardware blocks.
ASIC: Integrated circuit designed for a specific application.
SoC: Processor, memory, peripherals and interfaces integrated on one chip.
21. Introduction to Device Drivers 14 Marks
A device driver is software that controls a hardware device and provides a standard interface between the operating system or application and that device.
Application
|
v
Operating System / RTOS
|
v
Device Driver
|
v
Hardware Device
Functions of a Device Driver
Initialize hardware
Configure device registers
Read and write data
Handle interrupts
Control DMA transfers
Manage device errors
Provide application-level functions
Typical Driver Operations
Open or initialize
Close or shutdown
Read
Write
Control or configure
Interrupt service
Advantages
Hardware abstraction
Code reusability
Easy system maintenance
Portability of application software
22. Types and Structure of Device Drivers 14 Marks
Driver Types
Character driver: Transfers data as a stream of bytes.
Block driver: Transfers data in blocks.
Network driver: Controls network interfaces.
Sensor driver: Reads and configures sensors.
Display driver: Controls display hardware.
Driver Development Steps
Study device datasheet.
Identify hardware registers and signals.
Initialize clocks and pins.
Configure the device.
Implement read, write and control functions.
Implement ISR if interrupts are used.
Handle errors and timeouts.
Test normal and failure conditions.
A poorly written driver may cause data loss, incorrect timing, crashes or unsafe hardware operation.
23. Embedded System Case Studies
The following case studies show how sensors, controllers, memory, actuators, communication and software logic work together in practical embedded products.
24. Case Study: Washing Machine 14 Marks
An automatic washing machine is a real-time embedded control system that performs washing, rinsing and spinning according to a selected program.
User Keys / Program Selection
|
v
+--------------------------+
| Embedded Controller |
| Program Logic |
| Timer |
| Safety Monitoring |
+----+------+-------+------+
| | |
v v v
Water Motor Heater
Valve Drive
^
|
Water Level / Door / Temperature Sensors
Inputs
Program selection buttons
Door sensor
Water-level sensor
Temperature sensor
Load or imbalance sensor
Outputs
Water inlet valve
Drain pump
Drum motor
Heater
Display and buzzer
Door-lock actuator
Operation Sequence
User selects the washing program.
Controller checks whether the door is closed.
Water inlet opens until required water level is reached.
Heater may warm the water.
Motor rotates the drum according to wash cycle.
Dirty water is drained.
Rinsing cycle is performed.
High-speed spinning removes water.
Buzzer or display indicates completion.
Safety Features
Door lock during operation
Overflow prevention
Motor overload protection
Imbalance detection
Timeout and fault indication
25. Case Study: Air-Conditioning System 14 Marks
An embedded air-conditioning system senses room conditions and controls cooling components to maintain the selected temperature.
Temperature / Humidity Sensor
|
v
+--------------------------+
| Embedded Controller |
| Control Algorithm |
| Timer and Protection |
+----+--------+--------+---+
| | |
v v v
Compressor Fan Display
|
v
Cooling System
Inputs
Temperature sensor
Humidity sensor where available
Remote-control receiver
User buttons
Current and pressure protection sensors
Outputs
Compressor relay or inverter drive
Indoor and outdoor fans
Air-direction motor
Display
Buzzer
Working
User sets the required temperature and mode.
Sensor measures current room temperature.
Controller compares measured and set temperatures.
Compressor and fan are controlled accordingly.
When the room reaches the desired level, cooling is reduced or stopped.