Lecture_01_Introduction
Lecture_01_Introduction
Microprocessor
Lecture #1
Introduction
Slide Courtesy of Imtiaz Ahmed, Lecturer, Dept. of EEE,
Brac University
Introduction
• We observe a rapid growth in the field of
– Electronics,
– Wireless communications,
– Networking and
– Robotics.
• With this growth, devices around you communicate in more ways than you
ever imagined.
• Those times are not very distant when every object around us will have a small
microprocessor/ microcontroller/ sensor.
• They will be embedded within itself, invisible to us but still communicating with
all other devices around.
• It will make our lives more connected and accessible than ever before.
• Microprocessor and microcontroller have also revolutionized various industries
and our day-to-day life
2
What is a Microprocessor?
• A Microprocessor is just a
CPU, containing
– Arithmetic logic unit
(ALU)
– Control Unit (CU)
• One has to add externally
– memory,
– clock,
– input/output interfaces,
– timer and all other
needed peripheral.
3
What is a Microcontroller?
• A microcontroller is a single chip containing at least
– a CPU,
– non-volatile memory,
– volatile memory,
– a timer and
– an I/O control unit.
• Basically a microcontroller can be
described as a computer on a chip.
• Regular PC is a general purpose computer while a microcontroller is a computer
dedicated to one or just a few tasks.
• A microcontroller apart from the above mentioned components usually also
include, but not limited to,
– serial communication capabilities,
– interrupt controls and
– analog I/O capabilities.
4
Difference between Microprocessor
and Microcontroller
• In appearance, there is hardly any
difference between a microprocessor
and microcontroller
• But functionally, there are a number of
differences.
• They are different in terms of the
applications they are used, the costs,
processing power, power consumptions
etc.
5
Differences: In terms of Applications
• Microprocessors are used normally for generalized tasks or for a specific
task where extensive computing power is necessary.
• But, microcontrollers are used for a specific task.
• For example, for programming and controlling all functions of a camera,
washing machine, microwave oven a microcontroller may be used.
6
Differences : In terms of Processing Power
and Memory
Microprocessor Microcontroller
7
Differences : In Terms of Data Handing
Capacity
• Data and Address bus
8
Differences: In terms of Power
Consumption and Cost
Microprocessor : High
Microcontroller: Low
9
Differences : Summary
10
Why uP and uC are so popular?
• Small Size
• Lower Cost
• Higher Reliability
• Lower Power Consumption
• Higher Versatility
• More Powerful
11
Smaller Size
• A tiny chip can contain hundreds of thousands of transistors
and components
• The size of present day microprocessor has now reduced to
less than an inch
• With the advent of VLSI technology the microprocessors now
come with a large numbers of pins
12
Lower Cost
• With the advent of complex technology, microprocessor cost
does not increase proportionally.
• Rather its cost per function has decreased gradually.
• As the material cost is negligible in comparison with the initial
masking cost, per unit cost decreases as the volume of
production increases.
13
Higher Reliability
• With the advent of more sophisticated fabrication technology
and testing system microprocessor manufacturing process is
now very reliable.
• Moreover, the microprocessor based system now-a-days
requires less number of chips and so wiring requirement is
less making the overall system more reliable.
14
Power consumption
• Present day microprocessors consume very low power in
the order of milliwatt.
• This is because of the fact that they are manufactured by
transistors using CMOS technology which requires very low
power.
15
Versatility
• Since the program stored in a microprocessor system is
rewritable hence one system can be reused by loading a
new program.
• This is especially useful when a new system is being
developed. Frequent change in programming is necessary to
fix bugs if any.
16
More powerful
• Present day microprocessor is more powerful than the
previous one, w.r.t processing speed, memory and I/O
pins.
• This becomes possible because of increase in data
addressible bit size.
• Now 32 bit processor is common in the market.
• A 32 bit microprocessor is powerful than the then main
frame computer.
17
Typical Applications of uP
• Microprocessor is basically a CPU, using CPU general purpose
computer can be built.
• Desktop computers, PCs, Laptops, Workstations, Servers,
Supercomputers.
• They are used where task is not predefined.
• For example, using a PC you can use for
– Gaming,
– Web browsing,
– Photo editing,
– Creating documents,
– Mathematical Calculations,
– Simulations etc.
18
An Example of uC based System
Washing Machine
❑ It is an automatic clothes washing SYSTEM
❑ Parts: Status display panel, Switches & Dials, Motor,
Power supply & control unit, Inner water level sensor
and solenoid valve.
Rules
1. Wash by spinning
2. Rinse
3. Drying
4. Wash over by blinking
5. Each step display the process stage
19
Typical Application of uC
• Using microcontrollers embedded systems are produced.
• An embedded system is a combination of hardware and software
built for a specific application
– Consumer electronics making toys, cameras, camcorders, robots
– Consumer products - washing machines, microwave ovens etc.
– Instrumentation - oscilloscopes, various medical equipments,
– Process control - data aquisition, controlling various industries
– Communication – Telephone, answering machines
– Office equipments – Fax, printer, small PABX
– Micromedia application – Cell phones, PDAs, teleconferencing
equipment
20
Applications of uC based Systems
21
Major Manufacturers of Microcontrollers
• Atmel Corp. - Manufacturers of the popular AVR series of
microcontrollers.
23
23
Software Needed
• Proteus may be used to simulate a electrical circuit even involving
microcontroller. We shall be using Proteus 8.
• The C program will be developed using a Program called
CodeVisionAVR. There are other similar softwares as well.
• The compiled code (the .hex file) of the C program can be linked from
the Proteus.
• But if you want to download the .hex file of your program in the
microcontroller you have to use one of the available burner
software. You can use “eXtreme Burner” software for that.
24
Special NOTES
• Book Reference
– Richard H. Barnett, Sarah Cox, Larry O'Cull-”Embedded C
Programming and the Atmel AVR” – 2nd Edition, Delmar
Cengage Learning, 2007
– M. A. Mazidi, S. Naimi and S. Naimi : “The AVR
microcontroller and embedded System – Using Assembly
and C”, Prentice Hall (PEARSON), 2011.
25
Thanks
26