I have a PICAXE 28X1 connected to a TI graphical calculator (via portC).
The calculator's link protocol uses two data lines that normally float high, and either device can pull the line low to start a bit transfer. Which bit is transmitted depends on which line is pulled low: the sender pulls one line low, waits for the receiver to pull the other low, releases the original line then waits for the receiver to release theirs; repeat eight times per byte. By using portC I can directly connect the calculator to the PICAXE without any additional circuitry (switching pins between inputs and ouptuts). Both data lines are pulled high with 47K resistors.
When I use SERTXD, though, the calculator sees both data lines toggling high and low very quickly. I assume this is due to electrical noise, as if I unplug the serial cable from my PC the calculator sees both lines remaining at a steady high level (as they should).
Any serial communications back to the PC cause this behaviour (such as the DEBUG command); the calculator sees spurious data being sent. Again, unplugging the serial cable resolves these problems.
I'm using the standard two-resistor circuit for connecting the PICAXE to the PC's serial port. Power comes from either a cheap 9V PSU or PP3 (via a 1A 5V regulator); the effects are the same on batteries or from the PSU.
Can anyone suggest any measures I could possibly take?
The calculator's link protocol uses two data lines that normally float high, and either device can pull the line low to start a bit transfer. Which bit is transmitted depends on which line is pulled low: the sender pulls one line low, waits for the receiver to pull the other low, releases the original line then waits for the receiver to release theirs; repeat eight times per byte. By using portC I can directly connect the calculator to the PICAXE without any additional circuitry (switching pins between inputs and ouptuts). Both data lines are pulled high with 47K resistors.
When I use SERTXD, though, the calculator sees both data lines toggling high and low very quickly. I assume this is due to electrical noise, as if I unplug the serial cable from my PC the calculator sees both lines remaining at a steady high level (as they should).
Any serial communications back to the PC cause this behaviour (such as the DEBUG command); the calculator sees spurious data being sent. Again, unplugging the serial cable resolves these problems.
I'm using the standard two-resistor circuit for connecting the PICAXE to the PC's serial port. Power comes from either a cheap 9V PSU or PP3 (via a 1A 5V regulator); the effects are the same on batteries or from the PSU.
Can anyone suggest any measures I could possibly take?