hi,
we are using FT813 and pic32mz... on own app-board for our application.
Used display is AT070MP01
timing parameters:
// AT070MP01
lcdWidth = 800; // Active width of LCD display
lcdHeight = 480; // Active height of LCD display
lcdHcycle = 960; // Total number of clocks per line
lcdHoffset = 88; // lcdHoffset < (lcdHcycle - lcdWidth) // Start of active line
lcdHsync0 = 0; // Start of horizontal sync pulse
lcdHsync1 = 48; // End of horizontal sync pulse
lcdVcycle = 528; // Total number of lines per screen
lcdVoffset = 32; // lcdVoffset < (lcdVcycle - lcdHeight) // Start of active screen
lcdVsync0 = 0; // Start of vertical sync pulse
lcdVsync1 = 3; // End of vertical sync pulse
lcdPclk = 2; // Pixel Clock
lcdSwizzle = 0; // Define RGB output pins
lcdPclkpol = 0; // Define active edge of PCLK
For quick start we are using code from Application Note BRT_AN_014,
FT81X examples using the Microchip PIC microcontroller as the SPI master
with API_Layer, EVE_Layer and MCU_Layer.
Displayd App-Code:
void RSC_Text(void)
{
API_LIB_BeginCoProList(); // Begin new screen
API_CMD_DLSTART(); // Tell co-processor to create new Display List
API_CLEAR_COLOR_RGB(0, 0, 0); // Specify color to clear screen to
API_CLEAR(1,1,1); // Clear color, stencil, and tag buffer
API_COLOR_RGB(255, 255, 255); // Set color to white
API_CMD_TEXT(80, 30, 30, 0, "1) This is a test string! what is going wrong?"); // Draw the text string
API_COLOR_RGB(180, 180, 180); // Set color to white
API_CMD_TEXT(80, 80, 30, 0, "2) This is a test string! what is going wrong?"); // Draw the text string
API_COLOR_RGB(180, 180, 0); // Set color to white
API_CMD_TEXT(80, 130, 30, 0, "3) This is a test string! what is going wrong?"); // Draw the text string
API_COLOR_RGB(0, 180, 180); // Set color to white
API_CMD_TEXT(80, 180, 30, 0, "4) This is a test string! what is going wrong?");
API_COLOR_RGB(191, 191, 191); // Set color to white
API_CMD_TEXT(80, 230, 30, 0, "5) This is a test string! what is going wrong?");
API_COLOR_RGB(0, 180, 0); // Set color to white
API_CMD_TEXT(80, 280, 30, 0, "6) This is a test string! what is going wrong?");
API_COLOR_RGB(180, 0, 0); // Set color to white
API_CMD_TEXT(80, 330, 30, 0, "7) This is a test string! what is going wrong?");
API_COLOR_RGB(200, 191, 190); // Set color to white
API_CMD_TEXT(80, 380, 30, 0, "
This is a test string! what is going wrong?");
API_COLOR_RGB(0, 0, 180); // Set color to white
API_CMD_TEXT(80, 430, 30, 0, "9) This is a test string! what is going wrong?");
API_DISPLAY(); // Tell EVE that this is end of list
API_CMD_SWAP(); // Swap buffers in EVE to make this list active
API_LIB_EndCoProList(); // Finish the co-processor list burst write
API_LIB_AwaitCoProEmpty(); // Wait until co-processor has consumed all commands
//APP_SnapShot2PPM(); // Un-comment to take snapshot (see BRT_AN_014)
while(1)
{
}
}
After successfully init we display same strings on display with different
text colors (see appendix).
Problem: if R > 190, G > 190, B > 190 there are distortions in the text to see with
API_COLOR_RGB( R, G, B );
Distortions on displayd lines 1), 5).
Does anyone have any hints?
Best regards
rsc