$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?
Hello, Because it ignores the ACSR register configuration instructions, it works to the comparator in minimum performance and detects step x 0, of a frequency, but it does not allow me to configure the trigger for skinny, for example.
Juanje said:it ignores the ACSR register configuration instructions
You mean this:
https://community.arm.com/developer/tools-software/tools/f/keil-forum/49383/the-at89lp214-register-acsr-is-deactived-i-now-reason
See the reply there.
It is highly unlikely that the assembler is at fault: www.catb.org/.../smart-questions.html