+ Post New Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 36
  1. #1
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Help With My First LM13232AFW GLCD Project

    i just got new Glcd lm13232afw and 16f877a

    i dont know what pins of the lcd i have to wire with the pic to make aa code and its now on proteusi made a new one with all if its pin shoud make them all passve or it will make no deffrent

    the pins i see on the lcd datasheet are

    VSS VDD NC A0 NC E D1 D2 D3 D4 D5 D6 D7 BLA /CS1 P/S RES

    WHAT of those pins i wire with portb and sould i make like

    sbit LCD_EN at RB1_bit; or sbit GLCD_EN at RB1_bit;

    LM13232AFW.rar
    i attachments the lcd data sheet

  2. #2
    Junior Member level 1
    Points: 300, Level: 3

    Join Date
    Aug 2012
    Posts
    17
    Helped
    2 / 2
    Points
    300
    Level
    3

    Re: i have a lot of Qs plz help me with my lcd

    you can comunicate with this LCD Serial or Parall as flow:
    Click image for larger version. 

Name:	sch.JPG 
Views:	29 
Size:	100.6 KB 
ID:	79573



  3. #3
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: i have a lot of Qs plz help me with my lcd

    Quote Originally Posted by eng1981AD View Post
    you can comunicate with this LCD Serial or Parall as flow:
    Click image for larger version. 

Name:	sch.JPG 
Views:	29 
Size:	100.6 KB 
ID:	79573
    ty but can you till me what pins with the lcd i connet with the 16f877a portb



  4. #4
    Junior Member level 1
    Points: 300, Level: 3

    Join Date
    Aug 2012
    Posts
    17
    Helped
    2 / 2
    Points
    300
    Level
    3

    Re: [Moved] i have a lot of Qs plz help me with my lcd

    Click image for larger version. 

Name:	sch1.JPG 
Views:	15 
Size:	71.8 KB 
ID:	79646
    but you must current source cabaplity of pin that will drive the Backlight


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  5. #5
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: [Moved] i have a lot of Qs plz help me with my lcd

    can you till me how is the code going to be like



  6. #6
    Full Member level 5
    Points: 2,342, Level: 11
    Jigar 4 Electronics's Avatar
    Join Date
    Apr 2011
    Location
    Hamilton, ON, Canada
    Posts
    313
    Helped
    40 / 40
    Points
    2,342
    Level
    11
    Blog Entries
    2

    Re: [Moved] i have a lot of Qs plz help me with my lcd

    For code you need to make a choice whether you are comfortable with assembly or C language ?
    for the connections, See the circuit below: (just a reference; not exactly matched with yours)
    Never Leave it until you did it.
    Every time you fails go for one more time :)



  7. #7
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: [Moved] i have a lot of Qs plz help me with my lcd

    Quote Originally Posted by Jigar 4 Electronics View Post
    For code you need to make a choice whether you are comfortable with assembly or C language ?
    for the connections, See the circuit below: (just a reference; not exactly matched with yours)
    hello thank you for the replay

    i make the code in C language if i can but as you see in the replay abuve you that my lcd pins dont have most commen pins so it hard to regster the glcd so i have to ues it in seril mode but dont know how to regstr that

    i dont know what is assembly

    the data sheet is attaced
    thank you



  8. #8
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    help with my 1st Glcd project

    hello i have a LM13232AFW and PIC16F877A

    and i made my glcd on proteus

    Click image for larger version. 

