Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 128X64 KS0108 Graphical LCD Interfacing with PIC16F877A using MPLAB and Hi-Tech C

Status
Not open for further replies.

xpress_embedo

Advanced Member level 4
Joined
Jul 5, 2011
Messages
1,154
Helped
161
Reputation
396
Reaction score
189
Trophy points
1,353
Location
India
Activity points
10,591
Hello!!! I want to interface and some text or anything on Graphical LCD, i have read several tutorials on Graphical LCD,
But not able to gather much information..
Can any one help me how to do so....
 

Hello!

Google is your friend!
Does this help you? Everything is explained with great detail:



Dora.
 
Hello!

What about telling us what you did already?
I have never programmed with PIC, but I'm sure many people did.
Show us your schematics, your source code, etc...

Dora.
 

I don't know how to write source code for this..
Here is my Connection Diagram..
Graphical_LCD.PNG

I don't know how to program:-
Here is what i have written so for...
Based on the available information on the net...

#include<htc.h>
#define _XTAL_FREQ 8000000
#define CH1 PORTBbits.RB0
#define CH2 PORTBbits.RB1
#define RS PORTBbits.RB2
#define RW PORTBbits.RB3
#define EN PORTBbits.RB4
#define RST PORTBbits.RB5
void LCD_Init();
void set_add();

void main()
{
TRISB = 0x00;
TRISD = 0x00; //Making Both Input and Output Port as Output Bort
CH1 = 1;
CH2 = 0;
LCD_Init();
__delay_ms(200);
set_add();

}
void LCD_Init()
{
EN = 1;
RS = 0;
RW = 0;
PORTD = 0x3F;
EN = 0;
}
void set_add()
{
EN = 1;
RS = 0;
RW = 0;
PORTD = 0b01000001;
EN = 0;
__delay_ms(2000);
EN = 1;
RS = 1;
PORTD = 0xFF;
EN = 0;
}
 
Finally I choose MikroC to to some Research... and finally had done something..
Let me show you this in this PIC
Graphical_LCD.PNG

This is what i had done, and due to this i have some more knowledge, but i want to make my own functions to use it with Hi-Tech C and MPLAB

Hope i will start this from tomorrow onwards..
 
Hello!!!
Can anyone help me... in programming Graphical LCD with PIC16F877A...
I had display a image on Graphical LCD, with the help of MikroC programming Language....
But as every one knows MikroC has in-built routines for that.

But i want to write my function in MPLAB IDE along with Hi-tech C Compilers.. but failed to do so....

The information collected by me.... from the internet when applied by me, is not solving my aim to run the Graphical LCD using Hi_Tech C

Till now i am not able to gather the information about the function of Enable pin in Graphical LCD...

I am very confused regarding the pins
CH1 and CH2

I proteus when i simulate the above schematic... whether i choose left side of graphical lcd or right side.. my CH1 is always high and CH2 is always LOW.

I know there are 6 Control Pins in Graphical LCD and 8 Data Pins
I had set both these as output port is it OK...

Pls help me.. I desperately want to properly understand the interfacing of Graphical LCD
 
I am interested in Mplab and hi-tech picC to drive an 128x64 + a resistive touch screen. Help me to do this.
 

Here I have GLCD KS0108 code using Hi-Tech.


#include "LibraryKS0108.h"
#include "LibraryImage128x64.h"

where are the code's for these libraries..
Thanks for ur help
 
Thank you very much!!!

Best regards,

Patricio Capelo
 

can u gimme the full code to display somthing on GLCD
 

can anyone help me on how to display image on glcd 128x64 with ks1080 controller
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top