Quantcast
Channel: Microcontrollers, Programming and IoT
Viewing all articles
Browse latest Browse all 1271

blink led

$
0
0
I want to blink led for some time
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 ?

Viewing all articles
Browse latest Browse all 1271

Trending Articles