68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims...

40
68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes At the end of this module, students should be able to: Define and explain important terms associated with both hardware and ft l t f i t software elements of a microprocessor system Tell the difference between general purpose computing and embedded computing List down the major components inside a computer & processor List down the major components inside a computer & processor Tell the difference between computer, processor, microprocessor and microcontroller Explain instruction execution cycles of a generic microprocessor © 2008 FKEUTM, [email protected] 1-1

Transcript of 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims...

Page 1: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Microprocessor-Based Systems

AimsTo review the main elements of a microprocessor system.

Intended Learning OutcomesAt the end of this module, students should be able to:

Define and explain important terms associated with both hardware and ft l t f i tsoftware elements of a microprocessor system

Tell the difference between general purpose computing and embedded computingList down the major components inside a computer & processorList down the major components inside a computer & processorTell the difference between computer, processor, microprocessor and microcontrollerExplain instruction execution cycles of a generic microprocessor

© 2008 FKEUTM, [email protected] 1-1

Page 2: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 SEE3223 Microprocessor Systems

What’s in this course:Assembly language programmingMicroprocessor conceptsHardware interfacing

Pre-RequisitesPre-RequisitesNumber representation, coding, registers, state machinesRealization of simple logic circuitsIntegrated circuit technologiesDesigning with MSI componentsFlip-Flopsp pCounters and sequential MSI componentsRegister transfer logic

© 2008 FKEUTM, [email protected] 1-2

Page 3: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Assessment

Method: This module is assessed using continuous assessment methods. Assessment Breakdown:

5 Quizzes (best 5-out-of-6) x 8% = 40%2 Group Assignments x 10% = 20%Final = 40%

© 2008 FKEUTM, [email protected] 1-3

Page 4: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Reading List

Required Text (either one):

Antonakos J L (2003) The 68000 Microprocessor: Hardware andAntonakos, J.L. (2003), The 68000 Microprocessor: Hardware and Software Principles and Applications, 5th Ed., Prentice Hall.

Muhammad Mun’im (2000), Modul Pengajaran Mikropemproses 68000 UTM68000, UTM.

Recommended Readings:

Clements A.(1997), Microprocessor Systems Design: 68000 Software, Hardware and Interfacing, 3rd Ed., PWS Kent Publishing.

Walter A. Triebel, Avtar Singh (1991), The 68000 and 68020 Microprocessors, Prentice Hall.

© 2008 FKEUTM, [email protected] 1-4

Page 5: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Computing Systems

Rapid pace of information technology is due to introduction of new microprocessors

f fMost of us think of desktop computersPCLaptop MainframeServer

Maybe at most handheld computer (PDA)Maybe at most handheld computer (PDA)In this course, we will look at another type of computing system which is far more common that you ever imagined ☺

© 2008 FKEUTM, [email protected] 1-5

Page 6: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Computer Classifications

Classification of computers:Servers:

Big, expensive, available 24x7 (read “24 by 7” or 24 hours a day, 7 days a week. Mainframes are old servers made by IBM.

Desktops: pcomputers on your desk

Laptops: computers you carry in your bagcomputers you carry in your bag

PDA (personal digital assistants): computers you carry in your pocket

Embedded systems: computers that don’t look like computers!

An embedded system is a type of computer

© 2008 FKEUTM, [email protected] 1-6

An embedded system is a type of computer

Page 7: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Embedded Systems

Account for >99% of new microprocessors

Consumer electronicsVehicle control systemsMedical equipmentSensor networks

Desktop processors (Intel Pentium, AMD Athlon, PowerPC, etc) combined is onlyAthlon, PowerPC, etc) combined is only 1%

© 2008 FKEUTM, [email protected] 1-7

Page 8: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Embedded Systems

Simple definition: Computing systems embedded within electronic devicesNearly any computing system other than a desktop computerDesigned to perform a specific functionBillions of units produced yearly versus millions of desktopBillions of units produced yearly, versus millions of desktop unitsTake advantage of application characteristics to optimize the designdesignAs electrical or electronics engineers, you may be required to design an embedded system

But you BUY (not design) a general purpose computer

© 2008 FKEUTM, [email protected] 1-8

Page 9: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 General Purpose Computing vs Embedded Systems

