Serial Data format


Closed Thread
Results 1 to 2 of 2
  1. #1
    barkerben's Avatar
    barkerben Guest

    Default Serial Data format

    Me again...

    I've been looking at the PicBasic pro manual concerning serial transmission, and it is slightly confusing. For instance, it mentions many types of modifier for received and transmitted values.

    I had assumed that if I wanted to send the numerical value 123 along a serial line, I would send the binary byte:

    01111011


    Since all I need to do is send signals from the PC to the PIC and back again, with different numbers having different meanings, this seemed perfect. The manual seems to suggest that to send the numeric value 123, in fact we have
    to send 3 bytes for the ASCII representation of the characters 1, 2, and 3 respectively. Surely this can't be correct...?


    Cheers,


    Ben

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


    Did you find this post helpful? Yes | No

    Default

    you can send numeric value, preceding variable with # for serout or DEC for SERIN.

    regards
    Steve

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

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