Statement:Write a program to generate a delay of 0.4 sec if the crystal frequency is 5 MHz.
Home
8085 Forum
8085 Free Projects
8085 Free Programs
8085 Tutorials
8085 details
Interfacing Techniques
Electronic Tutorials
Electronic Projects
Assembler/ IDE
Datasheets
Guest Book
About Me
Calculation: In 8085, the operating frequency is half of the crystal frequency,
ie.Operating frequency            = 5/2 = 2.5 MHz
       Time for one T -state             =        
Number of T-states required   =  
                                       = 1 x 106
Source Program:
LXI B, count                : 16 - bit count
BACK: DCX B                : Decrement count
MOV A, C                
ORA B                        : Logically OR Band C
JNZ BACK                : If result is not zero repeat