Good day
I'm using PIC16F877 @ 4MHz with a MAX232 for serial comms.
If I send the following data from my pic to PC every character with a CR + LF, I receive it at the PC side:
"*=123:010173D83398;:|,E"
But if I do it again it looks like the existing data in the buffer does not clear and I receive the following:
"*=123:010173D83398;:|,E*=123:010173D83398;: |,E"
Is there a way that I can clear the buffer everytime after receiving the data?
Bookmarks