Embedded System 2023
Embedded System 2023
peripherals1
IBM 370/168
VAX 11/780
Intel 80486
Motorola 6800, 6809 and 68000 families
Intel 8080, iAPX 432 and x86 family
Zilog Z80, Z8 and Z8000 families
National Semiconductor NS320xx family
MOS Technology 6502 family,
Inter-Integrated Circuit
RCLK
six classes
phones, and home networking modules due to its low power consumption and
reasonable performance . The ARM processors have a reduced instruction set,
1
which allows for a smaller size for the IC, making them space efficient . By
2
combining the ARM microprocessor with RAM, ROM, and other peripherals in
one single chip, an ARM microcontroller is created . The ARM microcontroller
2
OR
Interrupt is a method of creating a temporary halt during program
execution and allows peripheral devices to access the microprocessor . It is
123
When an interrupt occurs, the processor suspends its current task and
hands control to the ISR. The ISR then executes the code required to
handle the interruption, which may include storing the context of the
interrupted task, processing the interrupt request, and restoring the
context of the interrupted task after handling the interruption. This
allows the system to respond quickly to time-critical events and
ensure the proper functioning of the entire system.
RTOS
OS
Parameters of
RTOS OS
Comparison
Embedded systems are purpose-built systems that are tailored for specific
applications, optimizing design, reducing costs, and improving power
efficiency . They are an essential component of the IoT ecosystem and provide
1
specific tasks, being low cost, time-specific, low power, and high efficiency .
4
The shared data problem arises when multiple processes access the
same shared data concurrently, leading to data inconsistency and race
conditions. Process synchronization is a technique that can be used to
coordinate the processes that use shared data 1. Task synchronization
is a type of process synchronization that is used to synchronize the
access of shared data between tasks 2.
The following steps can be taken to overcome the shared data
problem with task synchronization technique:
1. Mutual Exclusion: Mutual exclusion is a technique that ensures
that only one task can access the shared data at a time. This can
be achieved using locks, semaphores, or monitors 3.
2. Synchronization: Synchronization is a technique that ensures
that tasks are executed in a specific order. This can be achieved
using semaphores or monitors 3.
3. Deadlock Prevention: Deadlock occurs when two or more tasks
are blocked, waiting for each other to release
resources. Deadlock can be prevented by ensuring that tasks do
not hold resources indefinitely and by using timeouts 3.
4. Starvation Prevention: Starvation occurs when a task is
blocked indefinitely and is unable to access the shared
data. Starvation can be prevented by using techniques such as
priority scheduling 3.
8051 Microcontroller
Architecture
Let's see the internal architecture of 8051 Microcontroller
represented in form of block diagram as shown below:
Types of buses in
Round-Robin Algorithm
The round-robin approach is a time-sharing scheduling algorithm. In the round-
robin
scheduling, a time slice is assigned to each task in a circular order. Tasks are
executed without priority. There is an FIFS (first-in-first-service) queue that
stores all
tasks in the ready state. Each time, the task at the head of the queue is removed
from the queue and dispatched for execution. If the task is not finished within
the
assigned time slice, it is placed at the tail of the FIFS queue to wait for its next
turn.
The round-robin scheduling algorithm is simple to implement. It is fair to all
tasks in
using the processor. The major drawback is that it delays the completion of all
tasks
and may cause tasks to miss their deadlines. It is not a good option for
scheduling
tasks with hard deadlines.