You are on page 1of 1

Assignment 1

Calculate the total time required to execute the following program. Crystal Oscillator Frequency is
20MHz. Show proper calculations.
ORG 00H
DELAY EQU 20H
DELAY2 EQU 21H
CLRF
CLRF

DELAY
DELAY2

MOVLW
MOVWF
MOVLW
MOVWF

D'85'
DELAY
D'100'
DELAY2

LOOP1:
NOP
DECFSZ DELAY
GOTO
LOOP1
LOOP2:
DECFSZ DELAY2
GOTO
LOOP2
CLRF
CLRF

DELAY
DELAY2

END
Copied assignments will have negative marking

You might also like