Microprocessor Notes 1
Microprocessor Notes 1
Microprocessor
Part 1
Chapter Outline
68000 Architecture
Advantages of 68000
Microprocessor is a complex
microcircuit (integrated circuit)
or set of chips that carries out
the functions for the processor
The of an information technology
system.
68000
Architect
ure It contains a control unit (and
clock), an arithmetic and logic
unit, the necessary registers,
links to main store and to
peripherals.
The 68000 Architecture
(Cont..)
• Bus System
• All components communicate via the system bus.
• There are three types of buses: address bus, data bus and control bus
• Memory
– Function: To store/hold program and data that needed
by microprocessor
– Operations: To read information from it, or writing
information to it
•Operation •Operation
•RAM is the main memory of the •ROM defined as read only random
computer that holds the programs and access memory. It is used by the
information being processed. Usually computer to get started from power on
is used to store temporary data (boot up). It includes BIOS (basic
input/output system)
Programmer’s Model of
the 68000
The 68000 microprocessor
comprises:
-8 Data register (D0 – D7)
-8 Address register (A0 –
A7)
-Program counter (PC)
-Status register (SR)
Programmer’s
Model of the 68000
(Cont..)
• Data registers
• Data register is used to hold data temporarily for the use in processing.
Each registers can be accessed for byte operands (0-7), word operands (0-
15 bits) or long-word operands (0- 31bits).
• Function: Used to store information within the 68k uP itself
• Address registers
• Address register are not provided for storage of data for processing. Instead,
they are meant to store address information. Although every registers contain
32 bits, only the lower 24 bits are used to access memory. Therefore, the
address range is 224 (16M) byte.
• Function: Used to store the location where data can be founded outside the
processor. Ex: external memory chip. A7 usually is used to execute subroutine
Programmer’s
Model of the 68000
(Cont..)
• Program Counter
• Even though the program counter (PC) is shown as 32 bits,
there only 24 bits are used in addressing memory.
• Function: Hold the memory address of the next instruction to
be executed
• Stack Pointer
• The stack pointer (SP) is A7 on the 68000. Typical use of the stack
is to save the program counter when branching to a subroutine.
Programmer’s Model of
the 68000 (Cont..)
• Status Register
Programmer’s Model
of the 68000 (Cont..)
• System Byte
i. Byte View
1 byte
(8 bits)
000000
000001
000002
000003 ..
..
..
FFFFFF
68000 Data
Organization (Cont..)
EVEN ODD
000000 12 34
000002
Byte 000000 Byte 000001
000004
000006 ..
..
..
FFFFFC
FFFFFF
68000 Data
Organization (Cont..)
n+2 word
n Byte n Byte n+1 Byte n+2 Byte n+3
n+4 Byte
n+4 N+8
..
.. 32 bit
..
68000 Data
Organization (Cont..)
Address 15 8 7 0 Address
First word 0 A6 3C 1
First longword
Second word 2
58 70 3
Second longword
Third word 4 15 24 5
Third longword
Fourth word 6 10 2D 7
$F00000
VIA
$E80000
$E00000
$D00000
IWM
$C00000
SCC Write
$B00000
$A00000
SCC Read
$900000
$410000
64KB ROM
$400000
Unused
$080000
First address 512KB RAM
$000000
in addressing space
• Data transfers:
• Register to register
• Register to memory
• Immediate to register/memory
D4 11 D4 11 22
22 33 44
+ D5 + D5
33 44 66
D5 D5
(c) 32-bit
ADD.L D4,D5
D4 11 22 33 44
22 33 44 55
+ D5
33 55 77 99
D5
Advantages of MC68000