ORG 00H LJMP START ORG 0BH LJMP COUNTER ORG 30H MOV SP,#50H MOV A,TMOD ANL A,#11110000B ORL A,#00001001B MOV TMOD,A MOV TH0,#(65536-10000)/256 MOV TL0,#(65536-10000).MOD.256 CLR TF0 SETB IE.1 SETB IE.7 SETB TR0 MOV A,#0FEH MOV P0,A MOV R0,50 L1: NOP JMP L1 COUNTER: CLR IE.1 MOV TH0,#(65536-10000)/256 MOV TL0,#(65536-10000).MOD.256 DJNZ R0,L2 RR A MOV P0,A MOV R0,50 SETB IE.1 RETI END