Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com.

Slides:



Advertisements
Similar presentations
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Advertisements

Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
Chapter 2 Microprocessor Architecture
The 8085 Microprocessor Architecture
Timing Diagram is a graphical representation
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
Processor System Architecture
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Chapter 0 Introduction to Computing
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
Computer Organization and Architecture
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
created by :Gaurav Shrivastava
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Computer Architecture
MICROPROCESSOR INPUT/OUTPUT
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Mux 2.1 Multiplexers and De-Multiplexers 2: ©Paul Godin Updated November 2007.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
MICROPROCESSOR FUNCTION Technician Series Created Mar 2015 gmail.com.
MICROPROCESSORS AND APPLICATIONS
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
MACHINE CYCLE AND T-STATE
Control Unit Operations Chapter10:. What is Control Unit (CU)?(1)  Part of a CPU or other device that directs its operation.  Tells the rest of the.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter Microcontroller
8085 Microprocessor: Architecture & Support Components.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Gandhinagar Institute of Technology
AMITY UNIVERSITY RAJASTHAN Present By M.Sc Applied Chemistry.
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
8085 Microprocessor Architecture
Seminar On 8085 microprocessor
Microprocessor Communication and Bus Timing
The 8085 Microprocessor Architecture
CPU Sequencing 6/30/2018.
The 8085 Microprocessor Architecture
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture 7th Edition
Dr. Michael Nasief Lecture 2
collected by C.Gokul AP/EEE,VCET
8085 Microprocessor Architecture
Chapter 15 Control Unit Operation
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Architecture & Support Components
William Stallings Computer Organization and Architecture 7th Edition
8085 Microprocessor Architecture
X1 & X2 These are also called Crystal Input Pins.
Chapter 14 Control Unit Operation
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Presentation transcript:

Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com

Buses The data bus is bi-directional and is responsible for transporting data between the  P and the peripheral devices. The address bus identifies the location of the peripheral device or memory location. Address buses are unidirectional. The bits flow from the MPU to the devices. The control buses are unidirectional. Each has a unique function. They are used to control operations and indicate status. Examples include buses to enable or tristate devices on the common bus, or to indicate when a process is complete. 2

Multiplexing Multiplexing is defined as utilizing a bus for several functions. MPUs and other similar devices often multiplex their address bus: –The first grouping of address bits, or lower address, (example: AD 0 to AD 7 ) are alternately used for address and data bits. –The upper address bus, or high-order addresses (example: A 8 to A 15 ), are not multiplexed and are unidirectional. Question: why multiplex? 3

Demultiplexing An external demultiplexeing system is used to separate the address output from the data output of the AD bus. An external register latches onto the address and holds it. A control signal called the ALE (Address Latch Enable) provides an output pulse to cause the external register to latch onto the lower address. The following slides shows an example… 4

Sequence for Demux The microprocessor provides a 16-bit address (such as a Fetch cycle) –A Lower 8-bit on the AD bus (Address-Data) –A Higher 8-bit on the A bus (Address) The ALE (Address Latch Enable) outputs a pulse indicating that the lower 8-bits are address. The lower address is saved in a PIPO register (the ALE provided the edge required). The Microprocessor then uses the lower 8-bits as data 5

Upper Address Bus Lower Address Bus Data Bus Microprocessor 6 Microprocessor shares the Lower Address Bus with the Data Bus

Upper Address Bus Lower Address Bus Data Bus Microprocessor 7

8

9

10

11

12

Example of buses of a basic micro 13

Control Buses To avoid bus contention problems, only a single device is enabled at a time, Devices are enabled/disabled via tri-stateable outputs Control: In peripheral-mapped I/O, the I/O is enabled through the use of control lines. In memory-mapped I/O, the I/O is enabled through the use of address ranges (external decoder required). 14

Decoding an Address in Memory- Mapped I/O 15 Address 16-bit Upper 3 bits A 15 A 13 3 to 8 Decoder A B C Y0Y0 Y1Y1 Y2Y2 Y3Y3 Y4Y4 Y5Y5 Y6Y6 Y7Y7 Individual Device Enables

Timing Diagrams 16

Basic Function of a Microprocessor Microprocessors fetch an instruction and execute that instruction. The cycle is repeated. Microprocessors use a variety of bus connections to locate values, move data, and to enable or disable devices. Fetch Execute 17

Timing Diagrams Timing diagrams in microprocessor systems are a little different from traditional digital timing diagrams. There are many, many more combinations of inputs and outputs, therefore the individual lines that make up the data bus are not usually included in the timing diagram. Combined lines are indicated with a 18

Bus Timing Diagrams Timing diagrams for bus operations can be difficult to manage. –With so many connections, the diagrams may become unmanageable. –Outputs aren’t addressed on a value-by-value basis. The actual values are based on the instructions and data controlled by the micro system. Timing diagrams for bus systems focus on timing of groups of signals rather than the results of individual inputs and outputs. 19

Bus Timing Diagrams Address and data buses are represented this way: Float or don’t care state Binary value 1 Binary value 2 Float or don’t care state 20

Machine Cycles Microprocessors follow a pattern when fetching and executing instructions and performing read and write processes. These patterns are called machine cycles and are usually identified by M 1, M 2, etc … Specification Sheet

T-States The clock provides edges to the microprocessor The microprocessor circuitry converts these edges to another clock called a “T-State”. This is the standard clock for most operations in a computer. 22

M 1 : Opcode Fetch Cycle The first cycle is the Fetch cycle, or M 1. 23

M 1 T 1 At M 1 T 1, the first clock pulse indicates that the lower multiplexed address/data bus is providing an address. ALE goes high, then provides a negative edge in the middle of the cycle for the external latch. 24 T 1 is used to demux the AD bus

M 1 T 2 At M 1 T 2, the lower address has already been latched. The read (RD’) is active and the instruction is placed on AD 0 to AD 7. 25

M 1 T 3 At M 1 T 3, the instruction from memory is on AD 0 to AD 7 and is read into the microprocessor’s register. 26

M 1 T 4 At M 1 T 4, the instruction is processed by the microprocessor and the AD 0 to AD 7 are in a high impedance state. 27

M 2: Memory Read Cycle The second cycle to discuss is the memory read cycle. 28

M 2 T 1 Just prior to M 2 T 1, the Program Counter increments the address by 1 (PC+1). The lower address bus is latched by ALE. 29 T 1 is used to demux the AD bus

M 2 T 2 At M 2 T 2, the read is active (RD’). On the rising edge of T 2 the data bus is now an input bus to the MPU. 30

M 2 T 3 At M 2 T 3, the MPU reads and stores the byte in the ACC register. 31

M 3: Memory Write Cycle The memory write cycle is required to provide processed data from the microprocessor to either the memory or I/O devices. 32

M 3 T 1 At M 3 T 1, the MPU provides the IO address. The lower order address is latched by the falling ALE edge. 33 T 1 is used to demux the AD bus

M 3 T 2 At M 3 T 2, the write has been enabled and the decoder has enabled the proper I/O IC to read the data that is now on the AD bus. 34

M 3 T 3 At M 3 T 3, the active-low write is disabled and the microprocessor is ready for the next instruction. 35

1 st Approximation First approximation is when one estimates the approximate amount of “T-States” needed for each cycle. Using the First Approximation method, the following is assumed: –All Fetch Cycles = 4 T-States –All ALU Functions with No Bytes = 1 MC = 4 T-States –All 1 byte Functions with 1 Byte = 2 MC = 7 T-States (4+3) –All 2 byte Functions with 2 Byte = 3 MC = 10 T-States (4+3+3) 36

End of Part 3 37 ©Paul R. Godin prgodin gmail.com