Chapter 1 Intro To Micropro
Chapter 1 Intro To Micropro
CHAPTER 1: INTRODUCTION TO
MICROCONTROLLERS
1
I believe I can fly!!!
2
I feel energetic now !!!
3
Don’t worry!!!
4
1.1 MICROPROCESSORS AND
MICROCONTROLLERS: CHARACTERIZATION
What is a system?
Watch
- A time display system
Parts: Hardware, needles, battery, etc.
Plan
- All needles move clockwise only.
- A thin needle rotates every second.
- A long needle rotates every minute.
- A short needle rotates every hour.
An arrangement in which all its units assemble and work together according to
the plan
5
BLOCK DIAGRAM OF A GENERIC
MICROCOMPUTER
Data
Memory
The Central
Outside Input/
Processing
World Output
Unit (CPU)
Program
Memory
▪ Volatile
-works as long as it is powered.
-Loses its stored value when power off.
-Easy to write electrically.
-Used for data memory
-Examples: Random Access Memory
(RAM)
▪ Non Volatile
-Retains its stored value when power off.
-Hard to write electrically.
-Used for program memory.
-Examples: Read-Only Memory (ROM)
10
MEMORY ORGANISATION
Address
Data
Data
Memory Memory
Data
Address Address
Central Central
Processing Input/ Input/
Output Processing
Unit (CPU) Output
Data Unit (CPU) Data
Address
Program
Memory Program
Memory
Data
Complex Instruction Set Computer (CISC) Reduced Instruction Set Computer (RISC)
- a CPU with exotic instruction sets . - a simple CPU with a limited instruction set.
- A CISC has many instructions and complex - A RISC has limited instructions and simple
design. (slow operation) design. (fast operation)
A CISC machine is generally recognised by: A RISC machine is generally recognised by:
• Many instructions (say over one hundred),
some with considerable sophistication; • Few instructions (say well below one hundred)
• Instruction words are of different length; • Each performs a very simple action
- simple ones expressed in a short instruction
code (about 1 byte) •All instructions are single word;
- complex ones expressed in a long instruction - That word must hold all information necessary
code (about several bytes) (the instruction code itself, any address or data
information)
•Instructions take different lengths of time to
execute. • All, or almost all instructions take the same
length of time to execute.
12
CHARACTERISTICS OF MICROCONTROLLER
Low cost
Physically small
14
Example 1: The Domestic Fridge
Do you realize
An Embedded there is a
System computer inside
Compressor Control the fridge?
Alarm
Display Human
The
Embedded Interaction
Computer
Networked
Actual Temperature
Interaction
(Maybe!)
Required Temperature
Read internal T -> compare internal T with required T-> output control signal
Internal T increases = switch on compressor to lower internal T 15
Internal T decreases to the required T (set by user) = switch off compressor
Example 2: Car Door Control, within a Larger Network
(Input to Central Control)
window control buttons
window stall sensor Involve human Right
interaction! Door
Dash Climate
window motor Board Control
lock control
lock actuator open door sensor
Driver's
(Output from Central Control) (Input to Central Control) Steering Seat
Central
Control Air Radio
Bag & CD
CAN Bus
Memory Memory
Core P Core Q Core R
Peripherals Peripherals Memory
Peripherals
Core P Memory Core Q Memory
Peripherals Peripherals
Core R Memory
Peripherals Peripherals
Memory
Core R
Memory Memory
Core Q
Core P
Peripherals Peripherals
Peripherals 17
POPULAR MICROCONTROLLERS
18
A GATHERING OF MICROPROCESSORS AND
MICROCONTROLLERS
Motorola 68000
PIC 12F508
20
CLASSIFICATIONS OF EMBEDDED SYSTEM