Professional Documents
Culture Documents
Microprocessors Systems
By: Bun Seng
Main Menu
Unit 1: Introduction to Computer and Microprocessor Click Here
Unit 2: 80386 Microprocessor Architecture Click Here
Unit 3: Assembly Language Programming Click Here
Unit 4: 80386 Real Mode Programming Click Here
Unit 5: Advanced 80386 Real Mode Programming Click Here
Unit 6: Computer Systems and Memory Click Here
Unit 7: Central Processing Unit (CPU) Click Here
Unit 8: Microprocessor Design Click Here
Click Here
Click Here
Click Here
Click Here
Unit 1A:
Computer Classification
Objectives
Introduce the types of computers available and briefly discuss
their features
Highlight the major events in history of computers
Computer Classification
Computer Classified into THREE (3) board categories
1) Mainframe
2) Minicomputer
3) Microcomputer
Main Menu
Unit 1A:
Computer Classification
Mainframe
An industry term for a large computer for the commercial
applications of large-scale computing purposes.
Main features :
1) Very large in size
2) Large capacity memory
3) Work with large data words (64 bits or more)
4) Very Expensive
5) May have more than one CPU
Most powerful mainframe know as Supercomputer
Main Menu
Unit 1A:
Computer Classification
Minicomputer
Developed in middle 1960
Provide computing power for medium scale companies and
laboratories usage purpose.
Main features:
1) Smaller size compare to mainframe
2) Work with smaller data words (typically 32 bits)
3) Cheaper than mainframe
4) Smaller memory than mainframe
5) May have one or more microprocessors
Main Menu
Unit 1A:
Computer Classification
Microcomputer
Known as Personal Computers (PC)
Developed in the middle 1970 to serve the computing needs of
small office and home office
Main features:
1) Range from hand held devices to desktop devices
2) Memory capacity range from kB to MB
3) Cheaper than minicomputers
4) Works with data words ranging from 8 to 64 bits
5) Mainly has a single microprocessor
Main Menu
Unit 1B:
Computer Architecture
Objectives
Describe the main hardware components of a computer
Introduction the software component of a computer
Fundamentals
Main Components of
Computer
Hardware Software
Unit 1B:
Computer Architecture
Hardware
Physical components of a computer
6 major components to form a computer
Components interconnect by electrical wires (buses)
Input Output
I/O Ports
Devices Devices
Address
Control
Data
Primary Secondary
Storage Storage
Central Processing
Unit
Unit 1B:
Computer Architecture
Primary Storage
1) Used to stored programs that currently running
2) Stored the data required by those running programs.
Primary
Storage
Non-Volatile
Volatile
Example:
Example: Read Only Memory (ROM),
Random Access Memory (RAM) Programmable Read Only Memory
(PROM), etc.
Unit 1B:
Computer Architecture
Secondary Storage
1) Permanent storage of programs and data
2) i.e. Fixed Disk (Hard Disk), Removable Disk (Floppy Disk),
Compact disc-read only memory (CD-ROM), Magnetic
tape.
Input Devices
1) Allow user communicate with computer (fed data to
computer)
2) Keyboard, mouse, joystick, etc.
Output Devices
1) Allow computer displaying information to user (send data
to “outside world”
2) Monitor, printers, speakers, etc.
Unit 1B:
Computer Architecture
Software
Application System
Software
Software Software
System Software
Software Usage
Objectives
Describe the microcomputer bus architectures
Fundamental
Type of Buses
BUSES
Bus Architecture
Common Bus Architectures used in IBM and compatible PCs
- Industry Standard Architecture (ISA)
- Enhanced Industry Standard Architecture (EISA)
- Video Electronic Standard Association (VESA)
- Peripheral Components Interconnect (PCI)
Unit 1D:
Microprocessors
Objectives
Briefly describe the RISC and CISC microprocessor
architectures
Highlight the major events in the history of microprocessor
Fundamental
CPU on Single Integrated Circuit Microprocessor
CPU divided into several small units ALU, Control unit, etc.
Each unit designed to perform specific function
Unit 1D:
Microprocessors
Architecture
Microprocessor
Architecture Application
RISC
1) Uniform instruction encoding which allows faster
decoding
2) A homogenous register set, allowing any register to be
used in any context and simplifying compiler design
3) Simple addressing modes with more complex modes
replaced by sequences of simple arithmetic instructions
CISC
1) Complex instruction sets that support high level language
semantic
2) Complex addressing modes that allow data structure and
array accesses to be compiled into a single instruction
Unit 1D:
Microprocessors
Part of the circuit board for 2nd Gen Computer 2nd Gen Computer
Unit 1E:
History of Computer and Microprocessors
First Generation Computer (EDSAC, Second Generation Computer (IBM 7030) Third Generation Computer (System
EDVAC, UNIVAC [IBM701]) 1955-1965 360, PDP-8 minicomputer)
1945-1955 1965-1975
Unit 1F:
Summary
Main Menu
Unit 1F:
Summary
Hardware
o Primary Storage: Used for temporary storage of programs
and data
o Secondary Storage: Used for permanent storage of
programs and data
o CPU: The heart of the computer where all processing take
place
o I/O Port: Provide the communication link between the
CPU and I/O devices
o Input Devices: Allow the user to feeds instructions and
data to the computer
o Output Devices: Used to display information from
computer
Unit 1F:
Summary
Software
o Systems Software: Used to control the operation of the
computer hardware
o Application Software: Used to perform tasks required by
the user in his daily work
Unit 1F:
Summary
GS
EDX
ESP SP IP
EBP BP
Flags
ESI SI
CR0
EDI DI
Unit 2A:
Software View of 80386 Microprocessor
Registers
Registers
General Special
purpose purpose
Registers Registers
Segment Instruction
Registers Pointer
Flags
Registers
Data Registers Index and Pointer Control
Registers Registers
Unit 2A:
Software View of 80386 Microprocessor
GENERAL PURPOSE REGISTER
Data Registers
4 Data Registers
Used to store temporary data during execution
Can be used as destination or source for any data movement
Can be used as
8-bit (AL @ AH) can execute on 80386 Real Mode
16-bit (AX) allow 80286 codes to run by 80386
32-bit operations (EAX)
Certain operations only available on given register
Unit 2A:
Software View of 80386 Microprocessor
Abbreviation
Register
Usage
Name
8 8 16 32
Abbreviation
Register Name Usage
16 32
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ……
Abbre-
Name Usage
viation
The flag is SET (1) is a carryout or a borrow;
Carry C
Otherwise is RESET (0)
If the result of an instruction has an even number of 1’s (even
Parity P
parity) then the flag is set. Otherwise is reset
The Flag is SET (1) a carryout from the low nibble to high
Auxiliary
A nibble or borrow from high nibble to low nibble during BCD
Carry
addition and subtraction. Otherwise is reset.
The flag is SET (1) when an instruction is 0
Zero Z
Otherwise is reset.
The flag is SET (1) when the result of logic or arithmetic is
Sign S negative
Otherwise is reset.
The flag is SET (1) when overflow occurs during signed
Overflow O number arithmetic
Otherwise is reset.
Unit 2A:
Software View of 80386 Microprocessor
Abbre-
Name Usage
viation
Used to enable trapping errors during program debugging
Trap T
The Flag is SET (1) single step mode of 80386 enabled
If the Flag is SET (1) Interrupt enable
Interrupt I
Otherwise is reset
The Flag is SET (1) DI and SI registers are automatically
Direction D decremented
Otherwise is incremented
Unit 2A:
Software View of 80386 Microprocessor
Instruction Pointer
16-bit register
Used with code segment register (CS) to hold the address of
the next instruction to be fetched from the code segment of
the memory
Control Register
Several control registers in 80386
Only ONE control register zero is active in Real Mode
This bit is called the protection enable
Used to switch between real mode and protected mode