BCLR channel, buffertype
|channel||RS232 Channel (0 to 3)|
|buffertype||0=Receive, 1=Send, 2=Both|
Bclr clears the specified RS-232 channel’s input buffer, output buffer, or both buffers. Use this statement if your code is about to receive data and there may be unneeded data already in the buffer.
Bclr 1, 0 'Clear RS232 Channel 1's rx buffer Bclr 1, 1 'Clear RS232 Channel 1's tx buffer Bclr 1, 2 'Clear RS232 Channel 1's rx & tx buffers