Name:	بدون عنوان.JPG 
Views:	17 
Size:	77.5 KB 
ID:	80491

    i know the pins Connection are good but i dont know how to start a code with that

    its a GLCD on mikroc i have tried a lot of things but didnt wark and the help they have dont help with my project i just need a code that good with my glcd or parallel mode dont know how to start that 2
    so if you are apro what mode shuld i use and can you give a code makeing help

    this the glcd datasheet LM13232AFW.rar

    thank you



  9. #9
    Advanced Member level 5
    Points: 20,490, Level: 34
    Achievements:
    7 years registered

    Join Date
    May 2009
    Location
    Prime Meridian
    Posts
    3,056
    Helped
    892 / 892
    Points
    20,490
    Level
    34

    re: Help With My First LM13232AFW GLCD Project

    Hi,

    Wow, from doing your first flashing led yesterday you are now onto glcds !!

    There are so many types of glcd, and while their fuctions are similar they need a geat amount of code to get them working.
    If you can use a complier that has libraries for that glcd then the problems solved, however the one you have used is not very popular to my knowledge.

    I would strongly suggest while you are still starting to learn how to program then use one of the more popular standard LCD, any 16x2, HD447080 compatible like the LM016 in ISIS will do.
    Its easy to use and has been the standard display for so many Pic projects.


    If you want a micro system that will allow you to run glcds just by loading some existing coded then you prehpas need to look at a different approach.

    MikroE do complete systems, compliers and hardware including glcds that will do that, but at a high cost.

    The Ardunio system , the software is free and a starter Uno board costs very little;you can be running a glcd in 5 minutes
    http://arduino.cc/en/Main/ArduinoBoardUno


    1 members found this post helpful.

  10. #10
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    re: Help With My First LM13232AFW GLCD Project

    Just try the glcd example in mikroC. Also connect MCLR pin to Vcc through 10k resistor.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  11. #11
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    re: Help With My First LM13232AFW GLCD Project

    glcd example in mikroC and they dont help so i go to mikropascel and i make one

    program GLCD_Test;



    var GLCD_DataPort : byte at PORTD;

    var GLCD_A0 : sbit at RE0_bit;
    GLCD_RW : sbit at RB1_bit;
    GLCD_CS1 : sbit at RE2_bit;
    GLCD_EN : sbit at RB6_bit;
    GLCD_RES : sbit at RB7_bit;

    var GLCD_A0_Direction : sbit at TRISE0_bit;
    GLCD_CRW_Direction : sbit at TRISE1_bit;
    GLCD_CS1_Direction : sbit at TRISE2_bit;
    GLCD_EN_Direction : sbit at TRISB6_bit;
    GLCD_Res_Direction : sbit at TRISB7_bit;

    var counter : byte;
    someText : array[18] of char;

    procedure Delay2S(); // 2 seconds delay function
    begin
    Delay_ms(2000);
    end;

    begin







    end.
    but it didnt draw any thing
    i already have this lcd befor i can test it on the bread board i have to make it write some thing on porteus



  12. #12
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    172 / 172
    Points
    6,265
    Level
    18

    re: Help With My First LM13232AFW GLCD Project

    Quote Originally Posted by hesho90 View Post
    glcd example in mikroC and they dont help so i go to mikropascel and i make one



    but it didnt draw any thing
    i already have this lcd befor i can test it on the bread board i have to make it write some thing on porteus
    Which microcontroller are you using?

    Can you zip and post your proteus file?

    Your GLCD can be used in parallel / serial mode. If P/S is 1 then it is in parallel mode. If P/S is 0 then it is serial mode.
    Last edited by internetuser2k12; 21st September 2012 at 18:18.


    1 members found this post helpful.

  13. #13
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    re: Help With My First LM13232AFW GLCD Project

    Quote Originally Posted by internetuser2k12 View Post
    Which microcontroller are you using?

    Can you zip and post your proteus file?

    Your GLCD can be used in parallel / serial mode. If P/S is 1 then it is in parallel mode. If P/S is 0 then it is serial mode.
    i dont know how to make ir 1 or 0 and i like the parallel mode or the one in the photoClick image for larger version. 