General Purpose EmbeddedIntended to run a fully general set Runs a few applications oftenIntended to run a fully general set of applications

Runs a few applications often known at design time

End-user programmable Not end-user programmableFaster is always better Operates in fixed run-time

constraints, additional performance may not be useful/valuable

Differentiating features:• Speed (need not be fully

predictable)

Differentiating features:• Power• Cost (eg RM2 vs RM2.50)

• Software compatibility• Cost (eg RM3k vs RM5k per

laptop)

• Size• Speed (must be predictable)

© 2008 FKEUTM, [email protected] 1-9

Page 10: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 A Computer System – Simplified View

CPU Memory Input/Output

Address bus

Control bus

Data bus

An embedded system also has the same structure but at a smaller size

© 2008 FKEUTM, [email protected] 1-10

Page 11: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Microprocessor – Basic concept

16-bit / 32-bit / 64-bit wideAddress bus

bidi ti lCPU

bidirectional8-bit / 16-bit / 32-bit / 128-bit

Data bus

Control bus Timing signals, ready signals,interrupts etc

Microprocessor, by-itself, completely useless – must have external peripherals to

© 2008 FKEUTM, [email protected] 1-11

p y p y p pInteract with outside world

Page 12: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Microprocessor – Basic concept

Address

Control

KeyboardBootROM

Used at

Instruction(program)

ROM

DataRAM

Trans-ducers

KeyboardScreenUART

ParallelCPU

Used at startup

ROM interfaceetc

Microprocessor by-itself completely useless – must have external peripherals to

Data

© 2008 FKEUTM, [email protected] 1-12

Microprocessor, by itself, completely useless must have external peripherals toInteract with outside world

Page 13: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 “Glue Logic”

Every external device needs some “glue logic” to interface with the processor.

Address Address

Decode Logic

ControlControl

Address strobeData strobeRead/write control

CS* – chip select

ExternalD i it lf

Read/write controlOutput EnableInterrupt signalsetc

Other Glue Logic

Device Device itself with all

necessary internal logic

etc

Data

g

D t

© 2008 FKEUTM, [email protected] 1-13

DataWe’ll study all the control signals when we study microprocessor hardware.

Page 14: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Microcontroller – Basic concept

Address

Control

BootROM

ProgramROM

DataRAM

Trans-ducers Some I/O

CPU

Data

© 2008 FKEUTM, [email protected] 1-14

Microcontroller - put a limited amount of most commonly used resources inside one chip

Page 15: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Microprocessor vs Microcontroller

Microprocessor:A chip that contains only the processor

Microcontroller:A chip that contains all the components of a computerprocessor

Need other chips to make a working systemMore flexible

components of a computer –processor, memory and input/outputLess flexibility

Can have very few I/O or many I/O devices using the same processor chip

Less component count in systemLess powerful

No matter what is the system size the most important component is still the processor

© 2008 FKEUTM, [email protected] 1-15

No matter what is the system size, the most important component is still the processor.

Page 16: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Other Processors in Embedded Systems

Embedded Controllers:More powerful (32 bits) than microcontrollers (8 bits)Normally contains only processor and input/output memory is externalNormally contains only processor and input/output, memory is external

Digital Signal Processors:Embedded processors optimized for digital signal processingCommonly found in handphones, modems, communications systemsCommonly found in handphones, modems, communications systems

Graphics Processors:Very powerful processors found in graphics cards of workstations

Programmable Logic Controllers:Programmable Logic Controllers:Microprocessor boards usually found in industrial applications

© 2008 FKEUTM, [email protected] 1-16

Page 17: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 To design a µP System, we must know…

Fundamentals:What’s inside a computerWhat’s inside a processor

Programming:What happens in the processor when it’s running a programWhat happens in the processor when it s running a programWhat do we need to write a programHow to create a programHow to run a programHow to fix a program error

Hardware design:Hardware design:Timing diagramsInterfacing with other chips

© 2008 FKEUTM, [email protected] 1-17

Page 18: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Software

Computer softwareComputer programs are known as software

Program: Sequence of instructions that perform a taskThink of it like playing musicThink of it like playing music

Instruction: The simplest operation performed by the processorThink of it as a note coming from a musical instrument

