This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to Fill red colour in LCD interfaced with AM3517. TFT [800*480]

Other Parts Discussed in Thread: AM3517

Dear All,

I have Initialise the LCD TFT [800*480] ..InnoLux Manufaturer..Interfaced with AM3517..When i try to fill the colour in LCD screen it fills correctly for BLUE and for Green it feels CYAN colour and for RED it feels GREEN colour. And i am not able to feel the red colour at all.

function used for feeling colour :

void LCD_fill_buffer(uint16_t color)
{
uint32_t i;


uint16_t *buffer = (uint16_t *) GFXBUFFER_ADDRESS;

for (i = 0; i < LCD_HEIGHT * LCD_WIDTH; i++)
{
*(++buffer) = color;

}
}


Configuration Selected : 16bpp : RGB16 , GFX replication Enable : Clock : 32 Mhz : LCD Enable : default colour 0 : trans colour 0 .
if you need any other information to figure out please let me know.
the Location where i have allocated buffer memory is external DDR..i have checked that my function writes the data to the DDR and reads back the same data.

#define BLACK   (0x0000)
#define RED (0xF800)
#define GREEN (0x07E0)
#define BLUE (0x001F)
#define WHITE (0xFFFF)

Thanks and Regard's
Hrishikesh.