Lecture Notes 1
Lecture Notes 1
Lecture Notes 1
No Topics Page #
1 Learning Objectives 2
2 Computer versus Microcontroller 3
3 Functional Blocks of a typical Microcontroller 4
4 Microcontroller Memory: W / R operations 5
5 Hardwired logic system versus Microcontroller system 6
6 Processor Architecture Overview 7
7 Revision exercises 8
1
Learning Objectives
2
2.0: Computer versus Microcontroller
ALU:
Arithmetic & Logic
unit
Memory unit
DISKS :
HDD
FDD
MPU MEMORY CDROM
P5 120 MB DVD
4
2.3 Computer Software configuration:
System software Application software
( Operating System)
2.4 Microcontroller:
an electronic device that includes microprocessor, memory,
I/O (inputs and outputs) on a single chip.
5
“In other word, is a computer on a chip”
VERSUS
Applications
Merits
Demerits
6
Sample Microcontroller
Applications
Calculating Automobile
machine
Industrial Renewable
automation energy
7
Hardware components of a Microcontroller Unit:
Major components:
___________________________________________________
___________________________________________________
___________________________________________________
Supporting devices:
____________________________________________________
Merits:
Demerits:
Merits:
Demerits:
9
10
3.3 – Microprocessor Architecture
Main components:
1. Arithmetic and Logic Unit (ALU) 2. Control Unit (CU)
3. Register Arrays 4. System Bus 5. Memory
11
12
4.0: Microcontroller Memory
4.1 Background:
Memory is a semiconductor chip that stores binary information
(instruction and data), and supply that information to the
microprocessor when requested.
It is made up of registers arrange in sequence.
Each register can store fixed number of bits, e.g. 8bits wide register
Address Data
0000 D0 D1 D2 D3 D4 D5 D6 D7
Quize#: If a Microcontroller has a 21bits address bus and 8 bits data BUS, what is
total memory size of the microcontroller?
13
4.2 - Memory Classifications
Quizes#:
What is the difference between ROM & RAM memory?
What type of memory is been used in microcontroller system?
Give an example of application when permanent memory is
necessary. Justify your answer with reason.
14
Additional Notes on Type of Memory:
15
16
17
18
4.3 – Memory Operations :
Address Bus
0X..F
Memory
WR / RD Control
MPU
0X..00
Data Bus
Merits
Demerits
20
6.0: Processor Architecture Overview
Hardware Software
Computer architecture in which the data and the Complex Instruction Set Computer.
program are both stored in the system's memory in a
linear address space. This architecture is, to this day the EX : All CPU and MPU based computers
basis of modern computer design, Uses this Architecture
Proposed by Dr John Von Neumann All PC’s / Laptops Uses this Architecture
Memory Notes:
MPU Instruction and data use the same buses
Large instruction set
RISC ( risk )
Ex : All CPU & MPU based computers uses this Ex: All MCU’s uses this Architecture.
Architecture including PC’s and Lap Tops
Notes:
Harvard Architecture Minimizes number of instruction
Computer architecture with physically separated Minimizes number of addressing modes
storage Space for Program and Data, and also signal and instruction that access memory
path ways.
Most instruction are executed in one
Proposed by : Harvard Mark I cycle
Data bus
Data
21