cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S Discovery firmware - LCD display pinout

admin239955_st
Associate II
Posted on September 15, 2010 at 22:16

Hello

I'm trying to connect LCD display (WH1601A) to the demo board and use firmware SPI module and SPI_SimplexLCD example as base of my code.

But I can't see which PINs (ports) I should use to connect LCD display or where I can select MCU port. I found only ChipSelect and Backlight PINs configuration code (in

https://my.st.com//public/STe2ecommunities/mcu/Lists/STM8SDiscovery/mono__lcd_8h.html

). Could you please help me configure data port of say which port was used in sample program?

Thanks

Dmitry

null
4 REPLIES 4
mmaana
Associate II
Posted on September 16, 2010 at 06:40

Hi, Dmitry!

File mono_lcd.c is part firmwire for demoboard STM8/128-EVAL, LCD use on this board have SPI interfice, as connect this GLCD may see on schematic board (doc UM0842 - 

http://www.st.com/mcu/familiesdocs-113.html

). 

But why SPI? WH1601A not work in SPI mode.

I use 4-bit mode for WH1602 on my STM8S-Discovery and no problems.

Petr.

Regards!

admin239955_st
Associate II
Posted on September 16, 2010 at 08:50

Petr,

Thanks for you answer! I'm novice in MCU programming and firmware would help me with my experiments. I found couple libraries which work with LCD but was thinking firmware using is better way. I found LCD management example which uses SPI and planned modify them a little.

But now I'm going to try with third-party libraries.

Dmitry

mmaana
Associate II
Posted on September 16, 2010 at 09:38

Hi, Dmitry!

If you new in world programming MCU, the fastest and simplest way (IMHO) to your case here

http://atomsoft.wordpress.com/2010/03/08/lcd-on-stm8s-discovery/

 

Regards!

Petr

admin239955_st
Associate II
Posted on September 16, 2010 at 13:38

Petr,

I'm already trying with this example;)

Thanks