Another Serin/Serout Problem!


Results 1 to 8 of 8

Threaded View

  1. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I wonder, why don't you use the UART that the F688 has?

    Things are going to be much faster and reliable.

    Now for the crap characters that remain in the string when you end it with less characters than 16.

    An idea would be to have a FOR/NEXT loop and check where is the CR and fill the rest of the array with space character.

    Have not tested but will give you a start:

    for i=0 to 15
    if testSTR[i]=13 then exit_for
    next i

    goto rest of the program

    exit_for:
    for j=i to 15
    testSTR[i]=" "
    next j

    Ioannis
    Last edited by Ioannis; - 7th June 2007 at 07:13.

Similar Threads

  1. Strange problem with Serin/Serout on 16F628
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 22nd August 2008, 00:16
  2. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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