Serial Comms Buffer?


Closed Thread
Results 1 to 6 of 6
  1. #1

    Default Serial Comms Buffer?

    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?

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    koosa,

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

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3


    Did you find this post helpful? Yes | No

    Default

    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!

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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/show...9&highlight=vb

    EDIT: DOH! sorry... should read your post better... consider the Ralph's question
    Quote Originally Posted by Ralp
    * what application are you using to capture the data on the PC?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    J_Brittian's Avatar
    J_Brittian Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Koosa,
    Check the settings for something regarding an echo.

  6. #6
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by koossa
    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 ;-)
    Last edited by NavMicroSystems; - 2nd December 2005 at 01:39.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. Serial Comms through TX/RX pair jumbled
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th July 2009, 21:04
  2. Replies: 2
    Last Post: - 23rd July 2006, 08:16
  3. Student Project
    By aggie in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 8th July 2006, 08:56
  4. Serial input buffer size?
    By Chris DeHut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th January 2006, 22:23
  5. serial input buffer
    By vsingh in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th June 2004, 05:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts