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.

TFT-LCD Text Font Broken

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

I have to use the OMAP-L138 and CCSv5. 

TFT-LCD is LTE430WQ-F07 (480 x 272) was used.

The example program uses startware. (usb_dev_bulk)

However, the text font is broken character to output.

The first character is the correct output. However, the following characters are broken.

What is the cause? The graphics are properly output.

===============================================================================
GrContextFontSet(&g_sContext, TEXT_FONT);
GrStringDrawCentered(&g_sContext, "ABCDEFGHIJKLMN", -1,
GrContextDpyWidthGet(&g_sContext) / 2, 10, 0);


// Show the various static text elements on the color STN display.
GrContextFontSet(&g_sContext, TEXT_FONT);
GrStringDraw(&g_sContext, "D", 1, 8, 100, false);
GrStringDraw(&g_sContext, "A", 1, 28, 100, false);
GrStringDraw(&g_sContext, "Y", 1, 48, 100, false);
GrStringDraw(&g_sContext, "AAAAA", -1, 8, 130, false);
GrStringDraw(&g_sContext, "TX BYTE:", -1, 8, 160, false);
GrStringDraw(&g_sContext, "Rx bytes:", -1, 8, 190, false);
================================================================================

Thank you.

  • Hi Kim,

    Thanks for your post.

    I have reviewed the usb_dev_bulk starterware code, and i see, raster controller is configured while setting up the LCD thru. SetUpLCD(). In my opinion, raster mode in the LCD controller register would be configured basically to display images but in your case, to display character text/graphics, it would be better to configure LIDD mode in the LCD control register (LCD_CTRL) by enabling the desired mode thru. MODESEL bit.

    Usually, LIDD controller is designed to support LCD panels with low end character displays & graphics display. LIDD mode in LIDD controller shall be configured while setting up LCD in the usb_dev_bulk.c code  thru. the MODESEL bit in the LCD control register and the LIDD controller must be enabled to enable LIDD mode thru. LCD LIDD CS0/CS1 configuration registers (LIDD_CS0_CONF and LIDD_CS1_CONF) & LCD data registers (LIDD_CS0_DATA and LIDD_CS1_DATA)

    For more details on LIDD controller and its display types, please refer section 24.2.4 in the omapl138 TRM as below:

    http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf

    Thanks & regards,
    Sivaraj K

    -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------

  • Answer Thank you.

    However, there are two kinds of questions.

    1) TFT-LCD should I change?

    LTE430WQ-F07 supports the 24bit RGB interface.

    In LIDD mode, this LCD can I use?

    2) Raster Mode in "GrStringDraw" is used, the characters are broken work?

    Register setting is wrong? Or disabled?

    Thank you.

  • Hi Kim,

    Thanks for your update.

    TFT-LCD can be used in LIDD mode and the types of diplay ranges from low-end character monochrome LCD panels to high-end TFT smart LCD panels.

    It would be better to use "GrStringDraw" in LIDD mode instead Raster mode since LIDD mode is well suited for character text display or graphics display.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------

  • Hi 

    Thank you the answer.

    However, the situation is different depending on the color of the character.

    What is the reason?

    Do you ever seen this phenomenon?

    I need a response.

    Thank you.

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    GrContextForegroundSet(&g_sContext, ClrBlue);
    GrContextFontSet(&g_sContext, &g_sFontCm22);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 10, 0);

    GrContextForegroundSet(&g_sContext, ClrMediumSeaGreen);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 30, 0);

    GrContextForegroundSet(&g_sContext, ClrGreen);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 50, 0);

    GrContextForegroundSet(&g_sContext, ClrRed);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 70, 0);

    GrContextForegroundSet(&g_sContext, ClrPapayaWhip);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 90, 0);

    GrContextForegroundSet(&g_sContext, ClrWhite);
    GrStringDrawCentered(&g_sContext, "AAAAAAAAAAAAAA", -1, GrContextDpyWidthGet(&g_sContext) / 2, 110, 0);

    ----------------------------------------------------------------------------------------------------------------------------------------------------