Name:	photo.JPG 
Views:	4 
Size:	160.1 KB 
ID:	80547

    and i use PIC16f877a



  14. #14
    Administrator
    Points: 69,512, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    re: Help With My First LM13232AFW GLCD Project

    I believe the issue maybe that you are attempting to utilize the MikroE GLCD library with a LM13232AFW based GLCD.

    I reviewed both the user manual and help system and I see no indication the library routines support the LM13232AFW chipset.

    Reference: MikroC Pro for PICs User Manual, Section: GRAPHIC LCD LIBRARY, Page: 326
    The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).
    Reference: MikroC Pro for PICs User Manual, Section: SPI GRAPHIC LCD LIBRARY, Page: 479
    The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller) via SPI interface.
    There are several KS108/KS107 compatible controllers available, however I do not believe the LM13232AFW chipset is one of them.

    Unfortunately, you will most likely need to either find a third party library which supports the LM13232AFW chipset or write your own routines.

    By the way, I was unable to open your Proteus simulation file, what version of the application are your currently using?

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson


    1 members found this post helpful.

  15. #15
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: Help With My First LM13232AFW GLCD Project

    hello

    i understand that mikroc want help so i chang to mikropascel so i have my own routines like post #11

    im not sure if they good to wark in till i can make it write any thing i use proteus 7.7 sp2

    this what i get in till now so it wark with my pic



    if you can give me a head start abut how my own routines going to be in code



  16. #16
    Administrator
    Points: 69,512, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: Help With My First LM13232AFW GLCD Project

    Quote Originally Posted by hesho90 View Post
    i understand that mikroc want help so i chang to mikropascel so i have my own routines like post #11
    I believe the library routines are the same regardless of which programming language you choose.

    In other words I don't believe they are compatible with the LM13232AFW chipset.

    Quote Originally Posted by hesho90 View Post
    im not sure if they good to wark in till i can make it write any thing i use proteus 7.7 sp2

    this what i get in till now so it wark with my pic

    I believe the image shows the pinout for the KS108/KS107 based GLCD, NOT the LM13232AFW based GLCD.


    Quote Originally Posted by hesho90 View Post
    if you can give me a head start abut how my own routines going to be in code
    Writing library routines for a GLCD which uses a new controller is quite nontrivial and can be extremely complex, too difficult for a beginning programmer.

    I would agree with wp100 and suggest you start off with a simple HD44780 compatible 16x2 LCD.

    Lab 4: Interfacing a character LCD

    Then after you have master it and you still wish to pursue the GLCD, I would suggest obtaining a KS108/KS107 based GLCD instead of the LM13232AFW based GLCD.

    Lab 20: Interfacing a KS0108 based Graphics LCD (Part 1)

    Lab 20: Interfacing a KS0108 based Graphics LCD (Part 2)

    Be aware the above tutorials are NOT compatible with your LM13232AFW based GLCD.


    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



  17. #17
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: Help With My First LM13232AFW GLCD Project

    you sure there is no way but a controller to make it wark



  18. #18
    Administrator
    Points: 69,512, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: Help With My First LM13232AFW GLCD Project

    It is possible to write a driver/library routines for the LM13232AFW controller based GLCD, however to give you an example of the complexity of such a task the attached zip file contain the source for the KS108/KS107 controller GLCD.

    Details on how to utilize the source code in a typical C language project are provided at the following site:

    Samsung KS0108/KS0107 Library Source

    The source code I've attached essentially accomplishes the same task as the MikroC Library.

    After looking over the attached source code, honestly ask yourself whether or not you are up to the task of writing the source code library for the LM13232AFW controller from scratch/beginning with little or no help.

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



  19. #19
    Member level 4
    Points: 542, Level: 4
    hesho90's Avatar
    Join Date
    Sep 2012
    Location
    egypt
    Posts
    78
    Helped
    0 / 0
    Points
    542
    Level
    4

    Re: Help With My First LM13232AFW GLCD Project

    ok man i get but how abut that one

    LM3037BFW or LM12864LFW

    this the LM3037BFW link

    http://www.ram-e-shop.com/ds/lcd/LM3037BFW.pdf

    with my pic16f877a



    •   AltAdvertisment

        
       

  20. #20
    Administrator
    Points: 69,512, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2355 / 2355
    Points
    69,512
    Level
    64
    Blog Entries
    4

    Re: Help With My First LM13232AFW GLCD Project

    I downloaded the zip file you had previously uploaded and after examining the contents, I found a C source code file demonstrating driver library for the LM13232AFW GLCD.

    Within the code I noticed the controller chipset is actually ST7565 controller, NOT the LM13232AFW which is the model number of the GLCD.

    The fact that the GLCD uses the ST7565 controller is better news, while driver source code for the ST7565 controller chipset is not as common as driver source code for the KS108/KS107 controller, it does exist.

    Code:
    //----------------------------------------------------
    //
    //   拓普微内置ST7565/67液晶显示模块系列应用程序包-V0.1
    //         (应用液晶显示控制器ST7565/67)
    //
    //
    //   本文件是应用手册中程序的C文件,用户可以直接拷贝
    //   程序参照应用手册中两种并行接口电路定义的接口端
    //
    //         深圳市拓普微科技开发有限公司
    //      Shenzhen TOPWAY Technology Co.,Ltd.
    //
    //       by Guo Qiang           2008-11-21
    //
    //----------------------------------------------------
    
    #include 
    #include 
    #include 
    
    #define uchar unsigned char // 0~255
    #define uint unsigned int   // 0~65535
    uchar   ContrastLevel;     // for contrast setting level
    ...
    ...
    ...
    ...
    I found the following source code examples for GLCDs which use the ST7565:

    Lady Ada ST7565 LCDs Tutorial

    PIC Assembler Code for ST7565 GLCD

    ST7565 LCDs: Graphical LCDs!


    I also found a MikroC compatible library for the ST7565 controller based GLCDs, the bad news is it is written in Pascal for the PIC32 and would certainly require a rewrite to function with the PIC16F series:

    Sitronix ST7565 LCD driver

    BigDog

    - - - Updated - - -

    Do you purchase parts from this site?

    Ram Electronics

    If so, this is the display I would recommend:

    Ram Electronics - LM12864LFW

    The LM12864LFW GLCD uses the S6B0108B controller chipset, which is actually a KS108/KS107 compatible chipset.

    The LM12864LFW GLCD should allow you to use the existing MikroC GLCD libraries and should be compatible with the example projects/tutorials I previously posted in reply #16.

    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



--[[ ]]--