> I suspect you will need to be a bit more proactive about how you detect the > first character. For example take the character 'A', that is binary > 01000001, and consider how this will be received at the wrong baud rate. > > case 1 - character seen in your test is 10011111 or 00001111 then baud rate > at the receiving end is probably half the transmitted baud rate. Ok, I got this one, but why are the rest 1 and not 0? > > case 2 - character seen at receiving end is 00011000 then baud rate at > receiving end is probably twice the transmitter. (stop and think about why > there is an extra 0 at the left hand end). I can't find a good answer... > > case 3 - character seen at receiving end is 00000001 then baud rate at > receiving end is probably 4 times the transmitted baud rate. (again think > about what happens with the start bit). If there is one extra 0 in the beginning like in case 2, why isn't it 00000111? > I tried to compare with those but the only one working was the baud rate I started with. I think the program didn't get out of the loop that receives the first byte. > If you can arrange to measure the bit widths on the pin then you will > probably arrive at the required baud rate a lot quicker. Exactly what do you mean? -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body