Day1-Session-1 - ES-IoT-Overview
Day1-Session-1 - ES-IoT-Overview
Rajesh M.
Learning objective
At the end of this lecture, you should be able to:
● Outline what is meant by Embedded Systems, give examples of its
application and state its benefits.
● Describe the attributes of embedded systems.
● Outline the constraints on embedded systems including their impact.
● Understand the idea of IoT.
Outline
● Introduction to Embedded Systems
● Characteristics
● Application Areas
● Classification
● Options for Building Embedded Systems
● Benefits of embedded systems
● Embedded System Functions
● Attributes of embedded systems
● MCU Hardware & Software for Concurrency
● Embedded System Constraints and their impact
● Brief overview of IoT
Introduction to Embedded Systems
• What is an Embedded System?
• Application-specific computer system
• Built into a larger system
• Why add a computer to the larger system?
• Better performance
• More functions and features
• Lower cost
• More dependability
• Economics
• Microcontrollers (used for embedded computers) are high-volume, so recurring cost is low
• Nonrecurring cost dominated by software development
• Networks
• Often embedded system will use multiple processors communicating across a network to lower parts
and assembly costs and improve reliability
Introduction to Embedded Systems
• What is an embedded system?
• Application-specific computer system
• Built into a larger system embedded
system
• Often with real-time computing constraints
• Why add an embedded computer to a larger system?
• Better performance
• More functions and features
• Lower cost, e.g., through automation
Embedded Computer
• More dependability Software
Hardware
Input from Output to environment
environment
NIELIT CALICUT
Characteristics of ES
• Do a very specific task
• Have very limited resources – memory, display etc.
• Have to work against some deadlines – real-time
• Are constrained for power – low power consumption
• Need to be highly reliable
• Some have to operate in extreme environmental conditions.
• Cost sensitive – based on application
NIELIT CALICUT
ES Application Areas
NIELIT CALICUT
Example: Gasoline automobile engine control unit
• Functions ▪ Many inputs and outputs
– Fuel injection ▪ Discrete sensors & actuators
– Air intake setting ▪ Network interface to rest of car
– Spark timing
– Knock control
• Constraints
– Reliability in harsh environment
– Cost
– Weight
Classification of Embedded Systems
NIELIT CALICUT
Classification based on Functionality
• Real Time
• Stand Alone
• Networked
• Mobile
NIELIT CALICUT
Real Time Embedded Systems
NIELIT CALICUT
Stand Alone
• Examples: mp3 players, digital cameras, video game consoles, microwave ovens
NIELIT CALICUT
Networked
NIELIT CALICUT
IoT Systems
NIELIT CALICUT
Mobile
• Portable Embedded
Devices
• Examples
– Smart Phones, Digital
Watches, Tablets
NIELIT CALICUT
Classification based on complexity
• Small Scale
• Medium Scale
• Sophisticated
NIELIT CALICUT
Small Scale
• Designed with
– 8 bit or 16 bit microcontrollers
– have minimum hardware and software
• Small in size, low power battery operated
• Can be developed using simple programming tools like editor,
assembler, cross assembler etc.
• Examples: Bus Ticketing System, Water Tank Level Monitoring System
NIELIT CALICUT
Medium Scale
• Designed with
– 16/32 bit MCs, RISC Processors or DSPs
– have both hardware and software complexities
NIELIT CALICUT
Sophisticated
• Designed with
– ASICS, FPGAs, scalable or configurable processors
– have both hardware and software complexities
• needs sophisticated tools for development
NIELIT CALICUT
Options for Building Embedded Systems
Implementation Design Unit Upgrades Size Weight Power System
Cost Cost & Bug Speed
Fixes
Dedicated Hardware
ASIC high very low hard tiny - 1 die very low low extremely
($500K/ fast
mask set)
Programmable logic – low mid easy small low medium to very fast
FPGA, PLD high
Microcontroller (int. low mid to low easy small low medium slow to
memory & peripherals) moderate
• Fault handling
– Many systems must operate independently for long periods of
time, requiring them to handle likely faults without crashing
– Often fault-handling code is larger and more complex than the
normal-case code
• Diagnostics
– Help service personnel determine problems quickly
Microcontroller vs. Microprocessor
signals
– Timing
– Clock generators
– Communications
Register banks
ALU
Microprocessor
CPUs → MCUs → embedded systems
• Microcontroller (MCU)
– Typically has a single processor core
– Has memory blocks, Digital IOs, Analog IOs, and other basic
peripherals
– Typically used for basic control purpose, such as embedded
applications
Program Data
Microprocessor
Memory Memory
System Bus
system
– Usually has real-time constraints
Embedded
System
MCU Hardware & Software for Concurrency
Peripheral Bus
• CPU executes instructions from one or more
Timers
thread of execution
• Specialized hardware peripherals add
dedicated concurrent processing ADC
Cortex-M
– Watchdog timer Core
– Analog interfacing
Interrupt GPIO
– Timers Controller
– Communications with other devices
– LCD driver
events
Constraints
• Cost
– Competitive markets penalize products which don’t deliver adequate value for the cost
• Size and weight limits
– Mobile (aviation, automotive) and portable (e.g. handheld) systems
• Power and energy limits
– Battery capacity
– Cooling limits
• Environment
– Temperatures may range from -40°C to 125°C, or even more
Impact of Constraints
• Programming language
– Programmed in C rather than Java (smaller and faster code, so less expensive MCU)
– Some performance-critical code may be in assembly language
• Operating system
– Typically, no OS, but instead simple scheduler (or even just interrupts + main code
(foreground/background system)
– If OS is used, likely to be a lean RTOS
Building embedded systems using MCUs
• In most embedded systems, MCUs are chosen to be the best solution, since they offer:
– Low development and manufacturing cost
– Easy porting and updating
– Light footprint
o Home appliances, e.g., washing machines, fridges, kettles, vacuum cleaners, light bulbs, thermostats, door l
o Civil engineering structures, e.g., bridges and railways
o Wearable devices, e.g., smart watches, smart glasses, rings, and clothes
o Entertainment devices, e.g., TVs, game consoles, and toys
o Biomedical devices, e.g., pacemakers, blood pressure monitors, digital pills
o And conceivably any THING in the world
Cloud
LoRa Mote
THANK YOU
You can find us at:
38
www.nielit.gov.in/calicut
[email protected]