my IRQ calls when a driver sends data via SPI

progman.rus
Posts: 3
Joined: Mon Dec 02, 2019 9:37 am

my IRQ calls when a driver sends data via SPI

Postby progman.rus » Sun Jan 05, 2020 5:20 am

Hello. I have a too strange problem.
I have ILI9341 LCD. It works via SPI. ( library name is TFT_eSPI by Bodmer )
I use that pins TFT_MISO ( 5 ), TFT_MOSI( 19 ), TFT_SCLK ( 18 ), TFT_CS ( 23 ), TFT_DC ( 21 ), TFT_RST ( 22 )
it works perfectly and draws without problems.

Also, I have five IRQ functions. They using pins: GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO13, GPIO15.

The problem is: If SPI driver sends data to display for drawing then my interrupts calls.
If I disable IRQ during drawing then all is ok.
usually calls IQR of GPIO15 and GPIO26 ( GPIO15 most often ), but other calls too, but more rarely.

ESP_Sprite
Posts: 3106
Joined: Thu Nov 26, 2015 4:08 am

Re: my IRQ calls when a driver sends data via SPI

Postby ESP_Sprite » Mon Jan 06, 2020 1:25 am

I honestly don't quite get what you want us to do about it... seems you already found somewhat of a working solution (disable interrupts) and you're not saying what your additional problems are with that, nor do you post any code so we can look if it makes sense.

Who is online

Users browsing this forum: mikelisfbay and 12 guests