Lec 1-2
Lec 1-2
EEE-342
MICROPROCESSOR SYSTEM AND
INTERFACING
Dr Junaid Ahmed
Associate Professor,
Electrical & Computer Engineering,
COMSATS University Islamabad.
Dr Junaid Ahmed
Phone: 051-9049240
CuOnline or MS Teams
1
16-Sep-23
Course Textbook
The AVR Microcontroller and Embedded Systems: Using
Assembly and C, by Muhammad Ali Mazidi, Sarmad Naimi
Sepehr Naimi.
Atmel AVR Microcontroller Primer: Programming and
Interfacing. By Steven F. Barrett, Daniel J. Pack. Morgan
and Claypool, 2007.
Microcontrollers Fundamentals for Engineers and
Scientists. Steven F. Barrett, Daniel J. Pack, 2006.
https://drive.google.com/drive/folders/1gSjpEY5-
O8jPysb3U5Ab4loT3-UCCUqz
Theory:
Quizzes : 15%
Semester Project : 10%
Midterm Exam : 25%
Terminal Exam : 50%
Total : 100%
Lab:
In-Lab Performance & Lab Reports: 25%
Midterm Exam : 25%
Semester Project : 50%
Total : 100%
2
16-Sep-23
3
16-Sep-23
Inside CPU
CPU Registers
1. The CPU uses registers to store information temporarily.
2. The information could be two values to be processed, or the
address of the value needed to be fetched from memory.
3. Registers inside the CPU can be 8-bit, 16-bit, 32-bit, or
even 64-bit registers, depending on the CPU.
4. In general, the more and bigger the registers, the better
the CPU.
5. The disadvantage of more and bigger registers is the
increased cost of such a CPU.
4
16-Sep-23
Instruction Decoder
It interprets the instruction fetched into the CPU.
It is a kind of dictionary, storing the meaning of each
instruction and what steps the CPU should take upon
receiving a given instruction.
Just as a dictionary requires more pages the more words it
defines, a CPU capable of understanding more instructions
requires more transistors to design.
10
5
16-Sep-23
11
12
6
16-Sep-23
13
14
7
16-Sep-23
15
16
8
16-Sep-23
17
18
9
16-Sep-23
19
20
10
16-Sep-23
21
11