cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f4 LCD 1*16

haythem
Associate II
Posted on June 16, 2014 at 15:57

I need to connect an LCD with stm32f4 haw can i do it. I works with keil 

6 REPLIES 6
Posted on June 16, 2014 at 16:43

Probably very much like the 16x2 displays. Find a board schematic and example code, get documentation for the specific display you're talking about, read and digest.

C:\Keil473\ARM\Boards\Keil\MCBSTM32\Blinky\LCD_4bit.c
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
haythem
Associate II
Posted on June 17, 2014 at 12:50

Thank you fo your help I found the  liberty and the LCD.c but that is not work whith stm32f4 discovery

Posted on June 17, 2014 at 16:24

''Not working'' is not the description of a problem I can solve.

What make/model of display are you using? Cite a data sheet.

How have you wired this up to the STM32F4-Discovery, and what changes have you make to the example code to accommodate the differences in your implementation?

There have to be hundreds or thousands of blog posts about people attaching 16x1 or 16x2 type displays to micro-controllers, review some of those.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
haythem
Associate II
Posted on June 18, 2014 at 20:41

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6bo&d=%2Fa%2F0X0000000brj%2Fv3x1yrUzmB.i75.eDrmVBHzEdKcyxh8pJe.XGQTi3QY&asPdf=false
Posted on June 18, 2014 at 21:26

I would be careful with the delay routine, and the sensitivity to the part coming out of reset. I don't particularly like software delay loops, you could define the loop variable as volatile so Keil doesn't optimize it away, or have the delay use a hardware timer/count to achieve the delays/sequencing described in the LCD data sheet.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
haythem
Associate II
Posted on June 19, 2014 at 16:55

Thank you for your help i found a solution using timer and nvic