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

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$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
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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?

0