delayleri ekleyip denediğimde de olmadı.lcd bağlantıları aşağıda.proteusta kullanılan lcd samsung ks0108,microc nin winstar lcd yi çalıştıırmadığını okudum bir kaç forumda,ks0108 in dengi olduğu söylenen wg12864c1 i denedim o da çalışmadı,sorun nerede anlamıyorum
sbit GLCD_D7 at RD7_bit;
sbit GLCD_D6 at RD6_bit;
sbit GLCD_D5 at RD5_bit;
sbit GLCD_D4 at RD4_bit;
sbit GLCD_D3 at RD3_bit;
sbit GLCD_D2 at RD2_bit;
sbit GLCD_D1 at RD1_bit;
sbit GLCD_D0 at RD0_bit;
sbit GLCD_D7_Direction at TRISD7_bit;
sbit GLCD_D6_Direction at TRISD6_bit;
sbit GLCD_D5_Direction at TRISD5_bit;
sbit GLCD_D4_Direction at TRISD4_bit;
sbit GLCD_D3_Direction at TRISD3_bit;
sbit GLCD_D2_Direction at TRISD2_bit;
sbit GLCD_D1_Direction at TRISD1_bit;
sbit GLCD_D0_Direction at TRISD0_bit;
sbit GLCD_CS1 at LATB0_bit;
sbit GLCD_CS2 at LATB1_bit;
sbit GLCD_RS at LATB2_bit;
sbit GLCD_RW at LATB3_bit;
sbit GLCD_EN at LATB4_bit;
sbit GLCD_RST at LATB5_bit;
sbit GLCD_CS1_Direction at TRISB0_bit;
sbit GLCD_CS2_Direction at TRISB1_bit;
sbit GLCD_RS_Direction at TRISB2_bit;
sbit GLCD_RW_Direction at TRISB3_bit;
sbit GLCD_EN_Direction at TRISB4_bit;
sbit GLCD_RST_Direction at TRISB5_bit;
// GLCD Modül bağlantı tanımlamaları sonu
void main() {
ADC1_Init(); // AN pinlerini dijital giriş olarak tanımla
TRISB = 0x00; //
Glcd_Init(); // GLCD yi başlat
Glcd_Fill(0x00); // GLCD ekranını temizle
Delay_ms(100); // 100 ms bekle, grafik lcd hazır olsun
Glcd_Set_Font(FontSystem5x7_v2, 5, 7, 32); // fontu değiştir
Glcd_Write_Text("SICAKLIK ( C):" , 1, 1, 1);
Glcd_Circle(63,8,1,1); //derece işaretini ekrana çizer.
Glcd_Write_Text("NEM (%H):" , 1, 3, 1);
delay_ms(1000);
}