• AVR Freaks

128x64 LCD Interfacing

Page: 12 > Showing page 1 of 2
Author
amjad2000in
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2009/01/17 22:21:35
  • Location: 0
  • Status: offline
2009/04/05 02:39:48 (permalink)
0

128x64 LCD Interfacing

Hi,

I will be really thankfull if any one could help me by giving steps and sample code for interfacing a 128x64 Graphic LCD with the PIC16F877A Microcontroller. I am using PIC Assembly language. I tried sevaral methods for interfacing it like the Normal Character LCD's. But this graphic LCD is not working. Please help me.


Regards,

Amjad A.R.
#1

20 Replies Related Threads

    isa.guru
    Super Member
    • Total Posts : 1703
    • Reward points : 0
    • Joined: 2003/12/19 13:15:38
    • Location: America's finest city
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/05 07:28:28 (permalink)
    0
    OK, and what is the part number of the LCD? We can not guess without knowing it.

    7th dan instrumentation and controls
    #2
    amjad2000in
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2009/01/17 22:21:35
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/06 02:33:27 (permalink)
    0
    The part number which can be read from the LCD Module is :
     
    GDM12864H
     
    Company name written is : XIAMEN OCULAR
     
    Please help.
    #3
    yntan
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2009/04/23 04:20:15
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/23 04:30:56 (permalink)
    0
    Hi,
     
    Currently I also working on a project that need to interface 128x64 Graphic LCD to the PIC18F87J10, and I'm using MPLAB C18 compiler. Is there any sample code available for my reference? The LCD details are as below;
     
    Model: GS-GG1286456FFWJ-A/R
    Manufacturer: Multi-innoTechnology
     
    Your help are highly appreciated! Thanks!
    #4
    bosco
    Super Member
    • Total Posts : 2119
    • Reward points : 0
    • Joined: 2004/07/24 10:17:53
    • Location: Idaho
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/23 07:29:05 (permalink)
    0
    ORIGINAL: amjad2000in

    The part number which can be read from the LCD Module is :

    GDM12864H

    Company name written is : XIAMEN OCULAR

    Please help.

     
    standard ks0108.  search the forum.  There are many examples
     
    #5
    bosco
    Super Member
    • Total Posts : 2119
    • Reward points : 0
    • Joined: 2004/07/24 10:17:53
    • Location: Idaho
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/23 07:32:28 (permalink)
    0 (2)
    ORIGINAL: yntan

    Hi,

    Currently I also working on a project that need to interface 128x64 Graphic LCD to the PIC18F87J10, and I'm using MPLAB C18 compiler. Is there any sample code available for my reference? The LCD details are as below;

    Model: GS-GG1286456FFWJ-A/R
    Manufacturer: Multi-innoTechnology

    Your help are highly appreciated! Thanks!

     
    The controller is a ST7565R.  google that.
     
     
    #6
    android
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2009/03/23 00:31:24
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 05:03:45 (permalink)
    0
    Hi all,
     
    I too require an interfacing with 128x64 Graphics LCD.
     
    Model : ABG128064H
    http://www.av-display.com.cn/en/Products_show.aspx?NOID=1040
     
    I have done the same with 8051 in assembly but I am not sure how to do the same by using READYMADE driver codes using dsPIC30F using C Language. I am not sure whether Microchip provides any direct interfacing codes for 128x64 Graphics module.
     
    I have searched the entire MCP website with no results.
     
    I am particularly looking for a code containing MENU program.
     
    Thanks for any suggestion.
     
    Regards.
    #7
    Neiwiertz
    Super Member
    • Total Posts : 2094
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 07:52:42 (permalink)
    0
    What is the type of display controller?

    Get this usb graphics stacks install it and afterwards have a look at Graphics display controllers folder for examples.

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #8
    Neiwiertz
    Super Member
    • Total Posts : 2094
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 07:58:41 (permalink)
    0
    Menu example check microchip graphics stack aswell for a pointer, additional this one is a nice explained example A Graphical User Interface for the PIC18F from http://www.reifel.org/PICUserInterface/

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #9
    android
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2009/03/23 00:31:24
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 08:45:50 (permalink)
    0
    Hi,
     
    Thanks for replying.
     
    As per the datasheet, the display controller is : ST7066U
     
    Can I use the code libraries for direct interfacing with a dsPIC30F uC?
     
    Also I have downloaded the stacks that you have mentioned. After installing I have the following directories at C:\Microchip Solutions\
     
    [Graphics AN1136]
    [Graphics AN1182]
    [Graphics AN1227]
    [Graphics AN1246]
    [Graphics External Memory Demo]
    [Graphics MultiApp Demo]
    [Graphics Object Layer Demo]
    [Graphics Object Layer Demo Chinese]
    [Graphics PICtail Board Memory Programmer]
    [Graphics Primitive Layer Demo]
    [Image Decoders Demo]
    [MDD File System-SD Card]
    [MDD File System-SD Data Logger]
    [Microchip]
    [USB Device - Bootloaders]
    [USB Device - CDC - Basic Demo]
    [USB Device - CDC - Serial Emulator]
    [USB Device - Composite - HID + MSD]
    [USB Device - HID - Custom Demos]
    [USB Device - HID - Keyboard]
    [USB Device - HID - Mouse]
    [USB Device - LibUSB - Generic Driver Demo]
    [USB Device - Mass Storage - Internal Flash]
    [USB Device - Mass Storage - SD Card data logger]
    [USB Device - Mass Storage - SD Card reader]
    [USB Device - MCHPUSB - Generic Driver Demo]
    [USB Device - WinUSB - Generic Driver Demo]
    [USB Host - Bootloaders]
    [USB Host - CDC - Serial Demo]
    [USB Host - Charger - Simple Charger]
    [USB Host - HID - Keyboard]
    [USB Host - HID - Mouse]
    [USB Host - Mass Storage - Simple Demo]
    [USB Host - Mass Storage - Thumb Drive Data Logger]
    [USB Host - MCHPUSB - Generic Driver Demo]
    [USB Host - Printer - MASTERs 2008 Demo]
    [USB Host - Printer - Print Screen Demo]
    [USB Host - Printer - Simple Full Sheet Demo]
    [USB Host - Printer - Simple POS Demo]
    [USB OTG - MCHPUSB - Generic Driver Demo]
    [USB PC - WM_DEVICECHANGE Demo]
    [USB Precompiled Demos]
    [USB Precompiled Library Projects]
    [USB Tools]
     
    Which one will be the best for my application i.e., to interface dsPIC30F series with 128x64 Graphics LCD?
     
    Regards.
    #10
    Neiwiertz
    Super Member
    • Total Posts : 2094
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 09:18:48 (permalink)
    0
    Don't know if you could use directly but it's a good start how things are done
    look at C:\Microchip Solutions\Microchip\Graphics\Drivers

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #11
    android
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2009/03/23 00:31:24
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/25 09:43:14 (permalink)
    0
    Hi Neiwiertz,
     
    I have gone through the location "C:\Microchip Solutions\Microchip\Graphics\Drivers" but almost all of it start with COLOR and if I am not wrong meant specifically for PIC32.
     
    After searching through the forum I have got a hint. I would try the following file:
    "C:\Program Files\Microchip\MPLAB C30\src\peripheral_30F_24H_33F\include\xlcd.h"
     
    Sorry, since I am new to MCP Technology and most of my projects were on 8051 Architecture. So I am bit refraining from learning the Assembly for MCP Microcontrollers. And hence would like my work to be in C.
     
    Any other suggestions for the same are always welcome.
     
    Thanks for your comment.
     
    Regards...... android.
    #12
    android
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2009/03/23 00:31:24
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/27 01:22:19 (permalink)
    0
    Hi everybody,
     
    I have got some nice links for the code as well as hardware interfacing for 128x64 LCD with 89S52 which I think can be modified to work with any 8-bit controller including microchip since the code is in C-Language.
     
    http://www.av-display.com.cn/en/Application_Support.aspx
     
    Hope this helps.
     
    Regards.
    #13
    isa.guru
    Super Member
    • Total Posts : 1703
    • Reward points : 0
    • Joined: 2003/12/19 13:15:38
    • Location: America's finest city
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/27 07:32:45 (permalink)
    0
    You can do it in many ways and it strongly depends on the particular LCD you are using but just keep in mind:
    =calculate the time you need to update the LCD. If the LCD is serial it will take more time. For an instance if you send 1 byte per pixel over SPI to update the whole LCD (128x64) this would be close to 66 000 clocks. But behind each byte stay a few (can be up to tens of them) instructions to read that byte from the flash or RAM and load it into the SPI buffer. So this can be in the range of 80 000 cycles or more.
    =so loading and regularly updating the LCD can be the bottleneck in most of the cases
    =Check and decide how frequently you want to update the LCD and how big part of it.
    =then check if you main software can afford this time.
    =if not, go for a parallel LCD or think how to integrate this time consuming thing into your main algorithms
    =check what is the temperature range of the LCD and compare to the range of your equipment :)
    =In most of the cases you want a backlight. Check if the LCD has it and how much it consumes, sometimes it can be huge :) or require fancy controllers for high voltage :)
    =choose a LCD with higher contrast ratio, lower current for the back light and faster update time
    =with such a LCD you typically can not do your device battery powered, keep it in mind

    There are many more things to consider, just pointed to some of them :)

    7th dan instrumentation and controls
    #14
    android
    Senior Member
    • Total Posts : 144
    • Reward points : 0
    • Joined: 2009/03/23 00:31:24
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/04/27 22:08:44 (permalink)
    0
    Hi Guru,

    Thanks for your advice. I will surely keep this is mind.

    Thanks again for your response from a drop of your profound knowledge.

    Best regards.
    #15
    ferdi78
    Super Member
    • Total Posts : 198
    • Reward points : 0
    • Joined: 2005/08/23 12:32:47
    • Location: Brasil
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/05/06 10:24:59 (permalink)
    0

    Hi all,

      How can I discovery wich controller my 128x64 Graphic LCD uses?

    Model: AGM12864A
    Manufacturer: AGTechnologies

      Thanks,

      Ferdi.
    #16
    ferdi78
    Super Member
    • Total Posts : 198
    • Reward points : 0
    • Joined: 2005/08/23 12:32:47
    • Location: Brasil
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/05/07 06:56:26 (permalink)
    0
    Hi all,

      I've already discovered, the controller for AGM12864A is the ks0108.

      The program is runnig ok ok PIC18F258. The main problem was the contrast. Depending on the potenciometer value I can't see the display. It worked only when I connect the pot. between VDD and VEE instead of VDD and VSS.

      Hope it can help anyone.

      Ferdi.
    #17
    isa.guru
    Super Member
    • Total Posts : 1703
    • Reward points : 0
    • Joined: 2003/12/19 13:15:38
    • Location: America's finest city
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/05/07 07:03:22 (permalink)
    0
    Typically the trimmer is about 10k between +5V and common. But always check in the datasheet. There are other LCDs that require a negative voltage (higher Vdd-Vee) and different resistance of the trimmer. If you want to do control the contrast using the PWM of the uC, bread board it first to check how you need to do the LPF on the PWM :).

    7th dan instrumentation and controls
    #18
    sarannan
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2009/06/01 00:28:09
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/06/01 00:29:51 (permalink)
    0
    This unit is a very clear STN type LCD with a simple command interface. ... has a unique feature that I have not seen in any other 128x64 graphic LCD. ...

    Mortgage Payment Protection Insurance
    construction invoice factoring

    #19
    donniedj
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2007/11/06 21:56:25
    • Location: 0
    • Status: offline
    RE: 128x64 LCD Interfacing 2009/07/25 23:15:02 (permalink)
    0
    ORIGINAL: bosco

    ORIGINAL: yntan

    Hi,

    Currently I also working on a project that need to interface 128x64 Graphic LCD to the PIC18F87J10, and I'm using MPLAB C18 compiler. Is there any sample code available for my reference? The LCD details are as below;

    Model: GS-GG1286456FFWJ-A/R
    Manufacturer: Multi-innoTechnology

    Your help are highly appreciated! Thanks!


    The controller is a ST7565R.  google that.





    Usless.
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5