Lecture 02 - Microcontroller
Lecture 02 - Microcontroller
Embedded Systems
SPRING 2023
Lecture 02 – Microcontroller
Instructor: Dr. Tarek Abdul Hamid
What is “Computer Architecture” ?
Computer Architecture =
Instruction Set Architecture + Computer Organization
Instruction Set Architecture (ISA)
WHAT the computer does (logical view)
Computer Organization
HOW the ISA is implemented (physical view)
High-Level Languages
Machine independent High-Level Language
Machine specific Low-Level Language
Assembly Language
Machine Language
Hardware
Assembly language
Slightly higher-level language
Readability of instructions is better than machine language
One-to-one correspondence with machine language instructions
Computers only deal with binary data, hence the instructions must be
in binary format (0s and 1s).
The set of all instructions (in binary form) makes up the computer's
machine language.This is also referred to as the instruction set.
Address Space is
the set of memory
locations (bytes) that
can be addressed
Bigger
Main Memory (1 – 2 GB) Faster Memory Bus
Access time: 50 – 70 ns
Memory
Disk Storage (> 200 GB)
I/O Bus
Access time: milliseconds
Disk, Tape, etc
Instruction Fetch
Compute address of next instruction
Instructions are then sent to the instruction cache, data to the data
cache
Also receives the processed data and sends it to the main memory
This unit receives the programming instructions and decodes them into a
form that is understandable by the processing units, i.e. the ALU or FPU
The new breed of popular microprocessors have not one but two almost
identical ALU’s that can do calculations simultaneously, doubling the
capability
The ALU can do these calculations as well, but will do them very slowly
The ALU & FPU store intermediate and final results from their
calculations in these registers
Processed data goes back to the data cache and then to main memory
from these registers
Intel
Early micros 40xx in early 70’s
x86 (086,…,486, Pentium, Pentium Pro, Pentium 3, Pentium 4) from
1980 on
IA-64 (Itanium) in 2001
SUN
Sparc, Ultra Sparc 1985 0n
MIPS-SGI
Mips 2000, 3000, 4400, 10000 from 1985 on
Word at address 0
Word at address 4
Word at address 8
Application Programs
Level 5
Increased level
High-Level Language
of abstraction
Software Assembly Language Level 4
Operating System
Level 3
Microarchitecture (Level 1)
Controls the execution of machine instructions (Level 2)
Implemented by digital logic
Microprocessor
Optimised to coordinate flow of information b/w separate memory and
peripheral devices located outside itself
System bus (AB / DB / CB) - up uses to select the peripheral for sx/rx data
Microcontroller
Processor and peripherals on single silicon
Self-contained device – rarely bus structures extend outside package