Hello,
Has anyone managed to get a memory read to a CFAG320240CX to work correctly? I am currently using the following code without much luck:
The sleep function here should delay for around 13ns. Memory writes to the controller work as expected.
Thanks,
Will.
Has anyone managed to get a memory read to a CFAG320240CX to work correctly? I am currently using the following code without much luck:
Code:
unsigned char DATA_R(void)
{
unsigned char iData;
GPIOE->CRH = 0x44444444; //Set Data bus to input
CLR_A0;
CLR_CS;
LCD_READ; //Set R/W bit
Sleep();
SET_E;
Sleep();
CLR_E;
iData = INDATA();
GPIOE->CRH = 0x11111111; //Return data bus to output
LCD_WRITE; //Clear R/W bit
return ( iData );
}
Thanks,
Will.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited by a moderator: