1 - Microcontroller Vs Microprocessor
1 - Microcontroller Vs Microprocessor
Microprocessors
Louis WY Liu
Room 319
Building 3
Vietnamese German University
Microprocessors
Microprocessor is a brain of computer.
It is a single chip which is capable of processing data.
It controls all components, including the memory, i/o, and external.
It executes sequence of instructions.
Microprocessors fetch, decode and execute the instructions.
Internal architecture of microprocessors is complex.
Microprocessors consist of
• Registers :– They are temporary storage location for performing
instructions or data.
• Athematic Logic Unit (ALU):- It performs athematic and logic
operations.
• Timing and Control unit:- Keeps all other parts of systems (reg, ALU,
Memory and I/O) working together in the right time sequence.
Evolution of Intel Microprocessors
• 1939-1954 -> Vacuum tubes
• 1954 – 1959 -> Transistors
• 1959 – 1971 -> IC
• 1971 – present -> Microprocessors
• Microprocessor is scaling from 4004 to Pentium 4.
• Microprocessor is identified with the help of word size of data.
• ALU can perform 4-bit data operation at a time. Then, these type of microprocessors
• 16-bit processors can perform 16 bit operations at a time. Eg. 8086, 8088, zilog2800, 80186, 80286
• 32-bit processors
Intel 90386, 80387, 80486
Intel Pentinum Intel Pentium Pro, Intel Pentium II, Intel Pentium III, Intel Pentium IV, Intel Dual Core
. 64- Bit processors
Intel Core 2,
Intel Core I7,
Intel Core I5,
Intel Core I3.
Microprocessor is externally connected to
• Input: It is used to give the i/p data to the microprocessors
• Output: It is used to provide the result of calculation
• Memory: It is used to store the data
System Architecture of Microprocessor
Overview of Microcontrollers
Microcontrollers integrate microprocessor, I/O ports and memory into a
single chip.
Our personal computers are general-purpose computers, while
microcontrollers are tailored to take inout from the physical world and
control output devices in the physical world.
Another difference between our computers and the microcontrollers is:
• Microcontrollers require less power than a those other processors, and
they’re easier to interface with the physical world through input circuits
called sensors and output circuits called actuators.
• They can communicate with other processors through various
communication interfaces.
• Examples: IBM RS6000, DEC Alpha 21064, DEC Alpha 21164, etc.
Microprocessors and Microcontrollers
• Microcontrollers integrate electronic computing device that includes three
major components on a single chip.
• Support devices
- Timers, A/D converters, Serial I/O,
•
System Architecture of a Typical
Microcontroller
• Bus is the communication line
Microprocessor vs AVR Microcontroller
Microprocessor Microcontroller
CPU is stand-alone, but RAM, ROM, I/O, timer are separate CPU, RAM, ROM I/O are all integrated on a single chip
and externally connected
Designer can decide on the amount of ROM, RAM and I/O Fixed amount of ROM, RAM, I/O Ports
ports
Expensive Suitable for applications in which costs, power, and space
are critical.
General Purpose (It can be used as the heart of a computer, Specific in terms of Purpose
or a core of a vector network analyzer)
High processing power Low processing power
Instruction sets focus on processing intensive operations Instruction sets focus on control and bit level operations
The main idea is that a single instruction will do all loading, evaluating, and
storing operations just like a multiplication command will do stuff like loading
data, evaluating, and storing it, hence it’s complex.
Both approaches try to increase the CPU performance
RISC: Reduce the cycles per instruction at the cost of the number of
instructions per program.
CISC: The CISC approach attempts to minimize the number of instructions per
program but at the cost of an increase in the number of cycles per instruction.
RISC and CISC (Con’t)
Both approaches try to increase the CPU performance
RISC: Reduce the cycles per instruction at the cost of the number of
instructions per program.