Professional Documents
Culture Documents
AND MICROCONTROLLER
Chapter 1 – Introduction to
Microprocessor and Microcontroller
Microprocessor Systems
Chapter Outline
Chapter 1: Introduction to Microprocessor vs. Microcontroller
Microprocessor and Microcontroller
Microprocessor Overview
© C. Uttraphan
Microprocessor Overview
The microprocessor is one of the unsung heroes of the modern era. Like
the car designer whose vehicle gives the racing driver glory, the
microprocessor makes quite incredible things possible all over the
world. Each year we benefit from faster and more efficient performance
which improves not just computing, but also numerous fields from
retail and industry to agriculture and vehicle safety. This year, the
humble microprocessor celebrates its 51st birthday. Since 1971, it has
become the brain of literally billions of devices - without the
microprocessor they would not have existed.
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
1977
Commodore PET
The PET is widely
acknowledged as the first
all-in-one home computer
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
Arcade mania
Nintendo NES
Namco introduced Pac-
The gaming industry was
Man in the arcade of the
revitalised by consoles such as
US and sparked a huge
Nintendo Entertainment
craze
System
1980 1986
1981
Osborne 1 Laptop
With a 5” screen, and weighing
10.7kg, it really was the ‘great’
grandfather of modern laptops
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
1991 1999
1997
MP3 Player
The way we listen to music was
forever changed in the late 1990s
with the first MP3 player
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
2001 2008
2002
Microsoft Windows Tablet
Almost a decade before the
consumer obsession with tablets,
businesses were using them for
more functional tasks
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
2010 2012
2011
Ultrabook
The evolution of PC takes
another big step as a stylish
Ultrabook devices push forward
mobile, high performance
computing
*Source: Intel
© C. Uttraphan
Evolution of Microprocessor
Artificial Intelligence
The microprocessor is the
core of machine learning!
2021 –
© C. Uttraphan
RISC and CISC Architecture
© C. Uttraphan
RISC and CISC Architecture (Cont..)
RISC Philosophy
• Instructions - RISC processors have a reduced number of instruction classes.
These classes provide simple operations that can each execute in a single cycle.
The compiler or programmer synthesizes complicated operations (for example,
a divide operation) by combining several simple instructions. The CISC relies
more on the hardware for instruction functionality, and consequently the CISC
instructions are more complicated.
• Pipelines - The processing of instructions is broken down into smaller units that
can be executed in parallel by pipelines. Ideally the pipeline advances by one
step on each cycle for maximum throughput. Instructions can be decoded in
one pipeline stage. There is no need for an instruction to be executed by a mini-
program called microcode as on CISC processors.
© C. Uttraphan
RISC and CISC Architecture (Cont..)
RISC Philosophy
• Registers - RISC machines have a large general-purpose register set. Any
register can contain either data or an address. Registers act as the fast local
memory store for all data processing operations. In contrast, CISC processors
have dedicated registers for specific purposes.
• Load-store architecture - The processor operates on data held in registers.
Separate load and store instructions transfer data between the register bank
and external memory. Memory accesses are costly, so separating memory
accesses from data processing provides an advantage because you can use
data items held in the register bank multiple times without needing multiple
memory accesses. In contrast, with a CISC design the data processing
operations can act on memory directly.
© C. Uttraphan
Microprocessor Systems
Address bus
© C. Uttraphan
Microprocessor System (Cont..)
Device Function
© C. Uttraphan
Microprocessor System (Cont..)
© C. Uttraphan
Microprocessor System (Cont..)
Registers
• Used to store data temporarily.
• Can be 8-bit, 16-bit, 32-bit and 64-bit registers (depending on the CPU. The
bigger the better but increase the CPU cost).
ALU (Arithmetic Logic Unit)
• Perform arithmetic functions – add, subtract, multiply and divide Logic function:
AND, OR, NOT
Program counter
• To point to the address of the next instruction to be executed.
Instruction decoder
• Interpret the instruction fetched into the CPU. Storing the meaning of each
instruction and what steps the CPU should taken upon receiving a given
instruction.
© C. Uttraphan
Microprocessor System (Cont..)
© C. Uttraphan
Microcontroller
© C. Uttraphan
Microcontroller (Cont…)
© C. Uttraphan
Microprocessor vs Microcontroller
Microcontroller Microprocessor
Devices Microchip’s PIC’s Intel’s x86 family (8086,
series, Atmel’s AVR 80286, 80386, 80486 &
series, ARM M Series the Pentium) or
(Motorola’s PowerPC
family), ARM A Series
Components Internal CPU, RAM, External RAM, ROM, and
ROM, I/O ports and I/O ports
timers
Application Perform specific Perform more tasks that
function: A small set of related to general
signal processing requirements: calculations
functions for digital of software, personal
signal processor computer
© C. Uttraphan
Microprocessor vs Microcontroller (Cont..)
CPU / μP
μC
CPU / μP DATA BUS
Control Unit
CONTROL BUS
© C. Uttraphan
ARM® Processor core
© C. Uttraphan
ARM® Processor core
© C. Uttraphan
ARM Offices Worldwide
© C. Uttraphan
ARM Partners
© C. Uttraphan
ARM Profile
▪ Application profile (Cortex-A)
▪ Memory management support (MMU)
▪ Highest performance at low power
▪ Influenced by multi-tasking OS system requirements
▪ TrustZone and Jazelle-RCT for a safe, extensible system
▪ e.g. Cortex-A5, Cortex-A9, Cortex-A76, Cortex-A78
Application includes:
▪ Industrial Automation
▪ Safe PLCs (Programmable Logic Controllers)
▪ Power Generation/Distribution
▪ Medical/Health
64-bit 32-bit
▪ Motor Controls Year Core Year Core
2020 Cortex-R82(F) 2011 Cortex-R4(F)
2011 Cortex-R5(F)
2011 Cortex-R7(F)
2016 Cortex-R8(F)
2016 Cortex-R52(F)
© C. Uttraphan
ARM Profile
Cortex-M Series Processors
High Performance 32-Bit computing. Balances reduced power
consumption, processing power and cost effectiveness to compete
directly with and upgrade from legacy 8-bit and 16-bit microcontrollers.
32-bit
▪ Small Footprints Year Core
▪ Low Power/Sleep Optimized 2004 Cortex-M3
▪ Clock Speeds 16 – 180Mhz 2007 Cortex-M1
▪ Operating Temps from Consumer to Industrial/Automotive 2009 Cortex-M0
Grade 2010 Cortex-M4
▪ Various Connectivity options including Automotive CAN bus 2012 Cortex-M0+
available.
2014 Cortex-M7
2016 Cortex-M23
Applications include: 2016 Cortex-M33
▪ Microcontrollers 2018 Cortex-M35P
▪ Smart Sensing 2020 Cortex-M55
▪ Mixed Signals
▪ Automotive Sensors/Systems
© C. Uttraphan
ARM Processors (Application)
© C. Uttraphan
Exercise