cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 ILI9341 non-arduino example request

L C
Associate II
Posted on April 23, 2017 at 02:47

Hello!

I want to control ILI9341(SPI LCD) by STM32F103C8.

Simple SPI access is ok.

Most example are belong arduino in internet, but I am using EWARM.

Please share your experience to me.

BR

LC

4 REPLIES 4
Posted on April 23, 2017 at 03:17

Googling STM32 ILI9341 dumped a bunch of hits

https://github.com/fagcinsk/stm-ILI9341-spi

 
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on April 25, 2017 at 03:14

Thanks Clive One. 

L C
Associate II
Posted on April 29, 2017 at 11:37

Hi ALL

with ILI9341 it has command & data information via SPI interface.

Are they using same SPI function(push data) and necessary to handle the D/C(Data/Command) pin by myself?

In ILI9341 data sheet, there have 9-bit interface.

I think it like I2C style, one more bit indicate the following data either data or command.

Shall we implement it in STM32?

Please let me know your comment.

LC

________________

Attachments :

ILI9341.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hygv&d=%2Fa%2F0X0000000bAz%2FcixjhTg0VdSF3Ynh8TvFjjxpjNRiGkPKjCJBO8XIJFA&asPdf=false
S.Ma
Principal
Posted on April 29, 2017 at 12:28

There should be also a 8 bit with dedicated pin for command/data.

For STM32F103, the HW supports 8 or 16 bit bitblock transfer. Extra bit done by SW bit banging?

For newer STM32 with FIFO'd SPI, the HW supports 4,5,6...16 bits so the 9 bit mode seems a better fit, and save a pin.