Embedded Systems Lectures
Embedded Systems Lectures
Engineering College
• Microprocessor
• Micro-computer
• Microcontroller
• 3_Bus (Data, Address, Control)
• I/O
• Memory
Microprocessor (µP)(MPU)
µP = CPU on a single chip
Components of CPU
Registers: Temporary storage locations for program
instruction or data.
The Arithmetic Logic unit (ALU): performs both
arithmetic and logical operations
Timing and Control Circuits: keeps all working
together in the right time sequence
Bus: n_bit (internal) path for data exchange
CPU
Microprocessor
• Microprocessor=µP=MPU
• Tasks
– processing data
– controlling all components
• µP executes instructions in memory (ROM)
– Fetch, Decode, Execute
Microcomputers
• Micro-computer (µ-Computer)
• small computer
• specifically for data acquisition and control applications
Microcomputers
All Microcomputers consist of (at least) :
Microprocessor Unit (µP)
Program Memory (ROM)
Data Memory (RAM)
Input / Output ports (IO)
Bus System (Internal and External)
(and Software)
MPU is the brain of microcomputer
The Input/Output (I/O) System
: Output Enable
OEconnect to RD of µP
WR : Write signal
connect to MemWR of µP
CS : Chip Select CS WR RD
The differences between
µP & µC
Intruduction
• Microprocessor = CPU on a single chip.
– ALU + registers + control +…
• Microcontroller (µC)
– µ-Computer on a single chip of silicon
µP vs. µC
MICROPROCESSOR
MICROCONTROLLER
µC base system
• Small power consumption
• Single chip, small board
• Implementation is easy
• Low cost
• µC can reprogram on the fly(ISP)
µP vs. µC Applications
• µ Ps are suitable to processing information in computer
systems → Limited applications
• µ Cs are suitable to control of I/O devices in designs requiring
a minimum component→ Wide applications
µC Applications(Embedded System)
µCs
• Many µCs are existing right now.
– 8051, 68HC11, Z8, ARM series, PIC series and etc.
• We may widely divide it with
– How it is designed (RISC/CISC architecture)
– n-bits Microcontroller Processor ( 8, 16, 32, …)
– Manufacturer (Intel, Atmel, Microchip, Philips, Siemens, Dallas
Semiconductor, …)
– ROM technology (EROM, EEPROM, Flash ,… Programming
Serial/Parallel)
– RAM/ROM capacity
– Other features (ADC/DAC, WatchDog,timer/counter, Number of
IO pins, No. of Interrupt sources , … )
Choosing a Microcontroller
• meeting the computing needs of the task efficiently and
cost effectively
– speed, the amount of ROM and RAM, the number of I/O ports
and timers, size (packaging), power consumption
– easy to upgrade
– cost per unit
• availability of software development tools
– assemblers, debuggers, compilers, emulator (simulator), technical
support
• wide availability and reliable sources of the
microcontrollers
MICROCONTROLLER
• Memory Types
– Volatile: Random Access Memory (RAM)
– Non-volatile: Read Only Memory (ROM)
Example: 16C84 was the first of its kind. It was later reissued as the 16F84,
incorporating Flash memory technology. It was then reissued as 16F84A.