Page 2 of 2
Re: SPI - lcd interface with ILI9341 driver
Posted: Tue Jul 02, 2019 2:52 pm
by Lyris
It is page 38-39 of the datasheet linked by Fxcoder
datasheet linkLyris
Re: SPI - lcd interface with ILI9341 driver
Posted: Thu Jul 04, 2019 1:22 pm
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/ABu8v2zGPIOs are too slow to do that. I am ready to do some low level driver if necessary but I need some guidance.
Lyris
Re: SPI - lcd interface with ILI9341 driver
Posted: Thu Jul 04, 2019 1:25 pm
by Giovanni
You can do that using PAL, GPIO is very fast, I don't understand what you mean with delays.
Giovanni
Re: SPI - lcd interface with ILI9341 driver
Posted: Thu Jul 04, 2019 2:04 pm
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
Re: SPI - lcd interface with ILI9341 driver
Posted: Thu Jul 04, 2019 2:09 pm
by Giovanni
There is a delay function in the GPT driver.
Giovanni
Re: SPI - lcd interface with ILI9341 driver
Posted: Thu Jul 11, 2019 9:05 pm
by Lyris
Hi guys,
I figured out that my LCD what actually not working.
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.