Micro Lect Notes 1
Micro Lect Notes 1
BS Computer Engineering
Microprocessors
3rd
Year
Lecture Notes 1
Introduction to Computer Architecture
Basics of Microprocessors
Instruction sets for Intel processors
Assembly/C++ language programming
Memory organization and memory interfacing
I/O organization and interfacing
Interrupt instruction set drivers interface
Microprocessors
Introduction to the Microprocessor and computer
Lecture
Notes 1
Microprocessors Applications: Systems on chip (SoCs)
SoCs are very common in the mobile electronics market because of their low power
consumption.
A typical application is in the area of embedded systems
Use powerful processors and may need external flash/RAM memory
These radios typically have a radio frequency (RF) front end with a software-
controlled tuner.
Baseband signals are passed into an analog-to digital converter
The quantized baseband is then demodulated in a reconfigurable device such as a
field-programmable gate array (FPGA), digital signal processor (DSP), or commodity
personal computer (PC)
The reconfigurability of the modulation scheme makes it a software-defined radio
Microcontrollers: Arduino
Questions?
What is the structure of a microprocessor?
How to interface a microprocessor with memory
and I/O devices?
How to program the microprocessor to do a
certain job?
Text Book/References
Textbook:
1. The Intel Microprocessors, Architecture, Programming and Interfacing, 8th edition, Barry B. Brey,
Prentice Hall, 2009
2. Assembly Language for x86 processors, 6th edition, K. R. Irvine, Prentice Hall, 2011
References:
1. Computer Architecture: A Quantitative Approach, 5th edition, J. Hennessy, D. Patterson,
Elsevier, 2012.
2. The 80x86 Family, Design, Programming and Interfacing, 3rd edition, Prentice Hall, 2002
3. The 80x86 IBM PC and Compatible Computers, Assembly Language, Design, and Interfacing,
4th edition, M.A. Mazidi and J.G. Mazidi, Prentice Hall, 2003
Lecture Objectives
Draw the block diagram of a computer system
Describe the structure and function of the microprocessor
Provide an overview of the various 80X86 and Pentium family members
Define the contents of the memory system in the personal computer
Convert between binary, decimal, and hexadecimal numbers
Differentiate and represent numeric and alphabetic information as integers, floating-point, BCD,
and ASCII data
Understand basic computer terminology (bit, byte, data, real memory system, protected mode
memory system, Windows, DOS, I/O)
1. Central Processing Unit (CPU, Microprocessor): acts as the brain coordinating all
activities within a computer
a. data transfer between itself and the memory or I/O systems,
b. (2) simple arithmetic and logic operations
c. program flow via simple decisions
2. The Memory: The program instructions and data are primarily stored.
3. The Input/Output (I/O) Devices:
a. Allow the computer to input information for processing and then output the results.
b. I/O Devices are also known as computer peripherals.
Bus: The CPU is connected to memory and I/O devices through a strip of wires called a bus.
The bus inside a computer carries information from place to place.
In every computer there are three types of busses. What are these types?
Data bus is used by the CPU to get data from / to send data to the memory or the I/O
devices.
The width of data bus determine the data size it can carry
The size of data bus of Intel microprocessors vary [8-bit (8085), 64-bit (Pentium)]
Tell if the address on the bus is memory address or an I/O device address
Each time the processor outputs an address it also activates one of the four control bus
signals: Memory Read, Memory Write, I/O Read and I/O Write.
If 𝐼𝑂𝑊𝐶 is active (𝐼𝑂𝑊𝐶=0), then, the microprocessor is writing data from the data bus to an
I/O device whose address appears on the address bus
ROM (Read Only Memory, nonvolatile memory) the information in ROM is permanent and not
lost when the power is turned off
RAM (Random Access Memory/ Read-Write memory, volatile memory) is used by the
computer for the temporary storage of the programs that is running. Data is lost when the
computer is turned off.
1. The CPU contains a number of registers to store information inside the CPU
temporarily. Registers inside the CPU can be 8-bit, 16-bit, 32-bit or even 64-bit
depending on the CPU.
2. The CPU also contains Arithmetic and Logic Unit (ALU). The ALU performs arithmetic
(add, subtract, multiply, divide) and logic (AND, OR, NOT) functions.
3. The CPU contains a program counter also known as the Instruction Pointer to point
the address of the next instruction to be executed.