Skip to main content
mariemzidi
Associate II
March 4, 2010
Question

Programming an LCD via ST32F103ZE microcontroller

  • March 4, 2010
  • 13 replies
  • 2041 views
Posted on March 04, 2010 at 10:38

Programming an LCD via ST32F103ZE microcontroller

    This topic has been closed for replies.

    13 replies

    hervieux
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:42

    Hi,

    I am sending an attachment, and here is the link or you can find everything you need.

    http://www.st.com/mcu/devicedocs-STM32F103ZE-110.html

    hervieux
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:42

    To set on your demo you will need DfuSe Demonstration which is present in the. Zip file attached above, as well as on the website which I quoted the link.

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

    Hi Cédric,

    thank you for your quick reply.

    I searched in the attach which you sent to me but I didn't found what I need to program my Demo which is the DfuSeDemo.exe to install it in my computer and follow the different steps of the Demo..

    hope you can find out how to do it?

    Regards,

     

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

    Hi Cédric,

    I need to convert my Bitmap image into an Hex code before loading it.

    Do u have plz any ideas to do it

    Regards,

    Mariem

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

    thank u Cédric

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

    Hi Cédric,

    I want to ask you about displaying the image on the LCD..

    According to the Demo, I need to specify the Height and Width of the image which means the vertical and horizantal dimensions knowing its dimensions in pixels..

    Any ideas please..

    Looking forward to hearing from you

    hervieux
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:42

    Hi Hal,

    Sorry I have no idea, google ... ^^

    hervieux
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:42

    Hi Zidi,

    I worked on this card using uClinux, and I display as an image, it has the size 320x240 (which is adapted to the screen).

    Maybe this will help.

    Good luck!

    Cédric

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

    Hi Cédric,

    I want to ask you about displaying the image on the LCD..

    According to the Demo, I need to specify the Height and Width of the image which means the vertical and horizantal dimensions knowing its dimensions in pixels..

    we have the function

    LCD SetDisplayWindow(u16 Xpos,u8 Ypos,u8 Height,u16 Width) 

    in which should precise the Width and Height of the image.

    So I started by converting my Bitmap image to hexadecimal code and i used this function to display it on the screen but the problem is I have to determine these dimensions to display a clear image.

    For example, I tried to display an image 17*17pixels(width and height)

    and I was able to have a clear image after putting: 

     Height = 16 and Width = 32 in the LCD SetDisplayWindow function.

    Do you know how to determine these dimensions????

    Looking forward to hearing from you

    Regards,

    Nickname12668_O
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:42

    Hi Thomas,

    Could you please post it on the forum in a zip file for everybody.

    It could be usefull for all STM32 forum users.

    Thank you in advance.