Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of...

14
Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction cycle Name of Faculty : H.M.Avaiya & N.D.Dhameliya Name of Students: (i) SAINI SHIVANISINGH

Transcript of Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of...

Page 1: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

Subject Code : 3330705

Name Of Subject : Microprocessor and assembly language

programming

Name of Unit : Instruction cycle and Timing diagram

Topic : Instruction cycle

Name of Faculty : H.M.Avaiya & N.D.Dhameliya

Name of Students: (i) SAINI SHIVANISINGH J(091)

(ii) PANDYA DHVANIBEN D(092)

Page 2: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

Instruction Cycle

Page 3: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

The microprocessor primarily performs four operations as listed below:

1. Memory read-to read data from memory

2. Memory write-to write data into memory

3. I/O read-to take data from input device

4. I/O write-to send data from output device

Page 4: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

Example:-Let us consider the timing and execution of MOV A ,

B instruction stored in the program memory.This example is for 1 bit instruction.

op code fetch

Memory location Instruction Machine code

2000h MOV A, B 78h

Page 5: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
Page 6: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

In this opcode fetch four T-state are used.

T-state:- each operation of the microprocessor is performed in synchronization with the internal clock. One clock pulse is called T-state.

ALE: It stands for Address Latch Enable. when it is high it indicates address and when it is low it indicates data and opcode.

Page 7: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

A8-A15:It indicates higher order address.In this cross is indicates the muitibit line is given. In this example higher order address is 20h.

AD7-ADO:It is the multiple line to data/add line. so for this example ooh is the lower order address and 78h is op code.

IO/M:In op code fetch IO/M is IO/M=0 S1=1 S2=2

Page 8: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

Example:Let us consider the timing and execution of MVI A , FFh instruction stored in program memory.

When 2 byte instruction is given draw op code fetch and memory read together.

Memory location Instruction Machine code

2000h2001h

MVI A , FFh 3EhFFh

Page 9: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
Page 10: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

Memory read AND memory write:

In memory read cycle store the data from memory.

MEMR signal enable the memory device for read operation .

The memory write operation is also very similar to memory read operation except it uses WR signal to generate MEMW signal as shown in figures.

Page 11: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
Page 12: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
Page 13: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

The RD and WR signals are used with IO/M = 1 to generate IOR and IOW control signals required to complete the I/O read and I/O write operation.

Page 14: Subject Code : 3330705 Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.

THANK YOU