gLCD ILI9341 SPI

For general Flowcode discussion that does not belong in the other sections.
Post Reply
peterUA
Posts: 10
http://meble-kuchenne.info.pl
Joined: Sun Nov 10, 2024 4:55 pm
Has thanked: 1 time

gLCD ILI9341 SPI

Post 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

BenR
Matrix Staff
Posts: 1945
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 509 times
Been thanked: 692 times

Re: gLCD ILI9341 SPI

Post 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

peterUA
Posts: 10
Joined: Sun Nov 10, 2024 4:55 pm
Has thanked: 1 time

Re: gLCD ILI9341 SPI

Post by peterUA »

That's not the point. I found out. Matrix applied Bit-Banging

medelec35
Matrix Staff
Posts: 2002
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 672 times

Re: gLCD ILI9341 SPI

Post 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 35 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.
Martin

peterUA
Posts: 10
Joined: Sun Nov 10, 2024 4:55 pm
Has thanked: 1 time

Re: gLCD ILI9341 SPI

Post 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.

medelec35
Matrix Staff
Posts: 2002
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 672 times

Re: gLCD ILI9341 SPI

Post 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.
Martin

Post Reply