Of course Jan, but i meant for transferring binary data, sometimes you just cant leave any char as invalid, because the invality check would be worst that just adding the bytes to be sent :) Jan-Erik Soderholm wrote: >Mauricio Giovagnini wrote : > > > >>You must use a "bytes_to_be_sent" byte that will tell your >>app how many bytes he has to wait until receiving the carriage return. >>This is because if your code sends a data IDENTICAL to the carriage >>return, your frame will be cutted. >> >> > >No, the "CR" could (and I read Roberts post as it was) be defined >as an invalid data character. It's only used as the end-of-string >indicator. Should be no problem. > >I think the real problem is burried in the structure of the code as such. >How the interrupt is handled and so on. > >Jan-Erik. >_______________________________________________ >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist > > > _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist