lcdout versus serout2


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Glad to hear the display works... just need to fix the content now

    All numbers are stored internally as HEX. Try using DEC instead.

    BIN, DEC and HEX modifiers are used to output an ASCII representation of the number.

    eg, myVar = 65

    LCDout myVar displays "A"

    LCDout DEC myVar displays "65"

    LCDout HEX myVar displays "41"

    LCDout BIN myVar displays "1000001" (leading zeros not displayed unless you specify how many bits to show)
    Keith

    www.diyha.co.uk
    www.kat5.tv

  2. #2
    Join Date
    Mar 2006
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Clarification

    I apologize for the ambiguity of my last message. What I intended was that all of my problems, jumbles on the display and also incorrect counting were all rectified. This appears to be a good example of needing to pull back from a project sometimes to get a fresh start. Indeed, I don't think I would have seen the problem with the display not displaying correct. It never occured to me that I had selected the wrong logic levels on the display. I was thoroughly convinced that the command using the 84 instead of 16468 was correct. But as for it counting wrong I overlooked that the numbers were in BCD. The initial problem had me so consumed I overlooked that one little fact. Thank you for taking your time to answer what to many is such a simple problem it's not worth their time. It was extremely frustrating.
    Again thanks.

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 08:56
  2. Gps/glcd
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st April 2008, 17:18
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 03:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 16:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 13:22

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