I'm a bit stuck on this one and would appreciate any help the forum can give me please:
I have two Picaxes communicating via SEROUT and SERIN commands, hardwired together.
The SEROUT on chip A is prompted by an interrupt (a 'GO' switch) and this works just fine.
What I'm struggling with is making chip B react to the SEROUT on chip A (and execute a SERIN) via an interrupt on the same (SERIN) pin.
I want chip B to be doing other stuff whilst waiting for 'GO' from chip A so that it can then jump to a subroutine dependent on what is sent in the serial data.
I HAVE NO SPARE PINS TO USE ON EITHER CHIP.
I've tried the following but the result is intermittent:
Chip A
on interrupt execute a high on the SEROUT pin, then execute the SEROUT command
Chip B
interrupt when the SERIN pin goes high, then execute a SERIN command
I'm using N2400 as the baud rate if that helps.
I have two Picaxes communicating via SEROUT and SERIN commands, hardwired together.
The SEROUT on chip A is prompted by an interrupt (a 'GO' switch) and this works just fine.
What I'm struggling with is making chip B react to the SEROUT on chip A (and execute a SERIN) via an interrupt on the same (SERIN) pin.
I want chip B to be doing other stuff whilst waiting for 'GO' from chip A so that it can then jump to a subroutine dependent on what is sent in the serial data.
I HAVE NO SPARE PINS TO USE ON EITHER CHIP.
I've tried the following but the result is intermittent:
Chip A
on interrupt execute a high on the SEROUT pin, then execute the SEROUT command
Chip B
interrupt when the SERIN pin goes high, then execute a SERIN command
I'm using N2400 as the baud rate if that helps.