SPI - lcd interface with ILI9341 driver Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Lyris
Posts: 11
Joined: Thu Jun 20, 2019 11:58 am
Has thanked: 2 times

Re: SPI - lcd interface with ILI9341 driver

Post by Lyris »

It is page 38-39 of the datasheet linked by Fxcoder

datasheet link

Lyris
Lyris
Posts: 11
Joined: Thu Jun 20, 2019 11:58 am
Has thanked: 2 times

Re: SPI - lcd interface with ILI9341 driver

Post by Lyris »

Hello,

I would like to change the state of a GPIO between a SPI read and write without inducing any delay. Is it possible ?

Right now I got this using ChibiOS SPI:

https://imgur.com/a/ABu8v2z

GPIOs are too slow to do that. I am ready to do some low level driver if necessary but I need some guidance.

Lyris
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SPI - lcd interface with ILI9341 driver

Post by Giovanni »

You can do that using PAL, GPIO is very fast, I don't understand what you mean with delays.

Giovanni
Lyris
Posts: 11
Joined: Thu Jun 20, 2019 11:58 am
Has thanked: 2 times

Re: SPI - lcd interface with ILI9341 driver

Post by Lyris »

Is it the proper configuration for high speed GPIO ?

Code: Select all

palSetPadMode(GPIOB, DCX_PAD, PAL_MODE_OUTPUT_PUSHPULL | PAL_STM32_OSPEED_HIGHEST);


Is there a function to make a delay of 40ns to make a fast clock ?

Thanks,

Lyris
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: SPI - lcd interface with ILI9341 driver

Post by Giovanni »

There is a delay function in the GPT driver.

Giovanni
Lyris
Posts: 11
Joined: Thu Jun 20, 2019 11:58 am
Has thanked: 2 times

Re: SPI - lcd interface with ILI9341 driver

Post by Lyris »

Hi guys,

I figured out that my LCD what actually not working. :evil:
Seems like miso and mosi of my device are connected together somewhere...

I'll give some relevant feedback as I get my new high quality lcd working.
Post Reply