[SOLVED] LDC Driver

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] LDC Driver

    Dear SEGGER help Desk

    I have LCD driver writen by SEGGER. This is the driver for TOSHIBA JBT6K71-AS.

    I have 15 questions after reading the data sheet that show diffrents from the recomdetion in the datasheet. AND THE LCD driver DO NOT WORK.

    this is segger respones :



    " The questions in your documents all refer to the initialization of the display

    which is not part of SEGGER support. You may want to contact your display vendor

    regarding the initialization of the display.

    The initialization we sent is based on the TD020MHEA1 SW setting.pdf which we received

    from your colleague Ido Nir-Shafrir on January 8th. Fine tuning the

    initialization is not part of the emWin support but needs to be done by the customer."



    can you kindly help me to work with my LCD

    avi keret Medingo
  • Driver for TOSHIBA JBT6K71-AS

    Dear Avi,


    Please note that this is not a J-Link related topic.

    SEGGER provided your company with a sample initialization and a picture of the running LCD (below).

    SEGGER usually provides initialization samples if they are already available.

    Information on how to initialize the display can be obtained from the display manufacturer.

    Finetuning the hardware initialization is not part of the emWin software.

    Please find below again the sample initalization shipped with the software.


    [img]http://149.221.239.133/Forum/Toshiba_JBT6K71.JPG[/img]



    C Source Code

    1. /*********************************************************************
    2. * SEGGER MICROCONTROLLER SYSTEME GmbH *
    3. * Solutions for real time microcontroller applications *
    4. **********************************************************************
    5. * *
    6. * (c) 1996 - 2004 SEGGER Microcontroller Systeme GmbH *
    7. * *
    8. * Internet: www.segger.com Support: support@segger.com *
    9. * *
    10. **********************************************************************
    11. ***** emWin - Graphical user interface for embedded applications *****
    12. emWin is protected by international copyright laws. Knowledge of the
    13. source code may not be used to write a similar product. This file may
    14. only be used in accordance with a license and should not be re-
    15. distributed in any way. We appreciate your understanding and fairness.
    16. ----------------------------------------------------------------------
    17. File : LCDConf_66703_C16_C240x320.h
    18. Purpose : Sample configuration file
    19. ----------------------------------------------------------------------
    20. */
    21. #ifndef LCDCONF_H
    22. #define LCDCONF_H
    23. /*********************************************************************
    24. *
    25. * General configuration of LCD
    26. *
    27. **********************************************************************
    28. */
    29. #define LCD_CONTROLLER 66703
    30. #define LCD_XSIZE 240
    31. #define LCD_YSIZE 320
    32. #define LCD_BITSPERPIXEL 16
    33. #define LCD_SWAP_RB 1
    34. #define LCD_MIRROR_X 1
    35. /*********************************************************************
    36. *
    37. * Simple bus configuration
    38. *
    39. **********************************************************************
    40. */
    41. void LCD_X_WriteM01(char * pData, int NumBytes);
    42. void LCD_X_WriteM00(char * pData, int NumBytes);
    43. void LCD_X_ReadM01 (char * pData, int NumBytes);
    44. #define LCD_WRITEM_A1(Byte, NumBytes) LCD_X_WriteM01(Byte, NumBytes)
    45. #define LCD_WRITEM_A0(Byte, NumBytes) LCD_X_WriteM00(Byte, NumBytes)
    46. #define LCD_READM_A1(Byte, NumBytes) LCD_X_ReadM01(Byte, NumBytes)
    47. /*********************************************************************
    48. *
    49. * Initialisation macro
    50. *
    51. **********************************************************************
    52. */
    53. void LCD_X_Init(void);
    54. void LCD_X_Sync(void);
    55. #define DELAY(Cnt) { volatile U32 i; for (i = 0; i < Cnt; i++); }
    56. #define LCD_INIT_CONTROLLER() \
    57. LCD_X_Init(); \
    58. /* Deep standby out */ \
    59. _WriteU16_A0(0x000); \
    60. DELAY(100); \
    61. _WriteU16_A0(0x000); \
    62. DELAY(100); \
    63. _WriteU16_A0(0x000); \
    64. DELAY(100); \
    65. /* Standby out */ \
    66. _WriteU16_A0(0x5ff); _WriteU16_A1(0x0000); /* NOP */ \
    67. LCD_X_Sync(); \
    68. _WriteU16_A0(0x01d); _WriteU16_A1(0x0005); /* Mode setting */ \
    69. DELAY(100); \
    70. /* Initialization */ \
    71. _WriteU16_A0(0x000); _WriteU16_A1(0x0001); /* Oscillator on */ \
    72. /* Display control */ \
    73. _WriteU16_A0(0x001); _WriteU16_A1(0x0027); /* Display size 320 lines */ \
    74. _WriteU16_A0(0x002); _WriteU16_A1(0x0200); /* AC conversion */ \
    75. _WriteU16_A0(0x007); _WriteU16_A1(0x4004); /* Display mode */ \
    76. _WriteU16_A0(0x00d); _WriteU16_A1(0x0011); /* FR period adjustment setting */ \
    77. _WriteU16_A0(0x00f); _WriteU16_A1(0x0000); /* External display signal setting (3) */ \
    78. /* LTPS control settings */ \
    79. _WriteU16_A0(0x012); _WriteU16_A1(0x0303); /* LTPS control setting (1) */ \
    80. _WriteU16_A0(0x013); _WriteU16_A1(0x0102); /* LTPS control setting (2) */ \
    81. _WriteU16_A0(0x01c); _WriteU16_A1(0x0000); /* Amplifier capability setting */ \
    82. /* Power settings */ \
    83. _WriteU16_A0(0x102); _WriteU16_A1(0x00f6); /* Power supply control (1) */ \
    84. _WriteU16_A0(0x103); _WriteU16_A1(0x0007); /* Power Supply Control (2) */ \
    85. _WriteU16_A0(0x105); _WriteU16_A1(0x0111); /* Power supply control (4) */ \
    86. /* Gray scale settings (gamma corrections for 2.2) */ \
    87. _WriteU16_A0(0x300); _WriteU16_A1(0x0200); /* Gray scale setting */ \
    88. _WriteU16_A0(0x301); _WriteU16_A1(0x0002); /* Gray scale setting */ \
    89. _WriteU16_A0(0x302); _WriteU16_A1(0x0000); /* Gray scale setting */ \
    90. _WriteU16_A0(0x303); _WriteU16_A1(0x0300); /* Gray scale setting */ \
    91. _WriteU16_A0(0x304); _WriteU16_A1(0x0700); /* Gray scale setting */ \
    92. _WriteU16_A0(0x305); _WriteU16_A1(0x0070); /* Setting for Gray scale offset amounts */ \
    93. /* RAM access settings */ \
    94. _WriteU16_A0(0x402); _WriteU16_A1(0x0000); /* First screen drive position (1) */ \
    95. _WriteU16_A0(0x403); _WriteU16_A1(0x013f); /* First screen drive position (2) */ \
    96. _WriteU16_A0(0x406); _WriteU16_A1(0x0000); /* Horizontal RAM address location (1) */ \
    97. _WriteU16_A0(0x407); _WriteU16_A1(0x00ef); /* Horizontal RAM address location (2) */ \
    98. _WriteU16_A0(0x408); _WriteU16_A1(0x0000); /* Vertical RAM address location (1) */ \
    99. _WriteU16_A0(0x409); _WriteU16_A1(0x013f); /* Vertical RAM address location (2) */ \
    100. _WriteU16_A0(0x200); _WriteU16_A1(0x00ef); /* RAM address setting (1) */ \
    101. _WriteU16_A0(0x201); _WriteU16_A1(0x0000); /* RAM address setting (2) */ \
    102. _WriteU16_A0(0x202); _WriteU16_A1(0x0000); \
    103. /* Display on */ \
    104. _WriteU16_A0(0x100); _WriteU16_A1(0xc010); /* Display Control */ \
    105. DELAY(100000); \
    106. _WriteU16_A0(0x101); _WriteU16_A1(0x0001); /* Auto sequence Control */ \
    107. _WriteU16_A0(0x100); _WriteU16_A1(0xf7fe); /* Display Control */ \
    108. DELAY(100000)
    109. #endif /* LCDCONF_H */
    Display All




    We hope this helps!



    Claudia
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • I moved this thread to the emWin section, I think that matches the topic better.
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.