Graphic LCD

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
mersis
Posts: 29
Joined: 18 Oct 2009 09:40

Graphic LCD

#1 Post by mersis » 23 Aug 2010 15:53

Hi, I'm using LCD http://www.satistronics.com/128x64-1286 ... p2618.html
and lcd don't work. Do I need lcd with KS108 only?

pykedgew
Posts: 164
Joined: 10 Dec 2005 02:22
Location: Brisbane Australia

Re: Graphic LCD

#2 Post by pykedgew » 24 Aug 2010 00:37

Hi Mersis
pin15/High=parallel and pin15/Low=serial mode
Have you taken care of Pin 15 on your LCD?
For "Parallel" mode, connect Pin 15 link to VCC supply.
(I normally use say a 1K for protection instead a direct link)

Ken
Last edited by pykedgew on 24 Aug 2010 08:56, edited 2 times in total.

mersis
Posts: 29
Joined: 18 Oct 2009 09:40

Re: Graphic LCD

#3 Post by mersis » 24 Aug 2010 07:07

pykedgew wrote:Hi Mersis
pin15/High=parallel and pin15/Low=serial mode
Have you taken care of Pin 15 on your LCD?
For "Parallel" mode, connect Pin 15 link to VCC supply.
(I normally use say a 1K for protection instead a direct link)

Ken
Ok, but where is CS1 and CS2 pins in this LCD?

pykedgew
Posts: 164
Joined: 10 Dec 2005 02:22
Location: Brisbane Australia

Re: Graphic LCD

#4 Post by pykedgew » 24 Aug 2010 08:28

Hi Mersis

CS1, CS2 are not available ST7920 only CS
You do realise there are many different modes using the parallel(8 bits or 4bits) or serial(SPI).
Look up the datasheet for ST7920 for the details.

Just having a quick look at the web page you pointed at the start of this thread.
Basically, this display probably will not work with the KS108 lib.
Better of to try using the T9663 library & see how you go from there.

Ken

mersis
Posts: 29
Joined: 18 Oct 2009 09:40

Re: Graphic LCD

#5 Post by mersis » 24 Aug 2010 09:13


pykedgew
Posts: 164
Joined: 10 Dec 2005 02:22
Location: Brisbane Australia

Re: Graphic LCD

#6 Post by pykedgew » 24 Aug 2010 12:37

this lcd will be ok?
For what & purpose?

To be use with KS108 library, it could be.(it looks OK)
You need to check it out the datasheet.

I have not use any of these graphical displays.

Someone else might know.

Ken

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Graphic LCD

#7 Post by tihomir.losic » 24 Aug 2010 13:15

mersis wrote:Do I need lcd with KS108 only?
Hello,

The mikroC PRO for AVR provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).

Best regards,

Losic Tihomir
mikroElektronika [Support team]

pykedgew
Posts: 164
Joined: 10 Dec 2005 02:22
Location: Brisbane Australia

Re: Graphic LCD

#8 Post by pykedgew » 25 Aug 2010 00:15

Hello,

The mikroC PRO for AVR provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).

Best regards,

Losic Tihomir
mersis wrote:Do I need lcd with KS108 only?
Hello,

The mikroC PRO for AVR provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).

Best regards,

Losic Tihomir
How is that going to help mersis?
This was at the start of the thread & the course has be change down to here on deciding which LCD to purchase.

Also why are you referring to "mikroC PRO for PIC" which is not AVR related for this thread?
Maybe nice you refer that other PIC chips do have it & we don't, then why is it.

So for our main mikroPascal PRO for AVR , is there is a library available? (yes) (no then goto next line)
Or can one be written & then please uploaded for us.

Ahem, looking in the HELP section of the mikroPascal PRO for AVR IDE there is 2 type of graphic library which are KS108 & T9663.

Ken

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Graphic LCD

#9 Post by tihomir.losic » 26 Aug 2010 13:16

pykedgew wrote:So for our main mikroPascal PRO for AVR , is there is a library available? (yes) (no then goto next line)
Or can one be written & then please uploaded for us.
Hello,

- The mikroPascal PRO for AVR provides a library for communication with Lcds (with HD44780 compliant controllers)
through the 4-bit interface. An example of Lcd connections is given on the schematic at the bottom of this page.
- The mikroPascal PRO for AVR provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).

Also, you can create library for your GLCD display.

Making new library:
- follow the steps explained in the Help file, and read in detail the explanation provided there. I have also very clearly described what you should do with the library:
1. Copy the original __Lib_Example.mcl in your Uses folder (P18 for PIC18F4550)
2. Open P18F4550.mlk file and add the following code in the appropriate section:

Code: Select all

<LIB>
  <ALIAS>Example_Library</ALIAS>
  <FILE>__Lib_Example</FILE>
  <TYPE>REGULAR</TYPE>
</LIB>
3. In LibraryExample.mcppi project, select (if already isn't) PIC18F4550 MCU, and in the Library Manager click on the button
Rebuild libraries and your Example_Library will appear, with it's three functions
4. Click on this library to include it in the project.
5. Remove __Lib_Example.c from Project settings window, because it is not needed anymore (it is loaded via it's .MCL file)
6. You can also remove the following section in the code:

Code: Select all

//************************************
extern void BlinkLED_1(int Delay); //These lines won't be necessary when
extern void BlinkLED_2(int Delay); //you create library entry in .MLK file
extern void Example_Init(); //as described in Help file
//************************************
7. Rebuild the project

Best regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroPascal PRO for AVR General”