To Microprocessors: Department of Computer Science and Engineering
To Microprocessors: Department of Computer Science and Engineering
to
Microprocessors
Safwana Haque
Lecturer, Department of Computer Science & Engineering
Nazmus Sakeef
Lecturer, Department of Computer Science & Engineering
2
Topics to be Covered
Microprocessors and Microcontrollers
Coprocessors.
3
Recommended Texts
Microprocessors and Interfacing: Programming and Hardware, by Douglas V. Hall
Assembly
Language Programming and Organization of the IBM PC, by Ytha Y. Yu,
Charles Marut
4
Some tips before we begin
Basic Programming
5
Concept of Computer
Data Storage
MEMORY
I/O
SYSTEM
BUS
Computer
CPU
64-bit designs
Digital Signal Processors (DSP) and Graphics
Processing Units (GPU).
Multi-core designs
CPU
1980s -
(MCS-51 family)
- Intel 8031, 8052, 8751, …
- Atmel AT89C51, AT 89C1052/2051,…
- Dallas Semiconductor DS5000 series…
-Philips, National Semiconductor, …
- Freescale S32K MCU, Renesas RL 78G1F
The program for the microprocessor can The program for the microcontroller is
be changed for different applications. fixed once it is designed
Cost is comparatively higher Cost is comparatively lower
Overall size of the system is large Overall size of the system is smaller
Data Bus
CPU CPU RAM ROM
General Serial
purpose RAM ROM I/O Timer COM
Micro Port Serial
Port I/O
processor Timer
Port COM
Port
Address Bus
Assembler:
An assembler is a program that converts assembly language into
machine language.
add cl, 2 : add the value 2 with the current value of cl // after adding 2, cl is now and
store sum in cl holding the value 5
Subtract 2 from 3
mov cl, 3 : copy the value 3 in the internal register cl //so currently cl is holding the
value 3
sub cl, 2 : sub the value 2 from the current value of cl //after subtracting 2, cl is now
holding the value 1
mov cl, 5
add cl, 6
sub cl, 10