Hello,
I need some help with that function. I see that more than one gate can be used to trigger the interrupt.
The question is: can it be different interrupt or is it going to be the same with conditions inside?
For example, I want to turn on a LED if pin 0 is high and another if pin 1 is high. Normally I would do it this way. But can it be done using two distinct interrupt functions?:
******************************
Is something like this possible:
****************************
The obviously advantage would be the speed of execution.
Thank for your input,
Yves
I need some help with that function. I see that more than one gate can be used to trigger the interrupt.
The question is: can it be different interrupt or is it going to be the same with conditions inside?
For example, I want to turn on a LED if pin 0 is high and another if pin 1 is high. Normally I would do it this way. But can it be done using two distinct interrupt functions?:
Code:
setint %00000011,%00000011
main:
do
...
...
loop
interrupt:
if pin0 = 1 then : high 3
else if pin1 = 1 then : high 4
endif
setint %00000011,%00000011
return
Is something like this possible:
Code:
interrupt_0:
high 3
setint %00000011,%00000011
return
interrupt_1:
high 4
setint %00000011,%00000011
return
The obviously advantage would be the speed of execution.
Thank for your input,
Yves