Hi, I have a problem reading the graphic RAM of a 3.2 inch display based on ILI9341. It is not quite an AVR related issue but I am not using Arduino so I have no other place to ask for help.
I am already working on this since several days with no results and I started to think that my display is probably "write only". The only response I get back from the display is the last command I am sending before reading, in my case here I get 0x2E on lower data port and 0x00 on higher data port, no matter how many (dummy) readings I am taking.
Sending data and commands to the display works for writing so I think there is no problem with the code. I have even tried to read the display ID but it doesn't work, I get back the last command only (0x04).
I don't think it may be a random hardware problem either, I have 2 identical displays and both are doing the same.
Below is a piece of simple code used only for reading tests. The response i get with this code is 0x2E 0x00 0x2E 0x00 0x2E 0x00, as I have mentioned alredy 0x2E is the memory read command. A picture with the display attached.
glcd_pixel(10, 10, red); glcd_setX(10, 10); glcd_setY(10, 10); glcd_sendCmd(ILI9341_CMD_MEMORY_READ); //glcd_sendCmd(0x04) LCDPort_Input(); lcd_cs(0); lcd_rs(1); //lcd_wr(1); //lcd_rd(1); lcd_rd(0); data = LCD_DATA_PORT_L; lcd_rd(1); lcd_rd(0); data = LCD_DATA_PORT_L; data = LCD_DATA_PORT_H; lcd_rd(1); lcd_rd(0); data = LCD_DATA_PORT_L; data = LCD_DATA_PORT_H; lcd_rd(1); lcd_rd(0); data = LCD_DATA_PORT_L; data = LCD_DATA_PORT_H; lcd_rd(1); lcd_cs(1); LCDPort_Output();