> > slippyr4 wrote 2011-10-17 13:48: > >> Now, the problem: when i connect my circuit to a (generic, chinese > >> made,prolific chipset) USB->Serial converter, after a couple of minute= s > >> of > >> successful data streaming, the data seem to become corrupt. As in, the > >> actual data received on the port is garbage. How long before this happ= ens > >> is > >> variable. >=20 > Are you sending absolutely continously at 57600? IE: With one character > immediately after the other for many, many characters? >=20 > If you are, then differences in baud clocks on your board and the adapter > (the adapter is likely to be further out than your clock) may be causing > 'slippage' resulting in a misalignment between the two devices idea of wh= ere > a character begins. This is only possible if the adapter is looking for a > full length stop bit, which *would* be a stupid design on their part. >=20 > As a test, you could modify your code to send two stop bits (but leave th= e > windows side programmed for one stop bit) and see if the problem goes awa= y. That was my first thought too, although the other thought I have had is tha= t he is running with BRGH =3D 1, which on a number of PICs causes problems.= I don't know if this particular PIC is one that has problems with BRGH =3D= 1, or if it is chip revision dependant. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .