LEDPIN BIT P3.5 ;your favorite port pin (LED preferred) ORG 00H JMP Z ORG 30H Z: CLR P3.3 CLR P3.4 CPL P3.4 BLINK: CPL LEDPIN ;toggle pin (Great, if connected to a LED!) MOV R3,#4 ;wait for TIME * 125 ms (12 MHz) MOV R2,#0 MOV R1,#0 LOOP: DJNZ R1,LOOP DJNZ R2,LOOP DJNZ R3,LOOP SJMP BLINK ;This is repeated forever, ;if you don't press reset ... END