Hi, we are starting to use FT813 to control a TFT display in a new project.
For now, as you can see in the attached image, we have created a simple composition, but we always get a divided screen and you can see the "rainbow" at the right side. I don%u2019t know how to solve this.
Our screen is 800 x 480 (T500T01X00)
It is our initial sequence (SPI speed is less < 11 MHz)
HAL_Delay(200);
FT813_PDN_OFF;
HAL_Delay(20);
FT813_PDN_ON; //Activa Power Down
HAL_Delay(20) //Requerit
FT813_cmdWrite(FT813_CMD_CLKEXT); // clock extern
FT813_cmdWrite(FT813_CMD_ACTIVE); // activa el chip
if (FT813_memRead8(REG_ID) == 0x7C) { // espera a identificar el xip
// WQVGA display parameters
FT813_memWrite16(REG_HSIZE, 800); // Active width of LCD display
FT813_memWrite16(REG_HCYCLE, 928); // Total number of clocks per line
FT813_memWrite16(REG_HOFFSET, 88); // Start of active line
FT813_memWrite16(REG_HSYNC0, 1); // Start of horizontal sync pulse
FT813_memWrite16(REG_HSYNC1, 48); // End of horizontal sync pulse
FT813_memWrite16(REG_VSIZE, 480); // Active height of LCD display
FT813_memWrite16(REG_VCYCLE, 525); // Total number of lines per screen
FT813_memWrite16(REG_VOFFSET, 32); // Start of active screen
FT813_memWrite16(REG_VSYNC0, 0); // Start of vertical sync pulse
FT813_memWrite16(REG_VSYNC1, 3); // End of vertical sync pulse
FT813_memWrite8(REG_SWIZZLE, 0); // Define RGB output pins
FT813_memWrite8(REG_PCLK_POL, 1); // Define active edge of PCLK
FT81x_GPIO = FT813_memRead8(REG_GPIO); // Read the FT800 GPIO register for a read/modify/write operation
FT81x_GPIO = FT81x_GPIO | 0x80; // set bit 7 of FT800 GPIO register (DISP) - others are inputs
FT813_memWrite8(REG_GPIO, FT81x_GPIO); // Enable the DISP signal to the LCD panel
// Can move these 2 lines to after the first display list to make the start-up appear cleaner to the user
FT813_memWrite8(REG_PCLK, 2); // Now start clocking data to the LCD panel
FT813_memWrite8(REG_PWM_DUTY, 127);
val = SI;
}
else val = NO;
I've changed the values of this configurations, but I got the same result. Based on your experience, what could be the problem?
Thank you in advance