I am having a problem with the serin command in the attached program, it seems to hang waiting for input.
The Picaxe is (should be) communicating with a PC application running an optical disk. If I comment out the serin lines the last bit of the program, with the remote input sending commands for stop and play, works fine. If I replace the Picaxe with a PC running Hyperterminal, whenever I type an "M" I get a response back with the mode i.e. play or stop.
I am using a MAX232 buffer connected as per the Picaxe interfacing guide page 43 except using pins 1&2 rather than 0&1. I have connected a scope and can see the serout signal going to the serial Rx port of the PC but can't see anything back on the Tx side.
I am wondering if this is a hardware issue (wrongly connected?), a timing or buffering issue or just bad programming.
Can anyone suggest how to go about sorting this out please?
The Picaxe is (should be) communicating with a PC application running an optical disk. If I comment out the serin lines the last bit of the program, with the remote input sending commands for stop and play, works fine. If I replace the Picaxe with a PC running Hyperterminal, whenever I type an "M" I get a response back with the mode i.e. play or stop.
I am using a MAX232 buffer connected as per the Picaxe interfacing guide page 43 except using pins 1&2 rather than 0&1. I have connected a scope and can see the serout signal going to the serial Rx port of the PC but can't see anything back on the Tx side.
I am wondering if this is a hardware issue (wrongly connected?), a timing or buffering issue or just bad programming.
Can anyone suggest how to go about sorting this out please?
Attachments
-
1.4 KB Views: 24