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 whit the two IRQs the AT89LP214


$NOMOD51		
		
$INCLUDE (C:\C51ASM\INC\AT89LP214.inc)

			USING	00
			ORG		0x00
			ORG		0x003
			ACALL	CUADRADA1
			ORG		0x013
			ACALL	CUADRADA0
				
			MOV		IE,#10000101B		// IE (EA+TMR0+)	          || EA + EX0 = EN
			MOV		TCON,#00000000B		// TCON - START/STOP TMRs	  || FLANCO	BORRA AUTO
				 
			MOV		TMOD,#00000000B		// TMOD   | (13 bits)                  
			MOV		CLKREG,#11110001B	// CLKREG | TPS / CDV         || COE      = IN
				
CUADRADA0:	SETB		P1.6
			ACALL		TIEMPO1
			CLR		    P1.6
			ACALL		TIEMPO1
IRQ0:  		JNB		    IE0,IRQ0			// Captura IRQ (P3.3)
			DJNZ		0FFH,CUADRADA0
				

CUADRADA1:	SETB		P1.4
			ACALL		TIEMPO1
			CLR		    P1.4
			ACALL		TIEMPO1
IRQ1:  		JNB		    IE1,IRQ1			// Captura IRQ (P3.3)
			DJNZ		0FFH,CUADRADA1
			RETI


TIEMPO1:	MOV		TL0,#000H
			MOV		TH0,TL0
			SETB	TR0
REARME1:	JNB		TF0,REARME1			// Rearma FLAG TMR_0
			CLR		TF0
			CLR		TR0

			RET	

			END

Hello, I am working in assembler with the AT89LP214 to make some electronic circuits with alternating current and I see some deficiencies in the compiler, because the 2 external interrupts do not work simultaneously? here I show a simple program with the dops interrupts. Has anyone encountered this problem?