Академический Документы
Профессиональный Документы
Культура Документы
Chapter 1:
Introduction to 68000
Microprocessor
© Masrullizam Mat Ibrahim
UNIVERSITI TEKNIKAL Intoduction to 68000 Microprocessor 1 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 3
MALAYSIA MELAKA
MALAYSIA MELAKA
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 2 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 4
MALAYSIA MELAKA MALAYSIA MELAKA
Microcontroller
Microprocessor
‘Brain’ or ‘heart’ of the system
Performing various computing functions Single IC
Arithmetic and logic operation
Fetch MPU
Temporary storing
Processor chip in market
Memory I/O
Intel
AMD
Motorola Peripheral Devices
- A/D Converter
- Timer
- Serial I/O
Evolution of Microprocessor
Microcontroller
Microcomputer built on a single chip
Consist of a microprocessor, memory, input/output
devices and additional peripherals such as A/D
converter and timers.
Microcontroller in market:
Microchip PIC
Motorola
Intel
Atmel
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 6 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 8
MALAYSIA MELAKA MALAYSIA MELAKA
Central Processing
Unit
Heart of the system which is control all operations
that can be performed.
Execute instruction that are stored in memory
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 13 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 15
MALAYSIA MELAKA MALAYSIA MELAKA
Microprocessor Operation
Input/output devices Program (instructions) execution.
Enable the microprocessor to communicate to outside Three process (cycles) involves for each
world.
instruction
Input devices - transfer data to microprocessor, e.g.
keyboard, scanner, bar code reader, mouse, sensor. 1. Fetch – processor load
Output devices - Obtain data from microprocessor and an instruction from memory
transform to other format for human manipulation, e.g. into its internal instruction
monitor, printer, LED, hard disk. register (IR).
Input/output for communications: 2. Decode – determine types
Serial – one data at one time, slow but simple of instruction has been fetched.
Parallel – more than one (usually eight) at one time, fast 3. Execute – perform the task
but complicated
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 14 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 16
MALAYSIA MELAKA MALAYSIA MELAKA
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 17 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 19
MALAYSIA MELAKA MALAYSIA MELAKA
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 18 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 20
MALAYSIA MELAKA MALAYSIA MELAKA
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 21 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 23
MALAYSIA MELAKA MALAYSIA MELAKA
Specification of MC68000
32-bit Data and Address Registers Data register.
16-bit Data Bus MC68000 contains 8 32
D1
Memory-Mapped Input/Output Data register – to store
D2
information within the
24-bit Program Counter D3
68000 processor.
56 Powerful Instructions Types D4
Size of data: D5
Operations on 5 Main Data Types 8 bits (0 – 7) – Lower
D6
7 interrupt levels byte (.B) D7
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 22 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 24
MALAYSIA MELAKA MALAYSIA MELAKA
Address register
System byte User byte
8 address register; A0 through
A7. Technically speaking there 15 13 10 9 8 4 3 2 1 0
are two A7 : 32 16 15 0 T - S - - I2 I1 I0 - - - X N Z V C
A0
User stack pointer (USP)
A1
Supervisor stack pointer (SSP)
A2 Trace bit
Only one ever in effect A3
Extended
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 25 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 27
MALAYSIA MELAKA MALAYSIA MELAKA
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 29 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 31
MALAYSIA MELAKA MALAYSIA MELAKA
example
MC68000 also provide two type data transfer;
synchronous and asynchronous. 16 bit data words in memory as shown below.
MC6800 will respond to seven levels of The upper 8 bit word store at location even address
and the lower 8 bits at odd address
external hardware interrupt ( IPL2 – IPL0)
and has arbitration logic that support its in
Address 15 8 7 0 Address
multiprocessor systems.
1st word $100000 B5 2D $100001 1st longword
2nd word $100002 00 70 $100003
2nd longword
3rd word $100004 6A 37 $100005
3rd longword
4th word $100006 14 30 $100007
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 33 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 35
MALAYSIA MELAKA MALAYSIA MELAKA
Data Organization
MC68000 is possible to work with smaller bit MC68000 is a big endian processor where
quantities even data and address register are words are stored with their lower 8 bits in the
32 bits wide. higher of the two storage location.
Generally we refer data as byte (8 bits), Little endian processor like Intel family where
words (16 bits) and longwords (32 bits). store the lower byte in the first memory
Example: MOVE.L – to move longwords of data location
MOVE.B – to move byte of data When data are thousands or million is difficult
We refer bit 0 as the least significant bit to show each and very location therefore we
(LSB) and bit 7, 15 or 31 (byte, word or uses a single block diagram called memory
longword) as the most significant bit (MSB). map.
UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 34 UNIVERSITI TEKNIKAL © 07/08 Masrullizam Mat Ibrahim 36
MALAYSIA MELAKA MALAYSIA MELAKA
$E80000 VIA
$F00000
$FFFFFF