Unit 1
Unit 1
Unit 1
Topic
Introduction to Embedded Systems
Programme Educational Objectives
PEO1: Technical Competence: Apply their technical skills to find solution of
complex problems encountered in Modern Analog & Digital Electronics
Engineering practices.
PEO2: Competent professionals: Function effectively in the rapidly changing
world in broad context of electronics engineering to develop new products and
technologies for mankind.
PEO3:Satisfaction of Stake holders and quality assurance, Citizenship in the
Global Community, Value based education Cater to all Stakeholders, Quality
Assurance & take up higher studies in electronics and allied areas in engineering
PEO4:Research and development innovation: Utilize their skills in ethical and
professional manner to contribute to research & development of innovative
products and achieving Higher Education
Programme Outcomes (PO)
UNIT-II: (8 hrs)
ARM Family Processors: Introduction to ARM processors and its versions, ARM7,
ARM9 & ARM11 features, advantages & suitability in embedded application,
registers, CPSR, SPSR, ARM and RISC design philosophy, ARM7 data flow model,
programmers model, modes of operations
UNIT-III: (8 hrs)
ARM7 Based Microcontroller: ARM7 based Microcontroller LPC2148: Features,
Architecture. System Block(PLL and VPB divider), Memory Map, GPIO, Pin connect Block,
timer, Instruction set basic programming in assembly language.
UNIT-IV: (8 hrs)
Real World Interfacing with ARM7 Based Microcontroller: Interrupt structure of
LPC2148, Interfacing with LED, LCD, simple LPC2148 GPIO Programming examples Using
timers of LPC2148 to generate delay, serial communication programming for transmission
and reception from computer, programming for UART. C Programming. Introduction to
Cortex.
UNIT-V: (8 hrs)
RTOS and IDE for Embedded System Design: Operating System basics, Types of operating
systems, Task, process and threads, Thread preemption, Preemptive Task scheduling
techniques, Task Communication, Task Synchronization issues – Racing and
Deadlock, Concept of Binary and counting semaphores, selection of an RTOS, Advance
Topic
Text Books:
• Embedded/Real Time Systems Concepts, Design and Programming Black Book,
Prasad, KVK.
• David Seal “ARM Architecture Reference Manual”, 2001 Addison Wesley,
England; Morgan Kaufmann Publishers
Reference Books:
• Andrew N Sloss, Dominic Symes, Chris Wright, “ARM System Developer's
Guide - Designing and Optimizing System Software”, 2006, Elsevier.
• Steve Furber, “ARM System-on-Chip Architecture”, 2nd Edition, Pearson
Education.
• Cortex-M series-ARM Reference Manual.
Introduction to embedded systems
Characteristics of a microprocessor
Characteristics of a microcontroller
Introduction
• We have been brought up in the age of computing.
• Computers are everywhere (some we see, some we do not see).
• It is actually:
• A microprocessor used to control another piece of technology (dedicated, and not general-
purpose).
• For low cost, microcontrollers that are typically used are single-chip devices containing
processor, memory, and I/O interfaces.
Applications of Embedded Systems
• Limited by imagination.
a) Consumer Segment: Refrigerator, washing machine, A/C machine, camera, microwave oven,
TV, security system, etc.
b) Office Automation: Printers, Fax machines, photocopying machines, scanners, biometric
scanner, surveillance camera, etc.
c) Automobiles: Air bags, anti-lock braking system (ABS), engine control, door lock, GPS
system, vehicular ad-hoc network (VANET), etc.
d) Communication: Mobile phones, network switches, WiFi hotspots, telephones,
MODEM, etc.
e) Miscellaneous: Automatic door locks, automatic baggage screening,
surveillance systems, intelligent toilet, etc.
Common Design Metrics
• Non Recurring Engineering (NRE) Cost: One-time initial cost of designing a system.
• Unit Cost: The cost of manufacturing each copy of the system, without counting
the NRE cost.
• Size: The actual physical space occupied by the system.
• Performance: This is measured in terms of the time taken or throughput.
• Power: The amount of (battery) power consumed by the system.
• Flexibility: The ability to change the functionality of the system.
• Maintainability: How easy or difficult it is to modify the design of the system?
• Time-to-prototype: How much time is required to build a working version of the
system (i.e. a prototype)?
• Time-to-market: How much time is required to develop a system such that it can
be released to the market commercially?
• Safety: Are there any adverse effects on the operating environment?
• Can be many more …
Basic Operation of a Computing System
• The central processing unit (CPU) carries
out all computations.
• Fetches instructions from the program
memory and executes it; may require access
to data in data memory.
• The input/output block provides interface
with the outside world.
• Allows users to interact with the computing
system, and also observe the output results.
Classification
• About the instruction set architecture (ISA) of the CPU.
a) Complex Instruction Set Computer (CISC)
• Typically used in desktops, laptops and servers (courtesy Intel).
b) Reduced Instruction Set Computer (RISC)
• Typically used in microcontrollers, that are used to build embedded
systems.
• When a PC executes a program, the program is first loaded from disk/SSD into an
allocated section of memory.
• Usually the program is loaded part by part to conserve memory space.
• There is a complicated operating system that handles all low-level operations (includes low-
level driver codes for interfacing with various devices).
• In a microcontroller there is no disk to read from.
• On-chip ROM stores the program that is to be executed.
• Size of the ROM limits the maximum size of the application.
•
There is no operating system, and the program is ROM is the only program that
is running (must include low-level routines).
Where are Microcontrollers Used?