ORG 0000H
          SJMP INI
INI:     
          NOP
          MOV TMOD,#02H
          MOV TH0,#0FEH
          MOV TL0,#0FEH
          MOV IE,#02H
          SETB TR0
          SETB P1.1
          SETB 00H
          MOV R4,#0FEH
          MOV R1,#80H
          SJMP MAIN
MAIN: 
          MOV A,R4
          CLR P1.1
          MOV R6,A
          DJNZ R6,$
          SETB P1.1
          MOV A,R4
          CPL A
          MOV R6,A
          DJNZ R6,$
          DJNZ R1,MAIN
          DEC R4
          MOV R1,#80H
          AJMP MAIN
END
