Hello,
Please bear with me, this is my first posting here.
Also, I have not yet had any practical experience
with Picaxe, but am seriously interested in using
same in a project that I'm currently trying to work
up a design for.
I would like to ask about a particular issue in the
context of Interrupt-driven Serial Input.
I have in particular studied Hippy's website page:
http://www.hippy.freeserve.co.uk/picaxesi.htm
and also search the form for threads that reference
it and followed up other pointers in these.
I can see that it is feasible to have a 'ring' of Picaxes
each sending data to the next in the ring via a
uni-directional asynch serial connection between each
Picaxe and the immediate next Picaxe in the ring,
employing the Interrupt technique that Hippy describes.
Now for the question.
I would also like to have an additional Picaxe gathering
input data (*) that can communicate into one of the
Picaxes that are in the aforementioned ring.
This would seem to need the receiving Picaxe to be set
up with Interrupt handling for TWO different serial input
pins, one for input from the preceding Picaxe in the ring
plus one for input from the out-of-ring Picaxe.
Is this a workable construct?
I'm trying to think through what would happen if two
interrupts occur, one for each input pin, "at the same time"
or very close together in time.
The only postings that I can find that come near to touching
upon this matter are:
1.
http://www.picaxeforum.co.uk/showthread.php?t=10333
Diode Mixing circuit for multiple interrupts
This touches upon multiple inputs into one Picaxe but also speaks
of 'mixing' from several input pins thus presumably using only one interrupt
routine? What are the pros and cons of this technique?
2.
http://www.picaxeforum.co.uk/showthread.php?t=8268
which cites:
http://www.users.on.net/~alw1746/electronics/serin/SerialInterrupt.htm
a sample master/slave setup.
(*) - I'm thinking of having the out-of-ring Picaxe sitting waiting most of the
time on PS2-keyboard input and sending a data message to one of the in-ring
Pixaxes each time that data entry is made on the keyboard.
I have tried to focus on the specfic design query that I need help with rather
that general details about my project, but am happy to explain it further if
required.
Thanking you in anticipation.
Regards, Rodney
Please bear with me, this is my first posting here.
Also, I have not yet had any practical experience
with Picaxe, but am seriously interested in using
same in a project that I'm currently trying to work
up a design for.
I would like to ask about a particular issue in the
context of Interrupt-driven Serial Input.
I have in particular studied Hippy's website page:
http://www.hippy.freeserve.co.uk/picaxesi.htm
and also search the form for threads that reference
it and followed up other pointers in these.
I can see that it is feasible to have a 'ring' of Picaxes
each sending data to the next in the ring via a
uni-directional asynch serial connection between each
Picaxe and the immediate next Picaxe in the ring,
employing the Interrupt technique that Hippy describes.
Now for the question.
I would also like to have an additional Picaxe gathering
input data (*) that can communicate into one of the
Picaxes that are in the aforementioned ring.
This would seem to need the receiving Picaxe to be set
up with Interrupt handling for TWO different serial input
pins, one for input from the preceding Picaxe in the ring
plus one for input from the out-of-ring Picaxe.
Is this a workable construct?
I'm trying to think through what would happen if two
interrupts occur, one for each input pin, "at the same time"
or very close together in time.
The only postings that I can find that come near to touching
upon this matter are:
1.
http://www.picaxeforum.co.uk/showthread.php?t=10333
Diode Mixing circuit for multiple interrupts
This touches upon multiple inputs into one Picaxe but also speaks
of 'mixing' from several input pins thus presumably using only one interrupt
routine? What are the pros and cons of this technique?
2.
http://www.picaxeforum.co.uk/showthread.php?t=8268
which cites:
http://www.users.on.net/~alw1746/electronics/serin/SerialInterrupt.htm
a sample master/slave setup.
(*) - I'm thinking of having the out-of-ring Picaxe sitting waiting most of the
time on PS2-keyboard input and sending a data message to one of the in-ring
Pixaxes each time that data entry is made on the keyboard.
I have tried to focus on the specfic design query that I need help with rather
that general details about my project, but am happy to explain it further if
required.
Thanking you in anticipation.
Regards, Rodney