Hello.
I wish to update some numerical parameter on a display ILI9341 as fast as possible with PIC24F16KA101 running at 32 MHz.
With a simple program that write the same word in different combinations of R-G-B colours just for a speed test and using software SPI (if I'm not wrong), I measure a clock frequency of ~ 900 KHz and the result isn't so good.
This display should operate at a much higher speed; I've seen some web videos with impressive graphical updating speed with arduino perhaps. I saw some other posts about that "issue" but I don't know what I can do to get it working faster. For example there is a post where Leigh suggest removing some instructions in the PIC16BIT_CAL_SPI.c file ...
https://www.matrixtsl.com/mmforums/view ... 250#p85250
... but it seems to allow only a modest speed increase of 20% or similar (not tested yet) but I hope to jump to a clock of 5 - 10 MHz if it is possible.
Maybe some wrong SPI settings or wrong project options?
Any suggestion ?
Anotgher issue: the macro Print " " useful to delete text from the display, seems not to work.
Thanks and best regard
Rov
ILI9341 SPI (slow) speed with PIC24F16KA101
Moderator: Benj
ILI9341 SPI (slow) speed with PIC24F16KA101
- Attachments
-
- ILI9341_Test.fcfx
- (15.94 KiB) Downloaded 138 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ILI9341 SPI (slow) speed with PIC24F16KA101
Hi Rov,
Have you tried the SPI version of the component that uses the SPI hardware rather then a bit banged SPI interface. This should run a air bit quicker for you.
Have you tried the SPI version of the component that uses the SPI hardware rather then a bit banged SPI interface. This should run a air bit quicker for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: ILI9341 SPI (slow) speed with PIC24F16KA101
Hi Ben
So the component named "GLCD (ILI9341)" is a software SPI component and the "GLCD (ILI9341 SPI)" is the Harwdare SPI one ?
I tried the Hardware version as you suggested and the clock was ~ 3 MHz, a good improvement.
Thanks.
But in that way I'm forced to use PIC's Pin 16 for Data and Pin 15 for Clock (is it true?) and I should use Pin 15 for HLVDIN functions ...
Ad I also loose the possibility to use Pin 17 reserved for "Miso" even if I don't need that function with the Display...
And what can I do for the other problem (Print " " does not work)
Thanks and regards
Rov
So the component named "GLCD (ILI9341)" is a software SPI component and the "GLCD (ILI9341 SPI)" is the Harwdare SPI one ?
I tried the Hardware version as you suggested and the clock was ~ 3 MHz, a good improvement.
Thanks.
But in that way I'm forced to use PIC's Pin 16 for Data and Pin 15 for Clock (is it true?) and I should use Pin 15 for HLVDIN functions ...
Ad I also loose the possibility to use Pin 17 reserved for "Miso" even if I don't need that function with the Display...
And what can I do for the other problem (Print " " does not work)
Thanks and regards
Rov