How the computer works:Fetch an instruction from memoryFetch an instruction from memoryDecode the instructionExecute the instruction

© 2008 FKEUTM, [email protected] 1-18

Repeat

Page 19: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Machine & Assembly Language

Machine instructionA sequence of binary digits which can be executed by the processor, e.g. 0001 1011.1011.Hard to understand for human being

Assembly languageAn assembly program consists of assembly instructionsy p g yAn assembly instruction is a mnemonic representation of a machine instruction e.g. MUL may stand for “multiply”Assembly programs must be translated into object code before it can be executed translated by an assemblerexecuted -- translated by an assembler.Assemblers can be of two types: cross assembler and native assembler.Cross assembler runs on one computer and generates machine instructions that will be executed by another computer that has different instruction set, e.g. freeware ASM68K.Native assembler runs and generates instructions for the same computer. Drawbacks of assembly programs are:

dependent on hardware organisation difficult to understand long programs low

© 2008 FKEUTM, [email protected] 1-19

dependent on hardware organisation, difficult to understand long programs, low programmer productivity

Page 20: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 High-level language (HLL)

High-Level LanguageSyntax of a high-level language is similar to EnglishA t l t i i d t t l t th itt i hi h l lA translator is required to translate the program written in a high-level language into object code -- done by a compiler.There are cross compilers that run on one one computer but translate programs into machine instructions to be executed on a computer withprograms into machine instructions to be executed on a computer with a different instruction set.Main drawback is slower execution speed of the machine code obtained after compiling an HLL program.p g p gHowever, C language has been extensively used in microcontroller programming in industry.

© 2008 FKEUTM, [email protected] 1-20

Page 21: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Processor or Central Processing Unit (CPU)

Menyimpan maklumat Memproses

D ftALU

Daftar

s da

lam

an

Bas alamat

Unit kawalanB

a

Bas data

Bas kawalan

© 2008 FKEUTM, [email protected] 1-21

Mengawal

Page 22: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Important Registers

Program Counter (PC)Keeps track of program executionAdd f t i t ti t d fAddress of next instruction to read from memoryMay have auto-increment feature or use ALUSome manufacturers call this register the Instruction Pointer (IP)

Instruction Register (IR)Invisible to programmerContains current instructionIncludes ALU operation and address of operand

Data RegistersStores data For simple µP it may be called accumulatorsStores data. For simple µP, it may be called accumulators.

Address RegistersStores address of data. For special areas of memory, it may be called index registers stack pointers or base registers

© 2008 FKEUTM, [email protected] 1-22

index registers, stack pointers or base registers.

Page 23: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 The ALU

Performs arithmetic & logic operations on several bits simultaneouslyThe number of bits is a most important factor determining the capabilities of the processor Typical sizes:

4 bits (very small microcontroller: remote controllers)8 bits (microcontrollers: 68HC05 8051 PIC)8 bits (microcontrollers: 68HC05, 8051, PIC)16 bits (low-end microprocessors: Intel 8086)32 bits (most popular size today: Pentium, PowerPC, 68000, ARM, MIPS)64 bits (servers: IBM POWER & PowerPC G5, AMD Opteron, Intel Itanium)

© 2008 FKEUTM, [email protected] 1-23

Opteron, Intel Itanium)

Page 24: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory

Looks like a very long list.Each row is called a memory

012

location and has a unique addressEach location stores the same number of bits, usually multiples of 8 bit (bytes)

3

8 bit (bytes)Number of addresses 2N (where N is an integer).

Alamat kedudukan

Satu sel

Alamat kedudukan

Satu kedudukan

2N-1

Satu sel

© 2008 FKEUTM, [email protected] 1-24

2 1

Page 25: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory Devices

Read-Only MemoryNon-volatile memory: contents is retained even without powerI b dd d t d t t li ti d t tIn embedded systems, used to store application programs and test routinesContents can be set by fixing it during manufacturing or “burning” it using a programming deviceusing a programming deviceCommon types include MROM, PROM, EPROM and flash memoryErasable types can only be rewritten a fixed number of times

Random Access MemorRandom Access MemoryContents lost without power (volatile memory)Used to store temporary data. In embedded system, very little RAM is

