I changed as you suggested but corrected the ports, I guess this is what you meant
Code:
but1 var PORTB.4
but2 var PORTB.5
ledwork var PORTA.0
led1 var PORTA.1
led2 var PORTA.2
led3 var PORTA.3
rs var PORTA.5
And before the loop starts I added:
porta=0
portb=0
Now I can see the led1/led2 trigger after pressing for about a second, but the generic interrupt led3 is ON all the time which indicates me that the interrupt is being triggered constantly, regardless of the button presses.
Any idea?
Thanks
Pablo
Bookmarks