Hi John, generally I use carriage return as end of sending. Also, if you have room it is a good idea to put all incoming characters into a buffer and then have another routine to monitor the buffer looking for the CR character then acting on it. means that all other tasks can be running and you are not locked in one routine.. which can be a problem if you type as badly as me and send wrong characters ! Hope that helps, can give c code examples if you wish. Cheers Peter Mcalpine > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of John Pearson > Sent: Thursday, 15 May 2003 10:23 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Serial comm. protocalls > > > I have realized that my current project is not fast enough to > snatch bytes off the serial bus without some kind of protocall. > > I want to use just Rx and Tx lines w/no handshaking. So I want to > recieve a string. > > What I would like to do is to have a character at the end of the > string to signal end of transmission. That, way, my serial > recieve can just loop until done, and hopefully catch everything. > > I want to be able to send with a terminal emulator, so the > end-of-transmission character needs to be something I can type on > the keyboard, one key (no key combinations). > > I was thinking about using the esc char. Would there be a better > choice? What is a "break" signal? > > Thanks > > John > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.