Hi,
Are there any tricks to simulate 'SETINT OR input,mask' with an 08M ?
I need a Picaxe which does virtually nothing except loop waiting for one of two interrupts. One interrupt is from an external switch and simply increments a variable and the second is from another Picaxe requesting a serout to send the variable.
The main 'doing nothing' loop is:
so it's not possible to put either the external switch or the request from the second Picaxe inside the main loop.
In 'pseudo' code, the interrupt is simply:
Anything bigger than an 08M seems overkill (especially in terms of "managing" unused pins) but I can't see any way of implementing an interrupt from one pin OR another pin with anything less than a 14M2. ??
John.
Are there any tricks to simulate 'SETINT OR input,mask' with an 08M ?
I need a Picaxe which does virtually nothing except loop waiting for one of two interrupts. One interrupt is from an external switch and simply increments a variable and the second is from another Picaxe requesting a serout to send the variable.
The main 'doing nothing' loop is:
Code:
main:
for b0 = 1 to 60
pause 60000
next
b1 = 0
goto main
In 'pseudo' code, the interrupt is simply:
Code:
interrupt:
setint {input}, {mask}
if pin1 = 1 then
inc (b1)
else
serout pin0, N2400, (b1)
endif
return
Anything bigger than an 08M seems overkill (especially in terms of "managing" unused pins) but I can't see any way of implementing an interrupt from one pin OR another pin with anything less than a 14M2. ??
John.
Last edited: