sukhdeepmankoo
Member level 2
Dear Sir,
I am trying to interface GDM12864A 128*64 Graphical LCD with ATmega16. I want to read the data at any line. how can i read it. I have read the data sheet and has written the following program.
unsigned char lcm_read()
{ unsigned char read;
LCD_DATA_DDR=0;
delay(30);
LCD_CONTROL_PORT|=((1<<DI)|(1<<RW)|(1<<EN));
delay(30);
read=LCD_DATA_PIN;
LCD_DATA_DDR=0xff;
delay(30);
LCD_CONTROL_PORT&=((1<<EN));
delay(30);
return read;
}
kindly tell me, how can i read the data from LCM.
Thanks & Regards
I am trying to interface GDM12864A 128*64 Graphical LCD with ATmega16. I want to read the data at any line. how can i read it. I have read the data sheet and has written the following program.
unsigned char lcm_read()
{ unsigned char read;
LCD_DATA_DDR=0;
delay(30);
LCD_CONTROL_PORT|=((1<<DI)|(1<<RW)|(1<<EN));
delay(30);
read=LCD_DATA_PIN;
LCD_DATA_DDR=0xff;
delay(30);
LCD_CONTROL_PORT&=((1<<EN));
delay(30);
return read;
}
kindly tell me, how can i read the data from LCM.
Thanks & Regards