Hi all,
Got a problem how to get the interups 1 and 2 working.
Interupt 0 is working fine with the demo.
But i need more interupts how to do that ?
this code is what i use now for testing the interups:
------------------------------------------------------------------
Dim x As Byte
x = 255
TRISA = 0
PORTA = x
INTCON.INT0IE = 1
Enable High
End
On High Interrupt
x = x - 1
PORTA = x
INTCON.INT0IF = 0
Resume
----------------------------------------------------------------
if I change INTCON.INT0IE to INTCON.INT1IE (checkt the 0 or the 1) it will licht up blue but if I compile it gives an error "constant argument can not be used here"
I need 2 interupts for my project the 2550 has 3 (0,1,2) > pin 21,22,23
Can someone help me out ?
Got a problem how to get the interups 1 and 2 working.
Interupt 0 is working fine with the demo.
But i need more interupts how to do that ?
this code is what i use now for testing the interups:
------------------------------------------------------------------
Dim x As Byte
x = 255
TRISA = 0
PORTA = x
INTCON.INT0IE = 1
Enable High
End
On High Interrupt
x = x - 1
PORTA = x
INTCON.INT0IF = 0
Resume
----------------------------------------------------------------
if I change INTCON.INT0IE to INTCON.INT1IE (checkt the 0 or the 1) it will licht up blue but if I compile it gives an error "constant argument can not be used here"
I need 2 interupts for my project the 2550 has 3 (0,1,2) > pin 21,22,23
Can someone help me out ?
Last edited: