Clearing Out RS232 registers
Is there a neat/short way of clearing out the registers associated with using RS232 (Serout, Serout2, HSEROUT) so that no 'junk' appears at the other end?
So far, Ive tried CRs, LFs and so on but still get a messy first line or so
Regards Bill Legge
Use the serin qualifier ir WAIT commands
I get over this problem by always starting with some preamble characters and either the WAIT (n) or QUALIFIER "A" characters. SERIN, SERIN2, HSERIN and DEBUGIN all have the ability to look for a defined character (or a string in the WAIT case) and toss out all the crud before that character or string.
HTH
BrianT