PDA

View Full Version : Serial Comms Buffer?



koossa
- 1st December 2005, 09:56
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?

NavMicroSystems
- 1st December 2005, 11:04
koosa,

* what does your PIC code look like?
* what application are you using to capture the data on the PC?

koossa
- 1st December 2005, 12:10
Hi Ralph

Thank you for your reply.
I think the problem is at my PC Side.
When I use microcode studio's Serial Communicator it is working

Thx!

mister_e
- 1st December 2005, 13:41
I guess you also use the BOOTLOADER ? In this case, be sure that the DTR line is disable.

well i guess you already know that anyway ;)http://www.picbasic.co.uk/forum/showthread.php?t=2669&highlight=vb

EDIT: DOH! sorry... should read your post better... consider the Ralph's question


* what application are you using to capture the data on the PC?

J_Brittian
- 1st December 2005, 16:48
Hi Koosa,
Check the settings for something regarding an echo.

NavMicroSystems
- 2nd December 2005, 01:29
Hi Ralph

Thank you for your reply.
I think the problem is at my PC Side.
When I use microcode studio's Serial Communicator it is working

Thx!

That's why I asked the questions ;-)