Assembly code for LED Flashing
Sample code for LED Flashing using delay subroutine.
Following code can be using for 8051 and 8052 ICs like: 89c51, 89c52, 89s51, 89s52, 89c2051.
org 0000h jmp start start: mov p1,#FFh call delay mov p1,#00h call delay jmp start delay: mov r0,#10 del2: mov r1,#250 del1: mov r2,#250 djnz r2,$ djnz r1,del1 djnz r0,del2 ret end
Highlights
-
List of Projects
Navigate through wide range of projects of 8051. Applications including ADC, DAC, LCD, Matrix LEDs, Keypad, Stepper Motor, DC motor, EEPROM, Relay, Timer, Sensors, RTC and much more.
Pick and Place Robot Temperature & Light Controller Rolling Display Matrix LEDs Person Counter & Password Detector Home Security System Data Logger Greenhouse monitor & control Flow computer Electronic Voting Machine Pick & Place Robot Temperature & Light Controller Rolling Display Matrix LEDs Person Counter & Password Detector Data Logger Home Security System Greenhouse monitor & control Flow computer
Read More