I use PORTC for control port and PORTD for data port with the following short code :
Code: Select all
program GLCD;
begin
TRISC := 0; *
TRISD := 0; *
GLCD_Init(PORTC,0,1,2,3,4,5,PORTD);
GLCD_Fill(0);
GLCD_Write_Text('Hello',0,0,1);
end.
I connect the following pins to the control port
RC0 -> CS1
RC1 -> CS2
RC2 -> RS
RC3 -> RW
RC4 -> RST
RC5 -> EN
and the data port as follows : RCx -> Dx (x = 0 to 7)
I have the GLCD data sheet but I cannot find a way to attach it here. Could you please help me ? Thanks in advance !