you can comunicate with this LCD Serial or Parall as flow:
View attachment 79573
For code you need to make a choice whether you are comfortable with assembly or C language ?
for the connections, See the circuit below: (just a reference; not exactly matched with yours)
program GLCD_Test;
var GLCD_DataPort : byte at PORTD;
var GLCD_A0 : sbit at RE0_bit;
GLCD_RW : sbit at RB1_bit;
GLCD_CS1 : sbit at RE2_bit;
GLCD_EN : sbit at RB6_bit;
GLCD_RES : sbit at RB7_bit;
var GLCD_A0_Direction : sbit at TRISE0_bit;
GLCD_CRW_Direction : sbit at TRISE1_bit;
GLCD_CS1_Direction : sbit at TRISE2_bit;
GLCD_EN_Direction : sbit at TRISB6_bit;
GLCD_Res_Direction : sbit at TRISB7_bit;
var counter : byte;
someText : array[18] of char;
procedure Delay2S(); // 2 seconds delay function
begin
Delay_ms(2000);
end;
begin
end.
glcd example in mikroC and they dont help so i go to mikropascel and i make one
but it didnt draw any thing
i already have this lcd befor i can test it on the bread board i have to make it write some thing on porteus
Which microcontroller are you using?
Can you zip and post your proteus file?
Your GLCD can be used in parallel / serial mode. If P/S is 1 then it is in parallel mode. If P/S is 0 then it is serial mode.
The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).
The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller) via SPI interface.
i understand that mikroc want help so i chang to mikropascel so i have my own routines like post #11
if you can give me a head start abut how my own routines going to be in code
//----------------------------------------------------
//
// ÍØÆÕ΢ÄÚÖÃST7565/67Òº¾§ÏÔʾģ¿éϵÁÐÓ¦ÓóÌÐò°ü-V0.1
// £¨Ó¦ÓÃÒº¾§ÏÔʾ¿ØÖÆÆ÷[COLOR="#FF0000"]ST7565[/COLOR]/67£©
//
//
// ±¾ÎļþÊÇÓ¦ÓÃÊÖ²áÖгÌÐòµÄCÎļþ,Óû§¿ÉÒÔÖ±½Ó¿½±´
// ³ÌÐò²ÎÕÕÓ¦ÓÃÊÖ²áÖÐÁ½ÖÖ²¢Ðнӿڵç·¶¨ÒåµÄ½Ó¿Ú¶Ë
//
// ÉîÛÚÊÐÍØÆÕ΢¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾
// Shenzhen TOPWAY Technology Co.,Ltd.
//
// by Guo Qiang 2008-11-21
//
//----------------------------------------------------
#include <stdio.h>
#include <reg52.h>
#include <intrins.h>
#define uchar unsigned char // 0~255
#define uint unsigned int // 0~65535
uchar ContrastLevel; // for contrast setting level
...
...
...
...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?