Microcontroller_Notes
Microcontroller_Notes
In this section we discuss the need for microcontrollers and contrast them
with general-purpose microprocessors such as the Pentium and other x86
microprocessors. We also look at the role of microcontrollers in the
embedded market. In addition, we provide some criteria on how to choose
a microcontroller.
It has a large circuit because of the external Because of the internal memory and i/o
i/o components attached externally. components, a microcontroller has a small
size of the circuit.
The external components consume much The lower the number of external
amount of power which increases the power components, the lesser the total power
consumption rate resulting in high power consumption, thus making it more suitable for
consumption. This makes it less suitable for devices exhausting stored power like the
devices that run on batteries with power that power in the batteries.
can be exhausted easily.
When it comes to being power efficient, the When it comes to being power efficient, the
major number of microprocessors are not major number of microcontrollers is efficient
Architecture and Role of microcontroller in Embedded System
3. Resource Constraints
Limited Memory and Processing Power: Embedded systems are often
designed with specific resource constraints in mind, including limited
memory and processing power. This necessitates efficient programming
and resource management. This will help bring down the cost of the
system.
Power Efficiency: Many embedded systems, especially those in the
portable devices category, are designed for low power consumption to
extend battery life and reduce energy costs. You would like the battery in
your glucometer to last longer. Most of the cars have keyless entry
systems and you don’t want to change the batteries on your remotes too
often.
5. Compact Size
Miniaturization: Embedded systems are typically compact, designed to
fit within the physical constraints of the devices they control. This is
particularly important in consumer electronics, medical implants, and
wearable technology. Moore’s law has helped here significantly to
package a significant amount of logic inside the SoCs using deep
submicron technologies.
Integration: The components of an embedded system, including the
microcontroller, memory, and peripherals, are often integrated onto a
single chip to save space and reduce complexity. Multi Chip Modules
(MCMs) and 3-D integration are further improving the integration.
6. Embedded Software
Firmware and Operating System: The software running on an
embedded system, often referred to as firmware, is usually stored in read-
only memory (ROM) or flash memory. This software is specifically written
to perform the system’s designated tasks. Many of the high end
embedded systems are running operating systems like Linux, low footprint
Linux variants, QNX etc.
Efficient Code: Given the resource constraints, embedded software must
be highly efficient, both in terms of processing speed and memory usage.
Depending on target domains standards and guidelines have evolved on
how to write code. For example AUTOSAR and MISRA guidelines for
automotive applications.
8. Cost Sensitivity
Cost-Effective Design: Embedded systems are typically designed to be
cost-effective, balancing performance with budget constraints. This is
crucial in consumer electronics, where cost can be a significant factor in
market success.
Applications of Embedded Systems
Embedded systems are found in a wide array of applications across
various industries:
Consumer Electronics: Smartphones, smart TVs, and digital cameras.
Automotive: Engine control units (ECU), Anti Lock Braking Systems (ABS)
with Electronics Brakeforce Distribution (EBD, Airbags, Infotainment
systems, and advanced driver-assistance systems (ADAS).
Healthcare: Medical devices like pacemakers, MRI machines, and
Glucometers
Industrial Automation: Robotics, assembly line controllers, and process
monitoring systems.
Home Appliances: Washing machines, refrigerators, and microwave
ovens.
Telecommunications: Routers, modems, and base stations.
Interoperability
Embedded systems must often interact with other systems, requiring
careful design to ensure compatibility. In low end systems the system
(hardware and firmware) is optimized for the specific operation and
interoperability may be a big challenge.
Future Trends in Embedded Systems
IoT Integration
The Internet of Things (IoT) is driving the evolution of embedded systems,
enabling more devices to connect and communicate over networks. The
number of devices on the internet has already crossed the number of
humans.
Artificial Intelligence
AI is being integrated into embedded systems for smarter and more
autonomous operations. Tiny ML is the new focus area to optimize the ML
models on low footprint memory devices.
Edge Computing
Embedded systems are increasingly used for edge computing, processing
data closer to where it is generated to reduce latency and bandwidth use.
Wearable Technology
Embedded systems are at the heart of wearable devices, offering new
functionalities and applications in health monitoring and personal fitness.
Fitbit and similar devices have mushroomed into the market to help us
measure many vital parameters all the time.
Hardware Layers
Physical Layer
The physical layer consists of the devices and
transmits data in binary form (as 0s and 1s). It
also includes wireless network connections and
network components like repeaters, modems,
cabling, etc. This layer is crucial in the IoT
architecture because it forms the base of the 7-
layer architecture of IoT.
Network Layer
Session Layer
Presentation Layer
Application Layer
1.1. Sensors
1.2. Actuators
2. Physical Gateways
Gateways serve as the entry point and exit points within the IoT
layers. It manages device connectivity and security in the network
by authenticating the first layer of filtering the raw data collected
from the devices.
3. Data Lake
4. Control Applications
4.1.User Interfaces
4.1.1. Mobile:
Business logic refers to the rules and algorithms that govern the
behavior of the IoT system. It includes:
Defining automation rules and conditions under which certain
actions should be taken.
Implementing algorithms for intelligent decision-making.
Designing process workflows to streamline operations and
improve efficiency.
Scalability
Reliability
Many different microcontrollers are available on the market, each with its
features and capabilities. Some common microcontrollers in IoT
applications include Arduino, Raspberry Pi, and ESP8266.
Look at the available MCUs − Once you know your application needs,
you can look for the right microcontroller unit (MCU). It is important to
compare different MCUs to make sure it meets your requirements.
Test and evaluate − Once you have narrowed down your options, it is a
good idea to test and evaluate the performance of the MCUs you are
considering. This can help you determine the best fit for your application.
By following these steps, you can choose the best microcontroller for your
IoT application and ensure that it meets your requirements.
Explore our latest online courses and learn new skills at your own pace.
Enroll and become a certified expert to boost your career.
Microcontrollers in IOT
Microcontrollers used in IoT open-source environment, design issues,
operating conditions and requirements, platform details.