i d S t d ’t h RAM t ll!required. Some systems don’t even have RAM at all!No limit to number of writes the device can handleFast writes (unlike EPROM/EEPROM)T j t SRAM d DRAM

© 2008 FKEUTM, [email protected] 1-25

Two major types are SRAM and DRAM

Page 26: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory Space and Address Bus

Smallest transferable amount of data from memory to CPU (and vice versa) is one byte.Each byte has a unique location or address.The address of each byte is written in hexadecimal (hex).

For 68000, the prefix ‘$’ means a hex value., p $The range of addresses accessible by the processor is the memory space.

Limited by the size of the address busLimited by the size of the address busFrom the programmer’s point of view, 68000 address bus is 24 bits wide.

M i 0 t 224 1 (1Memory space is 0 to 224-1 (16777216 or 16 Megabyte)Written in hex as $000000 to $FFFFFF.

© 2008 FKEUTM, [email protected] 1-26

Page 27: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Word size and data bus size

Width of data bus determines the amount of data transferable in one stepOOriginal 68000 has a 16 bit data bus

Can transfer 1 word or 2 bytes at onceA longword requires two transfers

Current 68HC000 has a selectable bus width of 8 or 16 bitsSelecting 8 bit data bus results in cheaper system but lower performancep

The maximum amount of memory for any 68000 system is 16 Mega locations x 1 byte/location = 16 Megabytes

Can also be thought of 8 MegawordsCan also be thought of 8 Megawords

© 2008 FKEUTM, [email protected] 1-27

Page 28: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Data & Address Buses

24-bit address bus

16-bit data bus

CPU Memory

015

Data bus 16 bits

24

Address bus 24 bits

$000000

224-1= 8M locations

© 2008 FKEUTM, [email protected] 1-28

$FFFFFF

Page 29: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory Read Operation

1010000000110010

00000001

Bas alamat

00110010010111111111111100000001

0001000200030004

0002 Bas data 01011111

Perintah BACA

11111111FFFF

© 2008 FKEUTM, [email protected] 1-29

Page 30: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory Write Operation

Bas alamat 1010000000110010

000000010003 00110010

010111111111111100000001

0001000200030004

10000001 Bas data

10000001

Perintah TULIS

11111111FFFF

© 2008 FKEUTM, [email protected] 1-30

Page 31: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Memory Map

System memory map summarizes the memory

$000000

$001FFF

Interruptvectors

locations available to the programmerMust know the following

$

$002000

$01FFFF

ROM

RAM$002000g

before we can write any program

RAM start and end

RAM$01FFFF

$020000

RAM start and endROM start and endI/O devices

Very different from writing a

Unused

I/O devices$FFFC00

$FFFBFF

Very different from writing a program in C where we don’t have to know all this The memory map of a

typical system

I/O devices$FFFFFF

© 2008 FKEUTM, [email protected] 1-31

typical system

Page 32: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Fetch-Execute Cycle

The processor executes instructions one-by-one according to the sequence found in memoryEverything is controlled by, what else, the control unit in the CPU.To execute an instruction, the processor must fetch it from , pmemory.The complete steps the processor takes to execute one instruction is the instruction cycle or the fetch-executeinstruction is the instruction cycle or the fetch execute cycle

Fetch Execute

© 2008 FKEUTM, [email protected] 1-32

Page 33: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Instruction Cycle Details

On program start:0. Load the program counter (PC) with the address of the first instruction

Fetch phase:1. Read the instruction and put it into the instruction register (IR)2 Control unit decodes the instruction; updates the PC for the next instruction2. Control unit decodes the instruction; updates the PC for the next instruction

Execute phase:3 Find the data required by the instruction3. Find the data required by the instruction.4. Perform the required operation.5. Store the results.6. Repeat from Step 1.p p

© 2008 FKEUTM, [email protected] 1-33

Page 34: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Instruction Sequencing

Example – an instruction to add the contents of two locations (A and B) and place result in a third register (C)Before you do anything: set PC to point to 1st instruction in the sequence

Addr Instructions

12 MOVE A,D0

14 ADD B,D0

16 MOVE D0,C12

Program Counter (PC)

Instruction Register (IR)…

100 (A) = 4

102 (B) = 5Data Register 0 (D0)

© 2008 FKEUTM, [email protected] 1-34

104 (C)

Page 35: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Instruction Sequencing

Addr Instructions

12 MOVE A,D014

Program Counter (PC)

14 ADD B,D0

16 MOVE D0,C

MOVE A,D0

Instruction Register (IR)

100 (A) = 4

102 (B) = 5

10 (C)

4

Data Register 0 (D0)

104 (C)

© 2008 FKEUTM, [email protected] 1-35

Page 36: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Instruction Sequencing

Addr Instructions

12 MOVE A,D016

Program Counter (PC)

14 ADD B,D0

16 MOVE D0,C

ADD B,D0

Instruction Register (IR)

100 (A) = 4

102 (B) = 5

10 (C)

9

Data Register 0 (D0)

104 (C)

© 2008 FKEUTM, [email protected] 1-36

Page 37: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Instruction Sequencing

Addr Instructions

12 MOVE A,D018

Program Counter (PC)

14 ADD B,D0

16 MOVE D0,C

MOVE D0,C

Instruction Register (IR)

100 (A) = 4

102 (B) = 5

10 (C) 9

9

Data Register 0 (D0)

104 (C) = 9

© 2008 FKEUTM, [email protected] 1-37

Page 38: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Important Microprocessors You Should KnowYear Company Device Significance1971 Intel 4004 1st µP. A 4-bit device.1974 Intel 8008 1st 8-bit µP1974 Intel 8008 1 8 bit µP.

Motorola 6800 1st 8-bit µP from Motorola.Texas TMS 1000 First microcontroller. Can operate without support chips.

1978 Intel 8086 1st 16-bit µP1978 Intel 8086 1 16-bit µP.1979 Motorola 68000 16/32-bit µP : the data bus is 16 bits externally, but 32-bit

internally.1984 Motorola 68020 Full 32-bit µP derived from 68000. Has modern features µ

such cache memory, floating-point unit & full support for modern operating systems.

1985 Intel 80386 32-bit µP from Intel, basically unchanged until Pentium of todaytoday.

1986 ARM ARM1 32-bit RISC chips designed for low-power.1993 Apple/

Motorola/PowerPC 601 A RISC chip from Motorola derived from IBM POWER.

Ended 68k’s use as general purpose computing but the

© 2008 FKEUTM, [email protected] 1-38

Motorola/IBM

Ended 68k s use as general purpose computing but the family continues to live in embedded systems until today.

Page 39: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Selecting a Microprocessor

Choose the right one for your applicationPrimary criteria: Cost, Power, Size, SpeedOth k ti i t t d i h l t ti l f f tOthers: package options, integrated peripherals, potential for future growth

Choose one with good software development supportdevelopment environment - good compiler and debugger availabilityevaluation boardsin-circuit emulators for those with deep pocketsOperating system availability

Other considerationsCode density: affects power consumption, performance and systemy p p , p ycostHardware availability: make sure you can actually purchase the microcontroller before designing it in

© 2008 FKEUTM, [email protected] 1-39

Prior expertise, licensing, etc

Page 40: 68000 Microprocessor-Based Systems - FKE68000 Microprocessor 68000 Microprocessor-Based Systems Aims To review the main elements of a microprocessor system. Intended Learning Outcomes

68000 Microprocessor

6800

0 Summary

Microprocessors and embedded controllers are a ubiquitous part of life todayC f &Concept of a microprocessor & microcontrollerUnderstand how a µP worksHeadhunters report that EEs familiar with µC µP design areHeadhunters report that EEs familiar with µC, µP design are in the highest possible demandWeb Resources:

H Mi W kHow Microprocessors Work:http://computer.howstuffworks.com/microprocessor.htmhttp://www.intel.com/education/mpworks/http://www cse psu edu/~cg471/03f/hw/pj5/how micro htmlhttp://www.cse.psu.edu/~cg471/03f/hw/pj5/how-micro.html

Great Microprocessors of the Past and Present:http://www.sasktelwebsite.net/jbayko/cpu.html

Great Moments in Microprocessor History:

© 2008 FKEUTM, [email protected] 1-40

Great Moments in Microprocessor History:http://www-128.ibm.com/developerworks/library/pa-microhist.html