View previous topic :: View next topic |
Author |
Message |
Guest
|
One wire RS232 |
Posted: Sun Aug 13, 2006 7:02 am |
|
|
Hi,
Is it possible to use 1 pin for rx & tx? If so, what's the way to do it?
I tried this, but it doesn't work:
#use rs232(baud=9600, parity=N, bits=8, rcv=pin_b5, xmit=pin_b5) |
|
|
Guest
|
|
Posted: Sun Aug 13, 2006 7:03 am |
|
|
Oh and it will be half-duplex communication ofcourse.. don't worry about timing, cause I just want one side to respond to a byte sent on the other side.. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Mon Aug 14, 2006 12:08 pm |
|
|
I do that all the time. Here is my usual RS232 setup line:
Code: | #define TXRser PIN_B0 /* Serial connection to Smart TXR */
#use rs232(baud=1200, xmit=TXRser, rcv=TXRser, invert)
|
_________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
|