Writing custom characters to LCD display


Closed Thread
Results 1 to 40 of 60

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    These answers are so easy.

    Why do they always turn into personal attacks.

    If they don't get it. Explain it again.
    Maybe your version will make more sense.
    <br>
    No personal attack intended. I thought post #32 explained it...

    There are 8 memory locations on most LCDs, starting at $40 and ending at $78. Each custom character will be at one of these locations.
    character 0 = $40
    character 1= $48
    character 2 = $50
    character 3= $58
    character 4 = $60
    character 5= $68
    character 6 = $70
    character 7= $78

    In your code
    Code:
    lcdout $fe,$40,$08,$04,$02,$01,$01,$02,$04,$08
    writes your character to "0" position. or character 0

    To display that character on the first line, first space
    Code:
    LCDOUT $FE,1,0
    second space
    Code:
    LCDOUT $FE,$81,0
    If you have a character in the second memory location
    lcdout $fe,$48,$08,$04,$02,$01,$01,$02,$04,$08


    To display that character on the first line, first space
    Code:
    LCDOUT $FE,1,1
    second space
    Code:
    LCDOUT $FE,$81,1
    Last edited by mackrackit; - 5th October 2008 at 13:00.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sorry Dave, wasn't refering to you.

    But your new explanation might help someone.
    <br>
    DT

  3. #3
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    thanks for your help,i wrote my character on LCD but what should i do if i want to write all 16 character on LCD in both line 1 and 2? we just have 8 location for RAM.should i overwrite on location 0 to 7 again? is my character in first 8 space deleted or it continue writing automatically on next 8 space?

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


    Did you find this post helpful? Yes | No

    Default

    Not sure I understand.

    The LCD can store 8 custom characters. You can display any of them as many times as you want. You can use one and fill all of the display places on the LCD.

    Back up on post #32 shows how.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    i want to write a sentence with 32 character in another language (not English) on LCD.(so i have to make new fonts) how can i show these 32 character on a 2*16 LCD?

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,134


    Did you find this post helpful? Yes | No

    Default

    The custom character is just stored at the custom character location. On screen appears a 'copy' of that, not the character itself, if you understand what I mean.

    So, you can creat up to 8 characters, store them at their place, and then display that character to the location you want, as many times you want. The LCD just copies the custom character to the location on-screen you specify. Isn't this the same when you display e.g. "AAAAA"?

    But remember, when you power off, all are gone. You have to reload the characters on power up.

    Ioannis

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,134


    Did you find this post helpful? Yes | No

    Default

    It seems that you posted the same time as I did!

    Now I understand what you want. No, you cannot do that the simple way of "blah blah blah".

    You have to fetch each character on its own. Unless, the magician Darrel has another macro available to do the job!

    Ioannis

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    You have to fetch each character on its own. Unless, the magician Darrel has another macro available to do the job!
    I don't think even Darrel has the magical mystical powers to pull this one off...at least not with a standard parallel LCD.

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  2. assembly in Pic
    By lerameur in forum Off Topic
    Replies: 11
    Last Post: - 1st May 2008, 20:06
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 15:04
  5. LCD Display not working - PIC heating...
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 24th September 2006, 07:35

Members who have read this thread : 1

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