Total slides: 39
Introduction to the Timing Diagram
Machine Cycles
Machine Cycles of Microprocessor 8085
Opcode Fetch Machine Cycle
Memory Read Machine Cycle
Memory Write Machine Cycle
IO Read Machine Cycle
IO Write Machine Cycle
Examples
Size: 1.91 MB
Language: en
Added: Jul 26, 2021
Slides: 39 pages
Slide Content
Timing Diagram of Microprocessor 8085
Dr. Nilesh Bhaskarrao Bahadure
https://www.sites.google.com/site/nileshbbahadure/home
July 26, 2021
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 1 / 39
Overview
1
Introduction to the Timing Diagram
Introduction to the Timing Diagram
Machine Cycles
Machine Cycles of Microprocessor 8085
Opcode Fetch Machine Cycle
Memory Read Machine Cycle
Memory Write Machine Cycle
IO Read Machine Cycle
IO Write Machine Cycle
2
Group-I One Machine Cycle with 4 T - States
3
Group-II One Machine Cycle with 6 T - States
4
Group-III Two Machine Cycle Instructions
Exceptions of the Group-III
5
Group-IV Three Machine Cycle Instructions
6
Group-V JMP Instruction
Conditional Jump Instruction
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 2 / 39
Overview
7
Group-VI RET Instruction
Conditional RET Instruction
8
Group-VII CALL Instruction
Conditional CALL Instruction
9
Group-VIII LDA STA LHLD SHLD XTHL Instruction
10
Examples
Example-I MVI B, 43
Example-II INR M
Example-III IN C0
Example-IV STA
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 3 / 39
Introduction to the Timing Diagram
Timing Diagram is a graphical representation of the instruction execution
in steps with respect to the time (clock signal). It represents the execution
time taken by each instruction in a graphical format. The execution time
is represented in T-states. The dierent types of cycles used in the timing
diagram representation are as follows:
Instruction Cycle:
Instruction cycle is dened as the time required completing the execution
of an instruction. The 8085Pinstruction cycle consists of one to ve
m/c cycles or one to ve operations.
Machine Cycle:Machine cycle is dened as the time required completing the operation of
accessing memory or input / output. In 8085P, m/c cycle may consists
of three to six timing state (T - state)
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 4 / 39
Introduction to the Timing Diagram...
T-State:T State is dened as one subdivision of the operation performed in one
clock period. These subdivisions are internal states synchronized with the
system clock.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 5 / 39
Machine Cycles of Microprocessor 8085
Opcode fetch cycle (4T/6T)Memory read cycle (3 T)Memory write cycle (3 T)I/O read cycle (3 T)I/O write cycle (3 T)Halt state machine cycleInterrupt acknowledge machine cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 7 / 39
Opcode Fetch Machine Cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 8 / 39
Memory Read Machine Cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 9 / 39
Memory Write Machine Cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 10 / 39
IO Read Machine Cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 11 / 39
IO Write Machine Cycle
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 12 / 39
One Machine Cycle Instructions 4 T - States
InstructionInstructionInstruction
MOV Rd, RsXCHGADD RADC RSUB RSBB RRALRLCRRCRARSTCCMCCMAINR RDCR RANA RORA RXRA RDAAEIDISIMRIMNOPCMP R
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 13 / 39
One Machine Cycle Instructions 6 T - States
InstructionInstruction
INX RpDCX RpSPHLPCHL
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 14 / 39
Two Machine Cycle Instructions
Instruction Machine
Cycle 1
Machine
Cycle 2
MVI Rd, DATAFRMOV R,MFRMOV M,RFWADI DATAFRACI DATAFRSUI DATAFRSBI DATAFRANI DATAFR
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 15 / 39
Two Machine Cycle Instructions...
Instruction Machine
Cycle 1
Machine
Cycle 2
ORI DATAFRXRI DATAFRCPI DATAFRADD MFRADC MFRSUB MFRSBB MFRANA MFR
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 16 / 39
Two Machine Cycle Instructions...
Instruction Machine
Cycle 1
Machine
Cycle 2
ORA MFRXRA MFRCMP M MFRLDAX RpFRSTAX RpFW
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 17 / 39
Exceptions of the Group-III
Instruction Instructions
INR MDCR MMVI M, DATAIN 8-BIT PORT ADDRESSOUT 8-BIT PORT ADDRESS
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 18 / 39
Three Machine Cycle Instructions
Instruction m/c Cycle 1m/c Cycle 2m/c Cycle 3
LXI Rp, DATAFRRINR MFRWDCR MFRWMVI M, DATAFRWIN 8- bit Port AddressFRIOUT 8- bit Port AddressFROPUSH RpSWWPOP RpFRRRSTnSWWDAD RpFBB
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 19 / 39
Conditional & Unconditional Jump Instructions
Instruction m/c Cycle 1m/c Cycle 2m/c Cycle 3
JMP ADDRFRR
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 20 / 39
Conditional Jump Instructions
Conditional Branching
Instruction Condition not
Satised
Condition Satis-
ed
JC ADDRF RF R RJNC ADDRF RF R RJZ ADDRF RF R RJNZ ADDRF RF R RJP ADDRF RF R RJM ADDRF RF R RJPE ADDRF RF R RJPO ADDRF RF R R
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 21 / 39
Conditional & Unconditional RET Instructions
Instruction m/c Cycle 1m/c Cycle 2m/c Cycle 3
RETFRR
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 22 / 39
Conditional RET Instructions
Conditional Branching
Instruction Condition not
Satised
Condition Satis-
ed
RCSS R RRNCSS R RRZSS R RRNZSS R RRPSS R RRMSS R RRPESS R RRPOSS R R
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 23 / 39
Conditional CALL Instructions
Conditional Branching
Instruction Condition not
Satised
Condition Satised
CC ADDRS
R
S
RRWW
CNC ADDRS
R
S
RRWW
CZ ADDRS
R
S
RRWW
CNZ ADDRS
R
S
RRWW
CP ADDRS
R
S
RRWW
CM ADDRS
R
S
RRWW
CPE ADDRS
R
S
RRWW
CPO ADDRS
R
S
RRWWMain Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 25 / 39
LDA STA LHLD SHLD XTHL Instruction
Instruction Machine Cycles
LDA ADDRF
RRR
STA ADDRF
RRW
LHLD ADDRF
RRRR
SHLD ADDRF
RRWW
XTHLF
RRWWMain Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 26 / 39
Draw timing diagram for MVI B, 43
Example Draw timing diagram for MVI B, 43H. Assume that instruction is located
at memory location 2000h and the opcode of MVI B, data is 06h
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 27 / 39
Draw timing diagram for MVI B, 43
Solution
Address Mnemonics Opcode/Data
2000hMVI B, 43h06h2001h43h
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 28 / 39
Draw timing diagram for MVI B, 43
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 29 / 39
Draw timing diagram for INR M
Example Draw timing diagram for the instruction INR M, which are located at
memory location address 4105. Assume that the opcode of INR M is 34h,
also assume that HL = 4250 and the contents of memory location 4250h
is 12h.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 30 / 39
Draw timing diagram for INR M
Solution
Address Mnemonics Opcode/Data
4105hINR M34h
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 31 / 39
Draw timing diagram for INR M
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 32 / 39
Draw timing diagram for IN C0
Example Draw the timing diagram for the instruction IN C0h with the following
information
4125h DBh (Opcode of IN instruction)4126h C0h
Assume that the contents of the port address C0h is 5Eh
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 33 / 39
Draw timing diagram for IN C0
Solution
Address Mnemonics Opcode/Data
4125hIN C0hDBh4126hC0h
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 34 / 39
Draw timing diagram for IN C0
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 35 / 39
Draw timing diagram for STA 526Ah
Example Draw the timing diagram for the STA 526A instruction, assume that the
opcode of STA is 32h and it is fetched from the memory location address
41FFh.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 36 / 39
Draw timing diagram for STA 526Ah
Solution
Address Mnemonics Opcode/Data
41FFhSTA 526Ah32h4200h6Ah4201h52h
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 37 / 39
Draw timing diagram for STA 526Ah
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 38 / 39
Thank you
Please send your feedback at [email protected]
For more details and updates kindly visit
https://sites.google.com/site/nileshbbahadure/home
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Timing Diagram July 26, 2021 39 / 39