LCD Display

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Re: LCD Display

Postby ABSF » Sun Jan 30, 2011 1:16 pm

But I thought I have answered this in another thread:

viewtopic.php?f=21&t=10722&hilit=GLCD

And you said you bought the same GLCD as used in the PR21 kits.

PICTRAIL WROTE:The GLCD is 128 x 64 same one with the PR21 Kit. Likewise my PIC16F877A is running on 20MHz.
I am very new to PIC microcontroller and i can't seem to get a way out to modify the other program.

I would appreciate a sample program just to write any message like (CYTRON TECHNOLOGY) placed at the centre of the screen and a sample image loading. With this i can make adjustment for it to suit my application.

Thanks for your support.

Ebby.


Now it seems that your GLCD is different from that of PR21. You need a major modification for the GLCD to work as the way it handles graphics and text is different from PR21 codes. First you need to download the datasheet for KS0108B and study it well or get the library file for KS0108B GLCD.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: LCD Display

Postby PICTRAIL » Mon Feb 07, 2011 12:12 pm

Sorry about the confussion... I am actually using same GLCD as the one used in PR21 (http://cytron.com.my/viewProduct.php?pi ... BjA8x5pCM=) i got it from cytron. Instead of chipset1 and chipset2 i meant RST and RS.
My problem is that PR21 sample program is with C18 but i am using Hi-Tech C16 compiler for (PIC16F877A). I dont know how to modify the program to be used for C16.
I need help with the conversion. If i can get help for this, i can really manage the rest.
Thanks...
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: LCD Display

Postby Brian Griffin » Mon Feb 07, 2011 2:04 pm

PICTRAIL WROTE:Sorry about the confussion... I am actually using same GLCD as the one used in PR21 (http://cytron.com.my/viewProduct.php?pi ... BjA8x5pCM=) i got it from cytron. Instead of chipset1 and chipset2 i meant RST and RS.
My problem is that PR21 sample program is with C18 but i am using Hi-Tech C16 compiler for (PIC16F877A). I dont know how to modify the program to be used for C16.
I need help with the conversion. If i can get help for this, i can really manage the rest.
Thanks...


It is not KS0108 - it's the ST7920A. /RSTB is reset signal and RS is the Data/Instruction signal.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: LCD Display

Postby PICTRAIL » Tue Feb 08, 2011 2:42 am

Thanks so much for the input...
Beside, could you help me with a sample program for PIC16F877A. I'm still finding it difficult to write a code to display image or message on my GLCD through PIC16F877A.
Thanks for your kind support.
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: LCD Display

Postby ABSF » Tue Feb 08, 2011 10:28 am

May be you didn't ask the question smart enough......... as sich used to say.

Why don't you open a new thread asking "What are the differences between C16 and C18 language ?" OR list down the lines you dont understand, one or two at a time, and ask people how to port it to C16.

I guess that would put less pressure on members who want to help.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: LCD Display

Postby Brian Griffin » Tue Feb 08, 2011 10:32 am

PICTRAIL WROTE:Thanks so much for the input...
Beside, could you help me with a sample program for PIC16F877A. I'm still finding it difficult to write a code to display image or message on my GLCD through PIC16F877A.
Thanks for your kind support.


Can you develop a simple driver code for this display? Maybe start up with a serial interface (they have it here - 3-4 wires at most) and print some letters on the screen. Please read the datasheet - print out the data and the command section. It's all too important. :D
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Previous

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron