I want to blink led for some time
I made diagram using proteus
component
AT89C51
crystal
LED
diagram
assembly code
Q but Led is not blinking ?
I made diagram using proteus
component
AT89C51
crystal
LED
diagram
assembly code
Code:
org 00h
Setb P1.0 ; Led on
clr P1.0 ; Led off
delay:
mov R1, #20
mov R2, #0
delay1: djnz R2, delay1
djnz R1, delay1
ret
end
Q but Led is not blinking ?