hye all,
I need help regarding to glcd please.
I use 18F452, 20MHz, glcd pin connection as below:
GLCD Pin connections:
//// (These can be changed as needed in the following defines).
//// * 1: VSS is connected to GND
//// * 2: VDD is connected to +5V
//// * 3: V0 - LCD operating voltage is connected from a 20k Ohm POT
//// * 4: D/I - Data or Instruction is connected to B2
//// * 5: R/W - Read or Write is connected to B4
//// * 6: Enable is connected to B5
//// *7-14: Data Bus 0 to 7 is connected to port d
//// *15: Chip Select 1 is connected to B0
//// *16: Chip Select 2 is connected to B1
//// *17: Reset is connected to C0
//// *18: Negative voltage is also connected to the 20k Ohm POT
//// *19: Positive voltage for LED backlight is connected to +5V
//// *20: Negavtive voltage for LED backlight is connected to GND
My coding are as below:
#include <18F452.H>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#include "c:\program files\picc\drivers\HDM64GS12.c"
#include "c:\program files\picc\drivers\graphics.c"
void main()
{
char text[30]="HYE ALL";
char text1[30]="HELLO WORLD";
glcd_init(ON);
delay_ms(500);
glcd_fillScreen(OFF);
while(1)
{
glcd_text57(0,0,text,1,ON);
glcd_text57(0,12,text1,1,ON);
delay_ms(1000);
}
}
What I got from simulation and hardware(using SK40C):
http://img836.imageshack.us/i/glcdsk40c.png/
but I got problem when I use SK4OB:
http://img341.imageshack.us/i/glcdsk40b.png/
In my project I use SK40B, so I really need your help.
Your kind help about this matter are much appreciated.