try serout...("UUUUU~~SYNCH",YourData)
SERIN ...(WAIT("SYNCH"),YourData)
don't forget Those UU are there only to balance the slicers, so not revealant to receive, ~~ here is just another character, You could still wait for only a part of SYNCH, let's say NCH.
9600 could be a bit fast for testing, try 4800 or even 2400. When something work, you may need to increase and use some character pacing.
For safety sake, on your transmitter, se the pin as output, clear it (=0) and add a few millisecond delay (~50) at the top of your code.
In conjunction of a pull-down resistor on your receiver side as well.
Last edited by mister_e; - 29th May 2007 at 15:22.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks