This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with IRQ - Asembler

I have this little assem

;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++    
;      SI PULSAMOS P1.0 TENEMOS UNA ONDA CUADRADA
;         CONTROLADA POR EL FLAG DE SU TMR DE <6 HZ A 26 kHz>
;           LA RUTINA LIMPIA LA BANDERA TF1    
;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$NOMOD51		
		
$INCLUDE (C:\C51\INC\Atmel\AT89LP214.h)
	
				USING	00
				ORG		00H
                
				MOV		IE,10001111B		// IE (EA+TMR0+)	
				MOV		TCON,01011010B		// TCON - START/STOP TMRs
				MOV		TCONB,11000000B		// TCONB  | PSC	| PWM 091H
				MOV		TMOD,00000000B		// TMOD | (13 bits)                  
				MOV		CLKREG,00000000B	// CLKREG | TPS / CDV
				
				MOV		P3M1,#00000000B		// P3M1
				MOV		P3M0,#00001111B		// P3M0 Entradas
				MOV		P1M1,#00000000B		// P1M1
			    MOV		P1M0,#00000011B		// P1M0		

CUADRADA:		SETB	P1.6				
				ACALL	TIEMPO
				CLR		P1.6
				ACALL	TIEMPO
				DJNZ	0FFH,CUADRADA
				
				ORG		03H
CUADRADA1:		SETB	P1.4
				ACALL	TIEMPO
				CLR		P1.4
				ACALL	TIEMPO
PULSA1:			JNB		P1.1,PULSA1			// Captura pulsación
				;SJMP	CUADRADA1
				DJNZ	0FFH,CUADRADA1
				RETI

TIEMPO:			MOV		TL1,#000H
				MOV		TH1,TL1
				SETB	TR1
AQUI1:			JNB		TF1,AQUI1			// Rearma FLAG TMR_0
				CLR		TF1
				CLR		TR1
				RET
		
				END
bler program and it won't start the program from the IRQ call, I check everything and I don't see the error, you can take a look at it. Thank you.