Page 1 of 1

gLCD ILI9341 SPI

Posted: Sun Jul 13, 2025 8:38 pm
by peterUA
Hello Matrix. Display gLCD ILI9341 in Flowcode environment. How to remove slowly creeping black screensaver after turning on the device. Very annoying. And how to hang the data transfer rate. On the oscilloscope it is visible that it happens very slowly. Much slower than SPI is capable of at the global frequency of 20 MHz of the chip 18F47K40
Petro

Re: gLCD ILI9341 SPI

Posted: Mon Jul 14, 2025 10:02 pm
by BenR
Hi Petro,

The 18F47K40 can be driven at up to 64MHz using the internal oscillator. That should hopefully give you a fair old speed boost.

Maybe the chip is not running at the speed you think it is. the good old one second flasher test can clarify and ensure you are setup correctly.

https://www.flowcode.co.uk/wiki/index.p ... ED_flasher

Re: gLCD ILI9341 SPI

Posted: Tue Jul 15, 2025 9:07 am
by peterUA
That's not the point. I found out. Matrix applied Bit-Banging

Re: gLCD ILI9341 SPI

Posted: Tue Jul 15, 2025 9:40 am
by medelec35
Hi Petro,
There are two ILI9341's to choose from.
One is dedicated SPI, the other is not!
Have you selected the correct version?
ILI9341.png
ILI9341.png (8.27 KiB) Viewed 3761 times
If you have added the wrong component by accident, select the ILI9341 display on the 2D panel right-click > Selection > Replace...
Then choose the SPI version.
Saves being done manually.

Re: gLCD ILI9341 SPI

Posted: Wed Jul 16, 2025 5:32 am
by peterUA
Oh yeah, that's my mistake. I couldn't run the compilation in FC10 and switched to FC8. Respect Matrix FC10 has been updated and now 16F18877 and display SPI are working.

Re: gLCD ILI9341 SPI

Posted: Wed Jul 16, 2025 8:01 am
by medelec35
I'm glad you are now up and running.
As a side note regarding the Replace option.
If the component you want to replace with doesn’t appear in the Replace window, simply add it to the panel, delete it, and then use the Replace option again.
This lets Flowcode know which component you intend to use.
If the two components aren't compatible, Replace won’t work.