1 / 20

Computer Architecture

This lecture discusses the process of interfacing the microprocessor with memory, including addressing, decoding, and timing of read and write cycles. It also covers interrupt signals, reset signals, and direct memory access (DMA).

eadams
Download Presentation

Computer Architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer Architecture Lecture 6by Engineer A. Lecturer AymenHasanAlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation 1

  2. Bus Timing. Cont. Review Example: MVI A,32H (means load 32h in the register (A)) 2000H 3EH 2001H 32H • Illustrate the bus timing ? • Calculate the time required to execute the opcode and memory read if the clock frequency is 2MHz. 0011 1110 0011 0010

  3. Bus Timing. Cont. Clock frequency= 2 MHz T-state= clock period (1/f) = 0.5 µs Execution time of Opcode fetch: (4T)= 2 µs Execution time of Memory read: (3T)= 1.5 µs So, Execution time of Instruction: (7T)= 3.5 µs

  4. 1. Memory interfacing There needs to be a lot of interaction between the microprocessor and the memory for the exchange of information during program execution. Memory has its requirements on controlsignals and their timing. The microprocessor has its requirements as well. (Read and write from and on it) The interfacing operation is simply the process of designing a circuit to match these requirements.

  5. 1.2 Memory structure & its requirements The way of interfacing the above two chips to the microprocessor is the same. However, the ROM does not have a WR signal which is for input buffer and RD for output buffer. Data Lines RAM WR Input Buffer R/W Memory 2048×8 CS EPROM 4096×8 Address Lines Address Lines CS RD Output Buffer RD Output Buffer Data Lines Date Lines ROM Internal decoder A11 Internal decoder A10 A0 A0

  6. 1.3 Interfacing Memory Accessing memorycan be summarized into the following three steps: Select the chip. Identify the memory register. Enable the appropriate buffer. Translating this to microprocessordomain: The microprocessor places a 16-bit address on the address bus. Part of the address bus will select the chip and the other part will go through the address decoder to select the register. The signals IO/M and RD combined indicate that a memory read operation is in progress (MEMR ) and it can be used to enable the RD line on the memory chip.

  7. Timing of memory read cycle

  8. Timing of memory write cycle

  9. 1.4 Address decoding The result of ‘address decoding’ is the identification of a register for a given address. A large part of the address bus is usually connected directly to the address inputs of the memory chip. This portion is decoded internally within the chip. What concerns us is the other part that must be decoded externally to select the chip. This can be done either using logic gates or a decoder.

  10. Putting all of the concepts together:Back to the Overall Picture Chip Selection Circuit A15- A10 8085 CS A15-A8 ALE A9- A0 1K Byte Memory Chip AD7-AD0 Latch A7- A0 D7- D0 WR IO/M RD WR RD

  11. Address Decoding types A15 A15 A14 A13 E1 E2 E3 A12 O Address Decoding using NAND A14 A13 3-to-8Decoder A12 Address Decoding using 3-to-8 Decoder

  12. 1.5 Interrupt signals • An interrupt is a hardware-initiated subroutine CALL. • When interrupt pin is activated, an ISR will be called, interrupting the program that is currently executing. ISR: interrupt Service Register, a type of register in a Programmable Interrupt Controller

  13. 1.5.1 Interrupt signals • INTR input is enabled when EI (Embedded instruction) is executed. • The status of the RST 7.5, RST 6.5 and RST 5.5 pins are determined by both EI instruction and the condition of the mask bits in the interrupt mask register.

  14. Interrupt Vectors

  15. A circuit that causes an RST4 instruction (E7) to be executed in response to INTR. • When INTR is asserted, 8085 response with INTA pulse. • During INTA pulse, 8085 expect to see an instruction applied to its data bus.

  16. 1.6 RESET signal • Following are the two kind of RESET signals: • RESET IN: an active low input signal, Program Counter (PC) will be set to 0 and thus MPU will reset. • RESET OUT: an output reset signal to indicate that the μp was reset (i.e. RESET IN=0). It also used to reset external devices.

  17. RESET signal

  18. 1.7 Direct Memory Access (DMA) • DMA is an IO technique where external IO device requests the use of the MPU buses. • Allows external IO devices to gain high speed access to the memory. • Example of IO devices that use DMA: disk memory system. • HOLD and HLDA are used for DMA. • If HOLD=1, 8085 will place it address, data and control pins at their high-impedance. • A DMA acknowledgement is signaled by HLDA=1.

  19. Reading assignment (Report) • Topic (Challenges in memory interfacing) • Write as minimum 3 pages in clear English and give your conclusions and ideas about any potential solutions. • Font 12 pt Times New Roman. • DO NOT COPY AND PASTE (plagiarism). • List your references. • Write down your name and group clearly. • Submit your paper on aymen@uokufa.edu.iq in MS Word doc(x) format. • Dead-line is the end Monday 9/12/2013.

More Related