Search found 11 matches

by Lyris
Thu Jul 11, 2019 9:05 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

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.
by Lyris
Thu Jul 04, 2019 2:04 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

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
by Lyris
Thu Jul 04, 2019 1:22 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

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 ...
by Lyris
Tue Jul 02, 2019 2:52 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

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

datasheet link

Lyris
by Lyris
Tue Jul 02, 2019 2:12 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

Ok I thought I could send more clock cycle and discard some data.

I found out that ChibiOS got some contrib for ili9341 driver:

Probably worth spending time to have a look at :)

https://github.com/ChibiOS/ChibiOS-Contrib/blob/master/os/various/devices_lib/lcd
by Lyris
Tue Jul 02, 2019 1:30 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

Hello guys,

I think my lcd is internaly hard-wired to work without chip select pin and only in 8 bits mode with mosi and miso wires since the chinese seller provides the following informations:


Feature:

Size: 2.4 inches
Drive chip: ILI9341
Touch type: without touching
Resolution: 240*320 ...
by Lyris
Tue Jun 25, 2019 8:02 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

Re: SPI - lcd interface with ILI9341 driver

Ok I'll do that with GPIO thanks.

Lyris
by Lyris
Mon Jun 24, 2019 5:10 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver
Replies: 15
Views: 11184

SPI - lcd interface with ILI9341 driver

Hello,

I would like to read the status of a lcd with a SPI 5 wire bus. The datasheet gives:

https://imgur.com/a/dHOGWJc

https://imgur.com/a/dHOGWJc

Question 1, should I have a rx buffer of size 32 and discard the 1 data bit during the dummy cycle with the spiStartIgnore ...
by Lyris
Thu Jun 20, 2019 1:08 pm
Forum: General Support
Topic: i2c SDA and SCL stuck in 0 state
Replies: 4
Views: 5002

Re: i2c SDA and SCL stuck in 0 state

Make sense, thank you.
by Lyris
Thu Jun 20, 2019 12:54 pm
Forum: General Support
Topic: i2c SDA and SCL stuck in 0 state
Replies: 4
Views: 5002

Re: i2c SDA and SCL stuck in 0 state

Hi Giovanni,

No the board is not connected to anything but the logic analyzer. I just wanted to check the signals.

Lyris