Page 1 of 1

Graphic LCD

Posted: 23 Aug 2010 15:53
by mersis
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?

Re: Graphic LCD

Posted: 24 Aug 2010 00:37
by pykedgew
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

Re: Graphic LCD

Posted: 24 Aug 2010 07:07
by mersis
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?

Re: Graphic LCD

Posted: 24 Aug 2010 08:28
by pykedgew
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

Re: Graphic LCD

Posted: 24 Aug 2010 09:13
by mersis

Re: Graphic LCD

Posted: 24 Aug 2010 12:37
by pykedgew
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

Re: Graphic LCD

Posted: 24 Aug 2010 13:15
by tihomir.losic
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

Re: Graphic LCD

Posted: 25 Aug 2010 00:15
by pykedgew
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

Re: Graphic LCD

Posted: 26 Aug 2010 13:16
by tihomir.losic
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