Sunteți pe pagina 1din 2

Make an LED blink using ATMEL 89C51

This is by far one of the simplest things to do. Every beginner can try this out

POWER SUPPLY
For the power source, you can use a 9 volts battery available anywhere,

Schematics
Source Code (asm)
#INCLUDE “8051EQU.INC”;
.ORG #00H;
MOV P1,#00H;
HERE: CPL P1.0;
MOV R1,#0FFH;
BACK2:MOV R0,#0FFH;
BACK: DJNZ R0,BACK;
DJNZ R1,BACK2;
SJMP HERE;
.END;

My experiment

S-ar putea să vă placă și