Skip to main content
tkjmail
Associate II
January 3, 2009
Question

STM32F103 and ILI9320 QTFT display

  • January 3, 2009
  • 13 replies
  • 2018 views
Posted on January 03, 2010 at 17:47

STM32F103 and ILI9320 QTFT display

    This topic has been closed for replies.

    13 replies

    jj_it
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    If not mistaken - that is the TFT ctrl. ic on the STM32 B & E eval boards. Everything you seek should be easily found... (you have truly lucked out)

    tkjmail
    tkjmailAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Hi.

    I would like to know if any of you have made or got any working code snippets to get started with the ILI9320 connected to a STM32F103?

    I just finished my project using a Nokia 6610 display with the Epson controller, but as I've got this 2.4'' ILI9320 controlled QTFT display, I want to experiment with that too :)

    Best Regards

    Thomas Jespersen

    jj_it
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Much depends on how/where your 2.4'' TFT originated. On STM eval kits there are 2 possible pcbs - which hold/connect the TFT. (one for serial SPI, other for 16 bit parallel)

    Should you have the TFT supplied by ST - you can ''re-configure'' it to either SPI or parallel input! (can't recall if you can select between 8/16 bits) This is done by re-populating a few smt Rs on the flex pcb exiting the TFT.

    Tell us the vendor of your 2.4'' - or post spec and we may be able to help further.

    tkjmail
    tkjmailAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    You are right... The code for both of them includes some ILI9320 code, but the STM3210B-EVAL is not parrallel interfacing with the LCD, which the ILI9320 does!

    But the STM3210E-EVAL is the right one, just one slightly change... My ILI9320 display is running 8-bit, not 16-bit as the display on the STM3210E-EVAL is doing!

    Is it possible to change this is the code? And where? :D

    jj_it
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Thank you - appears there are just 10 more of that 2.4 TFT - thus ''application review/support'' is hard to justify.

    Suggest that you acquire ST's B or E eval board - these have been exhaustively designed to purpose - imho they will save you days/weeks of effort and enable you to properly focus on your application...

    tkjmail
    tkjmailAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    This is the display I've got:

    http://cgi.ebay.com/2-4-Color-TFT-for-EasyPIC-or-PIC-board_W0QQitemZ130331468244QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item1e585c61d4#ht_1933wt_939

    The 8-bit or 16-bit is hardwired on the board, as that is a setting you can choose in the ILI9320 chip!

    jj_it
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    I am simple ST client like you - try to offer support/guidance when/where able - and where it will have the maximum impact/benefit to others.

    Believe I've provided a more efficient path for you...

    tkjmail
    tkjmailAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Quote:

    Thank you - appears there are just 10 more of that 2.4 TFT - thus ''application review/support'' is hard to justify.

    What do you mean by this?

    I really want to do a project with the QTFT I allready have! :o

    mariemzidi
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Hi tkjmail,

    I'm trying to display images on the LCD screen (ILI9329) using an STM32F103ZET6, the problem that I couldn't display colored pictures, I used the ''LCD_WriteBMP function'' for that and I tried with monochrome pictures and it worked well using the ''LCD_DrawMonoBMP function'' which is provided for displaying monochrome BMPs.(these functions are from the demo's in the STonline)

    Actually, I convert the images into an hex code using a software called the Hex Workshop then I put the image as a const

    like this for example:

     const unsigned char IMAGE[] :{

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    };

    an then in the call of the function :

    LCD_WriteBMP((u32) IMAGE);  // if it's a colored picture //

    LCD_DrawMonoBMP((u32) IMAGE);  // if it's a  monochrome picture //

    the monochrome picture displayed corretly but the colored one is not clear.

    Please if there is any idea to help me I would be very gratefull.

    Looking forward to hearing from you..

    Best Regards

    Mariem

    mariemzidi
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Hi tkjmail,

    I'm trying to display images on the LCD screen (ILI9329) using an STM32F103ZET6, the problem that I couldn't display colored pictures, I used the ''LCD_WriteBMP function'' for that and I tried with monochrome pictures and it worked well using the ''LCD_DrawMonoBMP function'' which is provided for displaying monochrome BMPs.(these functions are from the demo's in the STonline)

    Actually, I convert the images into an hex code using a software called the Hex Workshop then I put the image as a const

    like this for example:

     const unsigned char IMAGE[] :{

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    };

    an then in the call of the function :

    LCD_WriteBMP((u32) IMAGE);  // if it's a colored picture //

    LCD_DrawMonoBMP((u32) IMAGE);  // if it's a  monochrome picture //

    the monochrome picture displayed corretly but the colored one is not clear.

    Please if there is any idea to help me I would be very gratefull.

    Looking forward to hearing from you..

    Best Regards

    Mariem