CH5 Part 1
CH5 Part 1
CH5 Part 1
and Applications
INTRODUCTION TO MICROCONTROLLER
At the end of this chapter, the students
should be able to.…
Microprocesso
• To control some r • Miniaturization – onto
process one chip
• Built from logic • Smaller size – fit onto • Contains CPU,
components small cct board Memory, I/O, timers
• Large, heavy boxes • Eg: Zilog Z80, Intel and interrupt (Fig. 1.2)
8088, Motorola 6809,
etc.
• ~ a CPU (Fig. 1.1)
Microcontrolle
Controller
r
CPU
THE BUSES:
ADDRESS, DATA,
AND CONTROL
Terminology used for microcontrollers
Machine Cycle
To execute an instruction–the processor
must:
1. Fetch the instruction from memory
2. Decode the instruction
3. Execute the instruction
4. Store the result back in the memory.
CPU (Central Processing ONE machine cycle = ‘X’ clock cycles
Unit) (‘X’ depends on the particular
instruction being executed).
• Brain of the computer
• Admin all activities in the
system
• Perform all data PROCESSO
operations based on Faster
R IS
FASTER!
instruction set (set of execution of
instructions
binary codes) Time to
complete a
cycle ↓
• Fetching
Clock cycle
• Executing ↓
Terminology used for microcontrollers
CONTROL/MONITOR
(INPUT/OUTPUT) DEVICES
INTERNAL
BUS MEMORY INSTRUCTIO ARCHITECTUR
Microcontrollers N SET E
can be WIDTH
classified on the
basis of internal
bus width,
architecture,
memory and
instruction set.
FAMILY
Types of Microcontrollers
EMBEDDED MICROCONTROLLERS
When an embedded system has an microcontroller unit that has
ON all the functional blocks (including program as well as data
S ED RY memory) available on a chip is called an embedded
BA EMO microcontroller. For example, 8051 having Program & Data
M Memory, I/O Ports, Serial Communication, Counters and Timers
and Interrupt Control logic on the chip is an embedded
microcontroller.
ON N
S ED TIO
C
BA RU T RISC (REDUCED INSTRUCTION SET COMPUTER)
N ST SE ARCHITECTURE MICROCONTROLLERS
I The industry trend for microprocessor design is for Reduced
Instruction Set Computers (RISC) designs. When a
microcontroller has an instruction set that supports fewer
addressing modes for the arithmetic and logical instructions,
and for data transfer instructions, the microcontroller is said
to be of RISC architecture.
D ON Harvard
E R
BAS TECTU and
C HI
AR E von-Neumann Architecture