Embedded Part II
Embedded Part II
1. Task administration: RTOSs can switch from one task to another in 3
microseconds or less.
2. Availability: RTOS systems are accessible 24/7, making them ideal for
applications that must run continuously.
3. Dependability: Hard RTOSs are error-free.
4. Predictability: Tasks are executed within a certain deadline, regardless of
the system load or external interruptions.
5. Resource optimization: Tasks are intelligently scheduled based on priority,
urgency, and duration.
6. Easy to layout, develop, and execute: RTOSs allow for easy layout,
development, and execution of real-time applications.
7. Maximum utilization of devices and systems: RTOSs have extra compact
working structures that require less memory space.
8. Focus on running applications: RTOSs focus on running applications and
less importance to applications that are in the queue.
Idle: The task has been created, but the kernel has not scheduled it.
●
● Ready: The task is ready to execute, but is not running because a higher
priority task is executing.
● Running: The task is executing and has access to all the shared resources
it needs.
● Blocked: The task is waiting for an external or temporal event.
● Dormant: The task has been created, but the kernel has not scheduled it.
● Interrupted (ISR): The CPU is servicing an interrupt.
In an embedded system, a task's state indicates its milestone in a process. The
number of possible task states depends on the RTOS.
● T
he IEEE 802.11 protocol is a set of specifications for wireless local area
networks (WLANs). It's the first wireless networking standard to be widely
adopted and is the basis for Wi-Fi wireless networks. The protocol
specifies the interface that enables over-the-air signaling between two or
more wireless clients. It's the main bearer of communication for different
electronic devices, including laptops, tablets, televisions, and actuators.
● T
he IEEE 802.11 protocol architecture consists of three layers: logical link
control (LLC), media access control (MAC), and physical. The LLC layer
provides an interface to higher layers and performs basic link layer
functions.
● T
he IEEE 802.11 MAC frame defines three types of frames: management
frames, control frames, and data frames. Management frames are used for
network management, control frames are used for coordination between
Wi-Fi devices, and data frames are used for the transmission of actual
data.
n Arithmetic Logic Unit (ALU) diagram shows the inputs, processes, outputs,
A
and storage registers of the ALU. The ALU is the core of a computer, performing
arithmetic operations on numbers such as addition and subtraction.
A basic ALU has three parallel data buses, consisting of two input operands (A
and B) and a result output (Y). Each data bus is a group of signals that conveys
one binary integer number. The ALU performs the operation as C = A op B,
where the input data are stored in A and B.
An ALU diagram may include the following components:
● N OT Gate: A transistor and one input logic gate that creates outputs that
are the opposite of the input
● OR Gate: Has multiple transistors and two inputs, with an output of 1 only
if the first or second input is a 1
● AND Gate: Has multiple transistors and two inputs
● Decoder: Serves as a selector that only activates one of the enable lines at
a time, so that only one operation result will be forwarded to the OR gate
that leads to the output.
T
● here aren't enough resources for each process
● Not enough resources have been allocated to one process or the other
● All the following conditions in a system are fulfilled simultaneously:
1. Mutual exclusion
2. Circular wait
3. Resource holding
4. No preemption
● C ontrol access to a shared device: For example, a printer, where you don't
want two tasks to send to the printer at once
● Task synchronization: By tasks taking and giving the same semaphore,
you can force them to perform operations in a desired order
● Asynchronous event notification: Semaphores can be used
asynchronously without acquiring a mutex lock.
➢
Datapath:
The datapath is a crucial component of a processor (CPU). It consists of various
functional units responsible for data manipulation and storage.
❖
Key elements within the datapath include:
1. Registers: Fast memory used for efficient execution of programs and
operations.
2. ALU (Arithmetic Logic Unit): Performs arithmetic and logic operations.
3. Buses: Transfer data between different components.
The datapath is responsible for executing instructions by performing the
necessary operations on data1122.
➢
Functional Units in the Datapath:
● Program Counter (PC): Holds the address of the next instruction to be
executed from memory.
● Register File: Contains general-purpose registers for temporary data
storage.
● Instruction Memory: Stores program instructions.
● ALU: Performs arithmetic (addition, subtraction, multiplication, etc.) and
logic (AND, OR, NOT) operations.
● Data Buses: Transfer data between components.
● Control Unit: Directs the datapath on when and how to route and operate
on data33.
➢
Execution of Instructions:
❖ The datapath is involved in executing instructions through the following
steps:
1. Fetch: Retrieve the instruction from memory (controlled by the PC).
2. Decode: Interpret the instruction.
3. Fetch Operands: Retrieve data (operands) required for the operation.
4. Execute: Perform the specified operation (e.g., add, compare, shift).
5. Write Result: Store the result back (if needed).
hese steps ensure that instructions are processed correctly and efficiently.
T
SB supports three types of speed: low speed (1.5 Mbps), full speed (12 Mbps),
U
and high speed (480 Mbps). USB 2.0 has a maximum data transfer speed of 480
Mbps, and USB 3.2 has a maximum data transfer speed of 5 Gbps.
ache memory is a faster and smaller segment of memory that acts as a buffer
C
between the CPU (central processing unit) and the main memory (RAM). Let’s
explore its functions and benefits:
Faster Access:
● Cache memory provides faster access compared to main memory.
● It resides closer to the CPU, often on the same chip or in close proximity.
● By storing frequently accessed data and instructions, cache memory
reduces the time needed to retrieve them.
real time clock (RTC) is a digital clock that keeps accurate time and date
A
information for a system, even when the device is shut down, loses power, or has
an energy-saving “sleep mode” function. RTCs are often integrated circuits and
can have the following benefits:
● Reliable timekeeping: RTCs can maintain time during system states like
hangs, reboots, and full shutdowns.
● Low power consumption: RTCs can be important when running from
alternate power.
● Time-critical tasks: RTCs can free up the main system for time-critical
tasks.
● Accuracy: RTCs can sometimes be more accurate than other methods.
RTCs often have an alternate power source, such as a lithium battery.
ery Long Instruction Word (VLIW)or VLIW Machines. VLIW uses Instruction
V
Level Parallelism, i.e. it has programs to control the parallel execution of the
instructions.
❖ Features :