Changing from alphanumeric LCD to graphic lcd

Discussion in 'Embedded Systems and Microcontrollers' started by RG23, Aug 31, 2011.

  1. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    I have written a code using PIC 16f887 that works completely fine with 16x2 character LCD

    But now I need to add some features that could be done only on graphic LCD

    I am using AGM1232G graphic display(manufacturer: AZ display).

    I first need to make my previous code work in the same way as before even with graphic lcd

    I could not figure out the same

    Do I need to modify the code completely or is there any better solution?

    This is my first time working with graphic lcds

    If anyone has an idea please let me know

    Thanks
     
    Last edited: Aug 31, 2011
  2. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Modify the code completely as they works in a different way.
    If you don't know how they work,google for GLCD turorials their are a lots of them...
    Good luck
     
  3. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    Teh first lcd is character mapped i.e. one byte representing a character.

    The graphics display is bit mapped i.e. 1 bit for each dot of the character.
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
    This is a truly graphic LCD display. When you write an 8 bit word to it you change 8 pixels on the screen. The good news there is you only have to write it once, then the display remembers and refreshes itself.

    I've used similar displays before, spending a large amount of time to get them to work, as they have no features besides showing pixel data. So to show letters and numbers you have to decode the ASCII character into some sort of bitmap pattern, figure out where that pattern goes, and send it out byte by byte if you are lucky; nothing says the characters have to match pixel byte boundaries so you may be shifting and masking a few bits here and there to latch a character in.

    I used a PIC18F4550 (32K instructions) which was OK for my uses, had two fonts, large numerals, and a few direct bitmaps all in a touch screen environment.

    I'd made damn sure you can't use the RAM characters of a alphanumeric display before going to this one.
     
  5. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    What is the initialisation subroutine for AGM 1232 graphic lcd?
     
  6. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
Loading...