ECE 4003 - Embedded System Design
ECE 4003 - Embedded System Design
Microcontroller vs Microprocessor
Processor classification
SOFTWARE PROGRAM
#include <16f876a.h>
#use delay (clock=20000000)
#byte PORTB=6
main()
HARDWARE {
set_tris_b(0);
portb=255; //decimal
delay_ms(1000);
portb=0x55; //hexadecimal
delay_ms(1000);
portb=0b10101010; //binary
delay_ms(500);
}
DEFINITIONS OF EMBEDDED SYSTEMS
• IT IS ANY DEVICE THAT INCLUDES A PROGRAMMABLE COMPUTER BUT IS NOT ITSELF
INTENDED TO BE A GENERAL PURPOSE COMPUTER
EMBEDDED SYSTEM
GENERATION
EXECUTION BEHAVIOUR
TRIGGERING
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON GENERATION
First Generation:
- build around 4-bit and 8-bit processor like 8085, Z80
- Simple hardware & firmware developed in assembly code
- Ex: Digital telephone keypads, calculator etc.,
Second Generation:
- build around 8-bit and 16-bit processor
- complex and powerful instruction set
- Ex: Data acquisition system, SCADA system etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON GENERATION
Third Generation:
- build around 16-bit and 32-bit processor
- application specific processor DSP & ASIC were introduced
- complex and powerful instruction set with pipelining
- dedicated embedded real-time OS entered into market
- Ex: robotics, industrial process control, networking etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON GENERATION
Fourth Generation:
- advent of SOC, reconfigurable & multicore processors
- high performance µP
- High performance RTOS for functioning
- Ex: smart phone, PDA etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON COMPLEXITY AND SYSTEM PERFORMANCE
Small-scale:
- simple in application needs
- performance requirements are not time critical
- build around low cost & low performance 8 or 16-bit µp /µC
- Ex: Electronic toys, digital multimeters etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON COMPLEXITY AND SYSTEM PERFORMANCE
Medium-scale:
- slightly complex in hardware & software requirements
- build on medium performance & low cost 16/32-bit µp /µC
- Ex: DVD players, network routers etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON COMPLEXITY AND SYSTEM PERFORMANCE
Large-scale:
- highly complex hardware and software requirement
- employed in mission critical application demanding high
performance
- build around high performance 32 or 64-bit µp /µC or SOC
or multi-core processors
- may contain complex high performance RTOS
- Ex: Missile navigation system, MRI scanner, ABS etc.,
EMBEDDED SYSTEM - CLASSIFICATIONS
BASED ON EXECUTION BEHAVIOUR
Deterministic:
- Real-time systems
- Non Real-time systems
Triggering mechanism:
- event triggered
- time triggered
WHY IS EMBEDDED SYSTEM DIFFERENT?
Real-time constraints.
Microprocessor vs Microcontroller
Processor classification
Less
Small size design
time
Easy to Low
program power
APPLICATIONS OF MICROCONTROLLER
Automotive
Medical electronics
Robotics
Consumer electronics
BASIC REQUIRMENTS
1. High Performance
2. Low Power Consumption
3. Low Cost
CLASSIFICATIONS OF MICROPROCESSORS
GENERAL PURPOSE PROCESSOR (GPP)
Advantages:
performance is very good
small size (exact to fit one solution)
they consume little power
Disadvantages:
not very easy to design and design time is thus high
design cost is thus higher
reprogramming is difficult
limited flexibility: not easy to make changes,
accommodate features
CLASSIFICATIONS OF MICROPROCESSORS
APPLICATION SPECIFIC PROCESSORS (ASP) - CLASSIFICATIONS
Applications of ASIC:
An IC that encodes and decodes digital data using a
proprietary encoding/decoding algorithm.
A medical IC designed to monitor a specific human
biometric parameter.
An amplifier IC designed to meet certain specifications not
available in standard amplifier products.
An IC that's custom-made for a particular automated test
equipment.
CLASSIFICATIONS OF MICROPROCESSORS
Compares the Processors Performance vs. Their Flexibility
CLASSIFICATIONS OF MICROPROCESSORS
Different Approaches for Building Embedded System
Microcontroller vs Microprocessor
Processor classification
Getting the hardware and software done for the next phase
ƒ
Embedded systems developer must understand more about,
Memory usage.
System startup
ƒ
Interrupts and exceptions
Execution environment, development tools
EMBEDDED SYSTEM DESIGN LIFE CYCLE
PHASE-5: HARDWARE/SOFTWARE INTEGRATION
Special tools
Process of debugging and discovering.
Discovering – If the S/W team understood the H/W description.
Big Endian/Little Endian problem
EMBEDDED SYSTEM DESIGN LIFE CYCLE
PHASE-5: HARDWARE/SOFTWARE INTEGRATION
Microcontrollers in Automotive:
Infineon Microcontrollers : [16/32bit] XC2200 (body), XC2300 (safety), XC2700
(powertrain), [16bit] C16x, XC16x, [8bit]C5xx, XC8xx, CIC615
Atmel AVR Microcontrollers: [32bit] UC3Cx, [8bit] ATmega, ATtiny, AT90CAN
STMicroelectronics Microcontrollers: [32bit] SPC5 , [8bit] STM8A
AIRBAG CONTROL SYSTEM
The goal of an airbag is to slow the passenger's forward motion as evenly as possible
in a fraction of a second during crash and reduce injury by either cushioning the
occupants contact with the interior .
AIRBAG CONTROL SYSTEM
AIRBAG CONTROL SYSTEM
SENSORS
Vehicle speed sensor: used for reading the speed of a wheel rotation.
As the airbag fills up, it bursts through the paneling that contains it and
enters into the space of the car in order to protect.
The airbag then will deflate itself on its own once it deploys.
AIRBAG CONTROL SYSTEM
REQUIREMENTS
Serial interfaces
CAN controller