LCD output and data types


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    13

    Default LCD output and data types

    Hi again,
    Now that i've solved my communications issues, its time for me to move on. This is probably a VERY basic question, but i'm VERY new to this. i am basicalyl sending a Byte to one computer nad getting a byte back to my PIC. i have teh PIC hooked up and working with a t6963c 240x64 lcd. i need to basically take these bytes (0-255) do some math calculation on them, and spit them out to the LCD. i can display strings on the LCD no problem, but so far i have found virtualyl no documentation concerning converting say the hex representation of a byte to a string. is this possible? right now i jsut want (for debugging purposes) to read in a byte and print it to the LCD. any ideas? thanks

    Jordan

  2. #2
    Join Date
    Jul 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Lightbulb This will do it

    To display a variable in binary format use the BIN modifier
    To display a variable in hexadecimal format use the HEX modifier

    ex :

    cnt VAR byte

    cnt = %01010011
    LCDOut BIN cnt

    This will display: 01010011


    Read the SEROUT2 command for more details, starting at page 140 of the manual. This also apply to the LCDOUT command.

    J-P
    Last edited by GrandPa; - 2nd August 2007 at 06:03.

Similar Threads

  1. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  2. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  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