Led Blinking Tutorial with 8051/89c51 and ukeil 4
This is the program in assembly to glow an LED in assembly.
I wrote this program in Ukeil4 you can use other software for compiling and generating the hex file . Just write this program and create hex file, draw the circuit in proteus and upload the hex file in the mc and the led will glow thats it . If you have any doubt ask me: ashonline25@gmail.com
org 0000h loop: mov b, #0FFh acall delay clr p1.0 mov b, #0FFh acall delay mov p1, #0FFh ajmp loop delay: djnz acc, delay mov acc, #0FFh djnz b, delay ret end
http://www.youtube.com/watch?feature=player_embedded&v=HatqLE6OPSU
for the video.
No comments:
Post a Comment