CMPE 246 Lecture 2 - (Jan.9)
CMPE 246 Lecture 2 - (Jan.9)
Design Studio
Dr. Ling Bai
[email protected]
IEEE Member, ACM Member
Faculty of Applied Science | School of Engineering
The University of British Columbia, Okanagan Campus
1137 Alumni Avenue, Kelowna BC, V1V 1V7 Canada
Instructor Name: Ling Bai
2
1- Lecture 2
3
2- Last Lecture
In the previous lecture, we reviewed the course structure, assessments.
We also discussed embedded systems, real-world applications, the
design flow, and design models.
4
1- Review Last Lecture
5
2- Embedded System Architecture
6
2- Embedded System Architecture
7
2- Embedded System Architecture
The human body is a natural representation of an embedded
architecture. Organs like the brain (processor), heart (power supply),
and muscles (actuators) are interconnected and work together to
perform complex tasks.
8
2- Embedded System Architecture
9
2- Embedded System Architecture
brain (processor)
Smile
muscles (actuators)
nervous (buses)
10
2- Embedded System Architecture
To group the components within devices as layers in an embedded system
architecture, we can break them down into three main layers: hardware
layer, system software layer, and application software layer.
11
2- Embedded System Architecture
Application Software
System Software
Hardware
Application Software
System Software
Hardware
Application Software
System Software
Hardware
16
2- Embedded System Architecture
All electronic components that make up the circuit are connected to this board,
either by soldering, plugging in to a socket, or some other connection
mechanism.
17
2- Embedded System Architecture
18
2- Embedded System Architecture
At the highest level, the major hardware components of most boards can be
classified into five major categories:
20
3- Embedded Processor
An embedded processor is a micro-processor that is designed
especially for handling the needs of an embedded system. It is a class
of computer chip that is embedded in various machines.
chee
se
instruction
23
3- Embedded Processor
• The faster your brain processes the "cheese" command, the better
the quality of the photo.
24
3- Embedded Processor
25
3- Embedded Processor
26
3- Embedded Processor
They are used in computers and other devices that require high-
performance processing capabilities.
27
3- Embedded Processor
28
3- Embedded Processor
Clock speed: The clock speed of a processor determines how fast it
can execute instructions. General-purpose processors typically have
high clock speeds, which allows them to perform tasks quickly.
2. Microprocessors
31
3- Embedded Processor
33
3- Embedded Processor
3. Microcontrollers
A microcontroller is a small, low-power computer that is contained in a
single integrated circuit (IC).
It is a type of embedded processor that is used in a wide range of
devices, including consumer electronics, industrial control systems, and
automotive systems.
34
3- Embedded Processor
3. Microcontrollers
Peripherals:
which allow them to interface with external devices.
35
3- Embedded Processor
E.G.
Analog-to-Digital Converters(ADC):
a system that converts an analog signal( continuous-time
signal), such as a sound picked up by a microphone or light
entering a digital camera, into a digital signal(0,1...).
36
3- Embedded Processor
3. Microcontrollers
Input/output (I/O) pins: Microcontrollers have a set of I/O pins that can
be used to interface with external devices.
37
3- Embedded Processor
3. Microcontrollers
Size: Microcontrollers are small, which makes them suitable for use in
38
compact devices.
3- Embedded Processor
39
3- Embedded Processor
4. Digital Signal Processor (DSP)
Digital signal processors (DSPs) are specialized microprocessors that are
designed to process digital signals.
They are used in a wide range of applications, including audio and video
processing, telecommunications, and control systems.
40
3- Embedded Processor
4. Digital Signal Processor (DSP)
42
3- Embedded Processor
4. Digital Signal Processor (DSP)
43
3- Embedded Processor
5. Single-Purpose Embedded Processor
44
3- Embedded Processor
5. Single-Purpose Embedded Processor
45
3- Embedded Processor
5. Single-Purpose Embedded Processor
49
3- Embedded Processor
https://youtu.be/i_g1dD5fFLo
50
3- Embedded Processor
Microcontroller:
• Combines a CPU, memory, and I/O peripherals on a single chip.
• Designed for specific control-oriented tasks in embedded systems.
Microprocessor:
• Focuses on high-speed processing but lacks integrated peripherals like GPIO, memory, or
storage.
• Requires external components to function.
51
3- Embedded Processor
Key Differences Between Microcontroller and Microprocessor in
Raspberry Pi 4
52
3- Embedded Processor
The Raspberry Pi 4 is powered by a microprocessor (Broadcom
BCM2711), making it a small yet powerful computer capable of running a
full operating system and handling demanding applications.
53
3- Embedded Processor ARM stands for Advanced RISC Machine.
It is a family of processors based on the
RISC (Reduced Instruction Set Computer)
architecture.
• Highly power-efficient
• Lightweight and scalable
RAM ROM
Random Access Memory Read-Only Memory
Temporary Permanent
Desk Bookshelf
56
4- Memory
Types of Memory in Embedded Systems
RAM ROM
Random Access Memory Read-Only Memory
Permanent
60
4- Memory
Bus(es) Memory
01
interconnects the other components, where the system’s software
providing a “highway” for data to travel 05 02 is stored
on from one component to another
62
5- Architecure Types
Two types of the embedded systems
Computer scientist John von Neumann was the one who proposed
the Von Neumann architecture. One data path, or bus, serves as both
an instruction and a data path in this architecture.
63
5- Architecure Types
Two types of the embedded systems
The Harvard architecture provides separate signal and storage buses
for instructions and data. These types of architecture in embedded
system prevent access to the instruction storage as data.
64
5- Architecure Types
https://youtu.be/IEYFlGLAhyo
65
5- Architecure Types
Basic structure of the embedded systems
66
5- Architecure Types
Basic structure of the embedded systems
67
5- Architecure Types
Basic structure of the embedded systems
68
5- Architecure Types
Basic structure of the embedded systems
70
6- Advantages of Embedded Systems
71
6- Advantages of Embedded Systems
72
6- Advantages of Embedded Systems
• Accuracy
73
6- Advantages of Embedded Systems
• Price
74
6- Advantages of Embedded Systems
• Portability
75
7- Raspberry Pi 4
Your credit card-sized microcomputer!
A wide range of practical applications, from basic computing tasks to advanced embedded systems and IoT projects. 76
7- Raspberry Pi 4
Your credit card-sized microcomputer!
Raspberry Pi
https://youtu.be/eZ74x6dVYes
mathematical constant,
symbolizing innovation and 77
computing
7- Raspberry Pi 4
78
7- Raspberry Pi 4
Raspberry Pi Zero
79
7- Raspberry Pi 4
80
7- Raspberry Pi 4
81
7- Raspberry Pi 4
82
7- Raspberry Pi 4
83
7- Raspberry Pi 4
https://www.raspberrypi.com/pro
ducts/raspberry-pi-4-model-b/
84
7- Raspberry Pi 4
85
7- Raspberry Pi 4
kits
86
7- Raspberry Pi 4
Lab:
20 stations
87
7- Raspberry Pi 4
88
7- Raspberry Pi 4
02 03
01
Advanced Labs
Intermediate Labs
Introduction Labs Involve complex problem-solving tasks,
Focus on interfacing with
integrating multiple components, and developing
Focus on setting up hardware components and
applications that use any kink of machine
the environment and managing data input/output.
learning and IoT technologies.
simple coding
exercises.
90
Dr. Ling Bai
(email: [email protected])