>Unfortunately, under Windows there is no way to know if all the bytes you >have written have been sent out the serial port. The bytes could be laying You could tie the output of the serial port back in to a second serial port, and wait for the last transmitted character to be received by the second port. Ugly and wasteful, I know. >The best you can do, IMO, is to set up (timer component) delays based on the >length of the message. You basically 'hope' that Windows will blast the I generally use Async Pro and watch the OutBuffUsed variable. When it goes to zero, all the chars are out of the Windows buffer. You've still got to wait for the UART buffer to empty. newell -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body