Receive serial data


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default logging

    sorry, didn't read last post
    Last edited by amgen; - 1st August 2008 at 23:00.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Any idea how to collect the data ? anyone ?

    .

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


    Did you find this post helpful? Yes | No

    Default

    I have not tried it, but could you use 10 or 13 for the wait character and then store the data.
    Dave
    Always wear safety glasses while programming.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Greetings mackrackit,

    The 13,10 it's just for carriage return like so:

    Code:
    DEBUG DEC VALUE,13,10
    How can i detect it ?

    .

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    Greetings mackrackit,
    The 13,10 it's just for carriage return like so:
    Code:
    DEBUG DEC VALUE,13,10
    How can i detect it ?
    .
    Look in your manual under DETECTing...
    Seriously, the answer was in mackrackit's last post...something about WAITing for something...

  6. #6


    Did you find this post helpful? Yes | No

    Default

    The only thing i could find in the manual was the Serin and Serin2 commands.

    The manual says that:
    SERIN2 DataPin {\FlowPin}, Mode, {ParityLabel,}, {Timeout,Label,} [Item...]

    with the example:
    Code:
    SERIN2 1,16780,[wait (“A”),B0]
    ( where A is the caracter to wait for. )

    and
    [code]SERIN2 PORTA.1,84,[skip 2,dec4 B0][code]
    ( where it will skip the first 2 digits and grab the next 4 digits)

    I didnt test it yet, but can i use something like this?
    Code:
    SERIN2 PORTA.1,84,[wait (13,10),dec3 B0]
    Its not making sense to me because i have values with one, two or three digits ( temps from 0 to 160). The idea is to grab each value - and this line knows when to start for the first value but doesnt know when to finish before grabbing a new one.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    The only thing i could find in the manual was the Serin and Serin2 commands.
    And you'll see the same 'type' of thing for HSERIN and DEBUGIN

    I didnt test it yet, but can i use something like this?
    Code:
    SERIN2 PORTA.1,84,[wait (13,10),dec3 B0]
    Its not making sense to me because i have values with one, two or three digits ( temps from 0 to 160). The idea is to grab each value - and this line knows when to start for the first value but doesnt know when to finish before grabbing a new one.
    Now you're thinkin'! Except that it does know when to finish, because you specified when to finish in that line of code above with dec3 B0. As soon as it grabs a 3 digit decimal, the statement is done...
    So in your case, you don't wait for a 13,10 then grab a decimal, flip it around.
    Grab a decimal, then wait for the 13,10.
    Code:
    SERIN2 PORTA.1,84,[dec B0, wait (13,10)]

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