Chapter 0
Chapter 0
Embedded Systems 1
Objectives
Lesson Proper
What is System?
In simple, a system is a set of interrelated parts/components which are designed/developed to
perform a common tasks or to do some specific work for which it has been created.
Now after getting what actually system and embedded mean we can easily understand what is
Embedded Systems.
In 1971, Intel released the first commercially available microprocessor unit -- the Intel 4004 -- an
early microprocessor that still required support chips and external memory; in 1978 the National
Engineering Manufacturers Association released a standard for programmable microcontrollers,
improving the embedded system design; and by the early 1980s, memory, input and output
system components had been integrated into the same chip as the processor, forming a
microcontroller.
Embedded hardware are based around microprocessors and microcontrollers, also include
memory, bus, Input/Output, Controller, whereas embedded software includes embedded
operating systems, different applications and device drivers. Basically these two types of
architecture i.e., Harvard architecture and Von Neumann architecture are used in embedded
systems.
Architecture of the Embedded System includes Sensor, Analog to Digital Converter, Memory,
Processor, Digital to Analog Converter, and Actuators etc.
The below figure illustrates the overview of basic architecture of embedded systems:
Now let’s discuss some of the advantages and disadvantages of embedded systems.
Advantages of Embedded System:
Embedded systems are fast in performance.
These systems consumes less power
Small in shape and size.
These systems are so scalable and reliable.
Works on wide variety of sectors and environments.
Improve product quality and enhance performance.
Performs specific tasks without error.
Computer:
A computer is a combination of hardware and software resources which integrate together and
provides various functionalities to the user.
Embedded Device:
An embedded device is a part of an integrated system which is formed as a combination of
computer hardware and software for a specific function and which can operate without human
interaction.
Embedded Testing:
Embedded testing is the process of verification and validation of both software and hardware.
It ensures the defect free whole system including software and hardware. It is basically
performed on hardware in order to find the defects. It also ensures that system meets the end
user’s requirements.
Microprocessor
It is used in an application where the task is not predefined and it is assigned by the user. It is
used in computers, mobiles, video games, TVs, etc where the task is not fixed and it depends on
the user. Generally, the microprocessor is used where intensive processing is required. A laptop
is the best example where a microprocessor is used. The laptop is used for media streaming,
simulation, editing image, web browsing, gaming, creating a document and many more.
Microcontroller
It is designed for a specific task and once the program is embed on MCU chip, it can’t be altered
easily and you may be needed special tools to reburn it. The process of the microcontroller is
fixed according to its application. Hence, it does some processing, based on the input given to
the microcontroller and gives the predefined results as an output. The input could be given by
the user or it could be given by the sensors. It is used in many electronic appliances like washing
machine, microwave oven, timer, etc. In these equipment, the process is predefined, it may need
some inputs from user to give predefine output. Let say washing machine, once the user sets the
input parameters, it wash the clothes according to input parameter. So, the basic task (washing
the clothes) for the washing machine is fixed. You cannot do anything else from the washing
machine.
Microprocessor Microcontroller
Application It used where intensive processing It used where the task is fixed and
is required. It is used in personal predefined. It is used in the washing
computers, laptops, mobiles, video machine, alarm, etc.
games, etc.
Structure It has only the CPU in the chip. CPU, Memory, I/O port and all other
Other devices like I/O port, devices are connected on the single
memory, timer is connected chip.
externally. The structure is fixed. Once it is
The structure of the microprocessor designed the user cannot change the
is flexible. Users can decide the peripheral devices.
amount of memory, the number of
I/O port and other peripheral
devices.
Clock speed The clock speed of the The clock speed of the
microprocessor is high. It is in terms microcontroller is less. It is in terms
of the GHz. It ranges between 1 of the MHz. it ranges between 1 MHz
GHz to 4 GHz. to 300 MHz.
RAM The volatile memory (RAM) for the The volatile memory (RAM) for the
microprocessor is in the range of microcontroller is in the range of 2
the 512 MB to 32 GB. KB to 256 KB.
ROM The hard disk (ROM) for the The hard drive or flash memory
microprocessor is in the range of (ROM) is in the range of the 32 KB to
the 128 GB to 2 TB. 2 MB.
Peripheral The common peripheral interface The common peripheral interface for
interface for the microprocessor is USB, the microcontroller is I2C, SPI, and
UART, and high-speed Ethernet. UART.
Programming The program for the The program for the microcontroller
microprocessor can be changed for is fixed once it is designed.
different applications. The
programming of the
microprocessor is difficult
compared to the microcontroller.
Bit size It is available in 32-Bit and 64-bit. It is available in 8-bit, 16-bit, and 36-
bit.
Cost The cost of the microprocessor is It is cheaper.
high compared to the
microcontroller.
Power The power consumption for the The power consumption for the
consumption microprocessor is high. microcontroller is less.
Size The overall size of the system is The overall size of the system is
large. small.
Types of Microcontroller
PIC Microcontroller
PIC Stands for Peripheral Interface Controller is a kind of
microcontroller components was used in the development of
electronics, computer robotics, and similar devices. Even though
the PIC was produced by Microchip technology and based on
hardware computing architecture, here the code and data are
placed in separate registers to increase the input and output. Pic
has a built-in data memory, data bus and dedicated
microprocessor for preparing all I/O purposes and methods.
ARM Microcontroller
ARM stands for Advanced RISC Machine. It’s the most popular
Microcontrollers Programming in the digital embedded system
world, and most of the industries prefer only ARM microcontrollers
since it consists of significant features to implement products with
an excellent appearance. It is cost sensitive and high-performance
device which has been used in a wide range of application such as
Industrial Instrument control systems, wireless networking and
sensors, and automotive body systems, etc.
8051 Microcontroller
Intel created 8051 microcontrollers in 1981. It is an 8bit
microcontroller. It’s made with 40 pins DIP (Dual inline package),
4kb if ROM storage and 128 bytes of RAM storage, 2 16 bit timer. It
consists of are four parallel 8 bit ports, which are programmable as
well as addressable as per the specification.
AVR Microcontroller
AVR stands for Alf and Vegard's RISC Processor. It was the modified
Harvard architecture machine, where program and data were
stored in the separate physical memory system that appears in
different address spaces, but having the ability to browse
information things from program memory victimization particular
directions. AVR isn't associate degree signifier and doesn't
symbolize something specially.
MSP Microcontroller
MSP stands for Mixed Signal Processor. It’s the family from Texas
Instruments. Built around a 16 -bit CPU, the MSP is designed for
low cost and respectively, low power dissipation embedded
statements. It’s the controller's appearance is directly related to
the 16-bit data bus, and seven addressing modes and the
decreased instructions set, which allows a shorter, denser
programming code for fast performance.
The Range of Microcontroller is an IC chip that executes programs for controlling other device or
machines. It is a micro-device which is used for control of other device machines that’s why it’s
called Microcontrollers Programming.
Arduino Microcontroller
Arduino is a project, open-source hardware, and software platform
used to design and build electronic devices. It designs and
manufactures microcontroller kits and single-board interfaces for
building electronics projects.
The Arduino boards were initially created to help the students with
the non-technical background.
The Arduino board consists of sets of analog and digital I/O (Input / Output) pins, which are
further interfaced to breadboard, expansion boards, and other circuits. Such boards feature the
model, Universal Serial Bus (USB), and serial communication interfaces, which are used for
loading programs from the computers.
It also provides an IDE (Integrated Development Environment) project, which is based on the
Processing Language to upload the code to the physical board.
The projects are authorized under the GPL and LGPL. The GPL is named as GNU General Public
License. The licensed LGPL is named as GNU Lesser General Public License. It allows the use of
Arduino boards, it's software distribution, and can be manufactured by anyone.
The Arduino is used for various purposes, such as:
Finger button
Button for motor activation
Light as a sensors
LED button
Designing
The Building of electronic devices
What is Arduino?
Arduino is a software as well as hardware platform that helps in making electronic projects. It is
an open source platform and has a variety of controllers and microprocessors. There are
various types of Arduino boards used for various purposes.
The Arduino is a single circuit board, which consists of different interfaces or parts. The board
consists of the set of digital and analog pins that are used to connect various devices and
components, which we want to use for the functioning of the electronic devices.
The analog pins in Arduino are mostly useful for fine-grained control. The pins in the Arduino
board are arranged in a specific pattern. The other devices on the Arduino board are USB port,
small components (voltage regulator or oscillator), microcontroller, power connector, etc.
Features
The features of Arduino are listed below:
Arduino programming is a simplified version of C++, which makes the learning process
easy.
The Arduino IDE is used to control the functions of boards. It further sends the set of
specifications to the microcontroller.
Arduino does not need an extra board or piece to load new code.
Arduino can read analog and digital input signals.
The hardware and software platform is easy to use and implement.
History
The project began in the Interaction Design Institute in Ivrea, Italy. Under the supervision of
Casey Reas and Massimo Banzi, the Hernando Bar in 2003 created the Wiring (a development
platform). It was considered as the master thesis project at IDII. The Wiring platform includes
the PCB (Printed Circuit Board). The PCB is operated with the ATmega168 Microcontroller.
The ATmega168 Microcontroller was an IDE. It was based on the library and processing functions,
which are used to easily program the microcontroller.
In 2005, Massimo Banzi, David Cuartielles, David Mellis, and another IDII student supported the
ATmega168 to the Wiring platform. They further named the project as Arduino.
The project of Arduino was started in 2005 for students in Ivrea, Italy. It aimed to provide an easy
and low-cost method for hobbyists and professionals to interact with the environment using the
actuators and the sensors. The beginner devices were simple motion detectors, robots, and
thermostats.
In mid-2011, the estimated production of Arduino commercially was 300,000. In 2013, the
Arduino boards in use were about 700,000.
Around April 2017, Massimo Banzi introduced the foundation of Arduino as the "new beginning
for Arduino". In July 2017, Musto continued to pull many Open Source licenses and the code from
the websites of the Arduino. In October 2017, Arduino introduced its collaboration with the ARM
Holdings. The Arduino continues to work with architectures and technology vendors.
Arduino Download
The Arduino software (IDE) is open-source software. We are required to write the code and
upload the code to the board to perform some task.
The Arduino IDE software can be used with any type of Arduino boards. The software is available
for various operating system such as, Windows, Linux, and Mac OS X.
1. Go to the official website of Arduino (https://www.arduino.cc/) > Click on SOFTWARE < click
on DOWNLOADS, as shown below:
Or
Learning Activity
3. Give at least three (3) examples and discuss each classification of Embedded Systems:
a. Real-Time b. Stand Alone
c. Networked d. Mobile