How to get ASCII data in array.


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Quote Originally Posted by Ioannis View Post
    My concern is that, data can be any number including the $23 which is '#' character.

    So this might lead the routine to hang if data are out of sync sometime.
    Why not use a TimeOut? Or can you not afford to miss any data?
    Dave
    Always wear safety glasses while programming.

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

    Default

    Please see the previous than yours post, that shows the timeout is there. But Darrel has explained very well why this might hang here:

    http://www.pbpgroup.com/modules/newb..._id=28&forum=8

    Ioannis

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Quote Originally Posted by Ioannis View Post
    Please see the previous than yours post, that shows the timeout is there.
    OOPPS, I was sleepy?

    But Darrel has explained very well why this might hang here:

    http://www.pbpgroup.com/modules/newb..._id=28&forum=8

    Ioannis
    That was interesting, I now have it bookmarked.
    Just curios, is that the same project?
    Dave
    Always wear safety glasses while programming.

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

    Default

    No. That was an easy (now, for me...) project. It just transmitted the number in 3 bytes form. E.g. if number was 128 then the port would transmit ASCII '1', ASCII'2' and ASCII '3' or 49, 50 and 56 as decimal values.

    Ioannis

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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