1 Embedded Systems Intro
1 Embedded Systems Intro
Menu
Search …
by
EMBEDDED SYSTEM TUTORIAL
What is an Embedded system
History of Embedded system
Characteristics of Embedded system
Advantages of Embedded system
Disadvantages of Embedded system
Types of Embedded System
Application of Embedded systems
Embedded system Processor
Structure of an Embedded System
Important terminologies used in embedded system
What is Microcontroller
What is Microprocessor
Difference between Microprocessor and Microcontroller
Embedded System tools and peripheral devices
8051 Microcontroller
Application of 8051 Microcontroller
https://www.tutorialandexample.com/embedded-systems-tutorial/ 1/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
8051 Microcontroller architecture Menu
8051 Microcontroller Pin Diagram
Addressing Modes of 8051 Microcontroller
What is an embedded system?
An embedded system is defined as a mixture of Computer Hardware and Software, either fixed
incompetence or Programmable, implemented for a specific task or function within a more
extensive system.
In other words, “Embedded System is a devoted system which is designed to perform
one or more specific tasks or functions.”
Some common examples of Embedded systems are Cameras, airplanes, vending machines,
household appliances, and Mobile Devices.
History of Embedded System
Here are some important milestones in the history of Embedded Systems.
. In 1960, the Embedded System was first used to develop the Apollo guidance system by
Charles stack Draper at MIT.
. In 1965, Antonetics developed the D-17B, this computer used in the Minuteman Missile
Guidance System.
. In 1968, the first embedded system for a vehicle was developed.
. In 1971, Texas Instruments developed the first Microcontroller.
. In 1987, the first embedded OS, VxWorks, was developed by Wind Rivers
. Microsoftʼs Windows Embedded CE was released in the year 1996.
. The first embedded Linux system appeared in the year 1999.
. In 2013, the embedded market reached $140 billion.
. Analysts are projecting an Embedded Market more massive than $40 billion by 2030.
Characteristics of Embedded system
. The Embedded system must have connected input and output devices.
. The Embedded system requires memory to store the data, and mostly ROM is used for this
purpose. But there is no need for secondary memory.
. Software is used for providing extensibility and attributes. Hardware is used for security and
performance.
https://www.tutorialandexample.com/embedded-systems-tutorial/ 2/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
. An embedded system is mostly used to perform specifically one type of function and does
Menu
this whole function repeatedly.
. Embedded System is based on Microprocessor.
. Embedded systems needed real-time performance.
Advantages of embedded system
. The Embedded systems are small in size and faster to load.
. It is specially used to perform one task.
. It is easy to Manage.
. Low cost.
. Requirements are fulfilled in fewer resources.
Disadvantages of an embedded system
. Difficult to upgrade.
. Hardware is limited.
. Difficult to troubleshoot
. Difficult to transfer data from one system to another system.
. It is not scalable.
Types of Embedded System
There are three types of Embedded System
. Small scale
. Medium-scale
. Sophisticated
https://www.tutorialandexample.com/embedded-systems-tutorial/ 3/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Menu
Small scale Embedded System:- Small scale embedded systems can be used to
implement with a single 8 or 16-bit microcontroller. The most vital programming tools which
are used to implement a small scale Embedded system, an editor, assembler, (IDE), and
cross-assembler.
Medium Scale Embedded System:–Medium scale embedded systems are designed
using 16 or 32-bit microcontrollers. This type of system offers both Hardware and software
complexities. C, C++, JAVA, and various source code engineering tools, etc. are
used to develop this kind of embedded system.
Sophisticated Embedded Systems:-Sophisticated embedded systems have lots of
hardware and software complexities. For the development of an embedded system, you may
require hardware and software co-design and various components that need to be
combined in the final system.
Applications of Embedded System
There are various applications of embedded system
. Medical
Dialysis Machine
Infusion Pumps
Cardiac Monitor
https://www.tutorialandexample.com/embedded-systems-tutorial/ 4/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Prosthetic Device Menu
2. Robotic Science
Ground vehicles
Drones
Underwater Vehicles
Industrial Robots
3. Automotive
Engine Control
Ignition system
Brake System
4. Networking
Router
Hubs
Gateways
5. Home Devices
TVs
Cameras
Digital Alarm
Air Conditioner
6. Industrial Control
Robotics
Control systems
Missiles
Space stations
shuttles
Embedded System Processors
https://www.tutorialandexample.com/embedded-systems-tutorial/ 5/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
PROCESSOR:-It takes an input and produces an output after processing. The processor is the
core element in an embedded system .Processors are essential for an embedded system that Menu
takes response from the sensors in the digital form and then processes that respond to produce
the output in a real-time environment.
Processors in a system
There are two essentials units of processors
. Processors flow control unit
. Execution unit
. Processor flows control unit:-The processor control unit fetches the instructions from
memory.
. Execution unit:-The Execution unit contains a circuit that implements data conversion
from one form to another and also provides instructions about the data transfer operation.
Types of processors
. General Purpose Processor
. Micro Processor
. Microcontroller
. Embedded Processor
. Digital Signature Processor
. Media Processor
2. Application-Specific Instruction Processor
3. Application-Specific System processors
4. ASIP core(s) or GPP core(s)
Structure of Embedded System
The following figure shows the basic structure of an Embedded System:
https://www.tutorialandexample.com/embedded-systems-tutorial/ 6/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Menu
Sensor:-Sensor is used to measure the physical Signal, and that is used by an electrical
instrument like an A2D convertor and by an Observer.
A-D Converter:-An A-D convertor stands for the analog-to-digital converter, which is used
to convert an analog signal into a Digital Signal sent by the sensor.
Processors and ASICs:-The task of Processors is to process the data, measure the
output, and store it to the memory.
D-A converter:– D-Aconverter stands for the digital-to-analog converter, which is used to
convert the digital data into analog data.
Actuator:-An actuators match or measure the output that is given by the D-A converter to
the expected (actual) output stored in it and then saved the approved output.
Important terminologies used in embedded system
Reliability:-Reliability is used to measure the survival chances or probability of the system
when the system is going to in critical state during the run time.
Fault-tolerance:-This is used to measure the capability of a computer system to survive in
the presence of faults.
Real-Time:-An embedded system must meet the various constraints like time and other
constraints .these type of system works on real-time.
Flexibility:-flexibility means the system is designed in such a way so that when the need
for changes is required, it will be done quickly.
What is Micro-controller?
A microcontroller is a single-chip VLSI unit, and it is also called a microcomputer. The
Microcontroller includes memory, input and output interfaces, processors in a single chip. In other
words, the microcontroller is defined as a small, low-cost, and self-contained computer
on a single chip.
https://www.tutorialandexample.com/embedded-systems-tutorial/ 7/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Types of Micro-controller Menu
Microcontroller can be defined on the basis of architecture and service providers.
Architecture based Microcontroller:
There are basically two types of Architectures of Microcontroller:
. Havard Architecture:-In Havard architecture, proper storage, and signal buses are
provided for a different set of instructions and data.
. Von Neumann Architecture:-This Architecture was suggested by scientist john von
Neumann. In the von Neumann architecture, both instruction and data are present on a
single bus.
Service Provider Based microcontroller:
On the basis of the Service provider, there are various types of the microcontroller are:
. AVR:-It is developed by Atmel service provider. AVR is based on the Harvard architecture
and Reduced Instruction Set Computers (RISC).
. PIC:-PIC stands for the “peripheral interface controller.” It is based on Harvard architecture.
PIC microcontroller supports programming in C, Assembly, and BASIC C.
. Hitachi:-This type of microcontroller belongs to the H8 family of the controller. H8 is a
name that is used in a large family of 8-bit, 16-bit, and 32-bit microcontroller proposed by
Renesas Technology, founded in the early 1990s within Hitachi semiconductors.
. Motorola:-This type of microcontroller is mainly used for high-performance data
manipulation operation. Motorola microcontroller unit uses a System Integration Module
(SIM), Time Processing Unit (TPU), and Queued Serial Module (QSM).
What is Microprocessor
A Microprocessor is also called a basic input-output System (BIOS).
A Microprocessor is defined as a central processing unit that is built into a single VLSI chip.
Microsoft is a general-purpose device, and in this, additional outside circuitry is added on to make
it work as a microcomputer.
There are various types of operations performed by the microprocessor such, as adding,
subtracting, comparing two numbers, and fetching the data from memory.
The Microprocessor is used for processing the input received from sensors and produced the
equivalent output.
https://www.tutorialandexample.com/embedded-systems-tutorial/ 8/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Block Diagram of Microprocessor Menu
Components of Microprocessor
. Arithmetic and logical unit:- ALU is used to perform arithmetic and logical operations.
ALU performs arithmetical and logical operations on the data stored inside the registers.
2. Accumulator:- Accumulator is a type of register in which the intermediate arithmetic and
logical operation data stored inside a microprocessor in different address locations.
3. Working Registers:- Working Register is a storage device which is used to store the
data.
4. Program Counter:-Program counter is used to count the number of programs which is
executed inside a Microprocessor.
Stack Pointer:-Stack pointer is a pointer that is used to store the address of the last
program request made by the processor inside a stack.
Clock circuit:-clock circuit is a type of circuit that is used to produce clock signals.
Interrupt circuit:-Interrupt circuit is used to produce the interrupt signal when the higher
priority process used to be served first on the basis of some priority condition.
Difference between Microprocessor and Micro-controller
https://www.tutorialandexample.com/embedded-systems-tutorial/ 9/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Microprocessor Microcontroller Menu
https://www.tutorialandexample.com/embedded-systems-tutorial/ 10/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Cross compiler:- A cross compiler is a compiler that is able to create executable code for a Menu
platform other than the one on which the compiler is running. For example- a compiler that runs
on windows, 7 pc can generate a code that runs on the Android Smartphone.
Decompiler:- A Decompiler is a compiler that is used to convert the low-level language code into
the high- level language code. Decompiler is just opposite to the compiler.
Assembler:-An Assembler is a program that is used to translate Assembly language code into a
machine language code.
Examples of Assembler:- NASM, MASM.
Debugging tools in an Embedded System
Debugging tool is used for reducing the errors or bugs inside a program.
Debugging is difficult in the compact system because a small change in one subsystem can create
huge bugs in another system.
Different types of debugging tools in the Embedded System are:
1. Simulators:-Simulator is a debugging tool which is used for debugging in an embedded
system.
The task of the Simulator is to monitor the detailed information of source code, provides the
working status of RAM, give the full meaning of the command, etc.
Microcontroller Starter kit:- Microcontroller Starter kit is used for developing an
embedded system based project. The advantage of the Microcontroller starter kit is that it
works on real-time operating conditions. A microcontroller start kit includes:
In-system programmer (ISP)
Hardware Printed Circuit Board (HPCB)
Some embedded system tools like a compiler, assembler, linker, etc.
3. Emulators:-An Emulator is defined as a software program which is used to emulate the
function of one computer system into another computer system.
Peripheral devices in Embedded System
Peripheral devices in an Embedded System are used for communicating with the outside
environment.
There are different types of peripheral devices used in an embedded system are:-
https://www.tutorialandexample.com/embedded-systems-tutorial/ 11/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Universal serial bus (USB). Menu
Networks like Ethernet, local area network (LAN), etc.
Multimedia cards (SD cards, flash memory).
Serial Communication Interface (SCI).
Digital to Analog/Analog to digital.
General-purpose Input /Output (GPIO).
8051 Microcontroller
The 8051 Microcontroller is a type of microcontroller which was invented in the 1980s by Intel. It is
based on Havard Architecture. Firstly, it was created by using NMOS Technology, but the NMOS
technology consumed more power; therefore, by using another technology CMOS Intel re-launch
the Microcontroller 8051, and the new version comes up with an edition of letter C in the name of
the title. So, the new name of the modified version of the microcontroller is called by the name
80C51.
The 8051 Microcontroller programming is done in C language by using the Keil software.
Features of 8051 Microcontroller
. 16-bit timers.
. The Microcontroller has 4 registers Banks.
. 64k bytes on-chip programmable memory (ROM).
. 128 user-defined flags.
. 32 general-purpose registers each of 8-bit
. 8051 Microcontroller offers several unique features such as ADC, UARTʼs, op-amp, etc.
Applications of 8051 Micro-controller
There are various types of applications of Embedded Systems.
. Energy Management
. Automobiles
. Touch screen
. Medical devices
8051 Microcontroller Architecture
https://www.tutorialandexample.com/embedded-systems-tutorial/ 12/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Menu
https://www.tutorialandexample.com/embedded-systems-tutorial/ 14/21
3/9/2020 Embedded Systems Tutorial - Tutorial And Example
Menu