cancel
Showing results for 
Search instead for 
Did you mean: 

how can i use LCD 4*20 in IAR with CMSIS?

hossein hosseini
Associate II
Posted on October 30, 2017 at 09:18

hi.

i want to use LCD 4*20 in IAR with CMSIS  , but i didn't found any library for this.

and if i dont want to write a library for lcd , what do i do ?

where do i can found this library?

or shall i write this library?

or if i want to get like this library , where can i found them?

thanks.

8 REPLIES 8
S.Ma
Principal
Posted on October 30, 2017 at 09:44

Can you be more specific? 4x20 LCD even on google will show many various parts available.

I was using a 2x20 char by SPI (GPIO+SW) from Ampire, and created a simple init and printf for it, years back.

Imen.D
ST Employee
Posted on October 30, 2017 at 14:59

Hello

hosseini.hossein

,

Please provide more details about your case and the device you are using, so that it will be easier to help/answer you.

Kind Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Andrew Neil
Evangelist III
Posted on October 30, 2017 at 16:56

i want to use LCD 4*20 in IAR with CMSIS

The LCD neither knows nor cares what processor you have, and what tools you use to program it.

The process will be the same whatever processor and tools you use.

The only thing that's specific to the chip is how to use the IO lines; ie,

  • set an output line high
  • set an output line low
  • read an input line

You can learn how to do those things with simple LEDs &  switches!

Posted on October 30, 2017 at 19:01

I think the 16x2 display code from things like Keil would work in IAR with very minimal changes.

Determine WHAT controller the LCD has, then Google that, should dump out hundreds of examples that can be ported with minimal effort, and a basic understanding of the GPIO initialization/control specific to the STM32 family.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
hossein hosseini
Associate II
Posted on October 31, 2017 at 11:05

hi all.

oh, i'm sorry that i forgot to say which lcd i use that. and thanks for your answer.

i use hd44780 lcd 4*20 and stm32f103re  with IAR IDE and spl library.

i know gpio , but i dont know if i want to use a

module to connect the stm  like lcd, what do i do? write the base code for lcd  or no , there is a library for lcd and where do i can found it ??

thanks.

Posted on October 31, 2017 at 11:36

Google or Qwant on 

stm32 hd44780 example

It seems there are lots of results out there.

Imen.D
ST Employee
Posted on October 31, 2017 at 14:02

Hi,

Have a look to this

http://www.st.com/content/ccc/resource/technical/document/application_note/07/1a/31/66/f9/8e/46/d3/DM00046039.pdf/files/DM00046039.pdf/jcr:content/translations/en.DM00046039.pdf

it may helps you as talks exactly about this HD44780 LCD: Application note Interfacing an HD44780 2-line LCD display with the STM8.

Kind Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on October 31, 2017 at 14:24

KIC8462852 EPIC204278916 wrote:

It seems there are lots of results out there.

Indeed. 

The HD44780 has been available for around 30 years now!

https://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller