Answer the question
In order to leave comments, you need to log in
How to set a delay of 95ms?
org 0
ljmp start
delay_100ms:
mov r2,#250
m2:
mov r0,#250
m0:
mov r1,#199
m1:
djnz r1,m1
djnz r0,m0
djnz r2,m2
ret
start:
mov P1,#00011111b
cycle:
jnb p1.4, no_blink
cpl p1.7
no_blink:
call delay_100ms
jmp cycle
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question