Top Banner
MICROPROCESSOR University of Diyala College of Engineerin Communication Departmen Assistant Lecturer Students: Ibrahim abdul_rahman Haydar mohammad Saif ahmed
15
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to Microprocessor

MICROPROCESSOR

University of Diyala College of Engineering

Communication Department

Assistant Lecturer

Students:Ibrahim abdul_rahmanHaydar mohammadSaif ahmed

Page 2: Introduction to Microprocessor

MICROPROCESSOR

The microprocessor can be programmed to perform functions on given data by writing specific

instructions into its memory.

The microprocessor reads one instruction at a time, matches it with its instruction set, and performs the data manipulation specified.

The result is either stored back into memory or displayed on an output device.

Page 3: Introduction to Microprocessor

• The 8085 uses three separate busses to perform its operations–The address bus.–The data bus.–The control bus.

Page 4: Introduction to Microprocessor

THE ADDRESS BUS– 16 bits wide (A0 A1…A15)

• Therefore, the 8085 can access locations with numbers from 0 to 65,536. Or, the 8085 can access a total of 64K addresses.

– “Unidirectional”.• Information flows out of the microprocessor and into the

memory or peripherals.

– When the 8085 wants to access a peripheral or a memory location, it places the 16-bit address on the address bus and then sends the appropriate control signals.

Page 5: Introduction to Microprocessor

THE DATA BUS– 8 bits wide (D0 D1…D7)

– “Bi-directional”.• Information flows both ways between the

microprocessor and memory or I/O.

– The 8085 uses the data bus to transfer the binary information.

– Since the data bus has 8-bits only, then the 8085 can manipulate data 8 bits at-a-time only.

Page 6: Introduction to Microprocessor

THE CONTROL BUS–There is no real control bus.

Instead, the control bus is made up of a number of single bit control signals.

Page 7: Introduction to Microprocessor

THE CONTROL AND STATUS SIGNALS

• There are 4 main control and status signals. These are:• ALE: Address Latch Enable. This signal is a pulse that

become 1 when the AD0 – AD7 lines have an address on them. It becomes 0 after that. This signal can be used to enable a latch to save the address bits from the AD lines.

• RD: Read. Active low.• WR: Write. Active low.• IO/M: This signal specifies whether the operation is a

memory operation (IO/M=0) or an I/O operation (IO/M=1).• S1 and S0 : Status signals to specify the kind of operation

being performed .Usually un-used in small systems.

Page 8: Introduction to Microprocessor

FREQUENCY CONTROL SIGNALS• There are 3 important pins in the frequency control group.

– X0 and X1 are the inputs from the crystal or clock generating circuit.• The frequency is internally divided by 2.

– So, to run the microprocessor at 3 MHz, a clock running at 6 MHz should be connected to the X0 and X1 pins.

– CLK (OUT): An output clock pin to drive the clock of the rest of the system.

• We will discuss the rest of the control signals as we get to them.

Page 9: Introduction to Microprocessor

ARITHMETIC LOGIC UNIT (ALU)

• Addition• Subtraction• Multiplication• Division• Comparison• Logic Operations

CONTROL

OPERAND A

OPERAND B

RESULT

Page 10: Introduction to Microprocessor

PIPELINING – FETCH STAGE

• Get Instruction From Memory• Store In Instruction Register

Instruction #1

FETCH DECODE EXECUTE

Page 11: Introduction to Microprocessor

PIPELINING – DECODE STAGE

• Determine Instruction Type• Get Necessary Data• Setup ALU

Instruction #2

FETCH DECODE EXECUTE

Instruction #1

Page 12: Introduction to Microprocessor

PIPELINING – EXECUTE STAGE

• Perform Required Operation• Store Result In Result Register

Instruction #3

FETCH DECODE EXECUTE

Instruction #2 Instruction #1

Page 13: Introduction to Microprocessor

MEMORY

• Stores Data and Instructions

• Communicates With Microprocessor– System Bus

MICRO-PROCESSOR

SYSTEM BUS

MEMORY CHIPS

Page 14: Introduction to Microprocessor

RANDOM-ACCESS MEMORY (RAM

• “Scratch Pad”

• Stores Data and Programs During Execution

• Only Retains Data While Powered On

Page 15: Introduction to Microprocessor

READ-ONLY MEMORY (ROM)

• “Instruction Manual”

• Data Doesn’t Change

• Used When System Starts