Atxmega - ILI9341

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Atxmega - ILI9341

Post by slavaag7 »

Hello
the problem is the slow download of ili9341 25-30 seconds.
atmega - fast
stm - fast
atxmega - slowly.
Is it a feature of atxmega?
What can I do?
Checked in the 'iron', the simulation is all right.
Attachments
ILI9341_ATXmega.fcfx
(8.61 KiB) Downloaded 172 times

User avatar
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: Atxmega - ILI9341

Post by Benj »

Hello,

Have you tried the 1 second flasher test on the ATXMEGA to confirm it is running at the speed you think it is.

https://www.matrixtsl.com/wiki/index.ph ... ED_flasher

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

Checked
changed the frequency in general options, led flashes on
Different. 1mhz faster than 20mhz slowly
included as in the project, the blinking of the led depends on
ili9341. Turned off the ili9341 componet, led flashes depending on the frequency exhibited.
The ili9341 component delays execution,
as if the delay is set.
Attachments
ILI9341_ATXmega.fcfx
(10.02 KiB) Downloaded 153 times

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

The download of the display does not depend on the frequency on display.

User avatar
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: Atxmega - ILI9341

Post by Benj »

Hello,

It sounds like the micro is running a lot slower then you think it is. Are you using a crystal or are you using the internal oscillator. How are you setting the config bits of the device, maybe these need changing?

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

There is no external quartz
I thought the internal RC generator is enabled software.
Insert on C? what would include an internal RC?
In project options, the configuration is empty.

User avatar
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: Atxmega - ILI9341

Post by Benj »

Hello,

It looks like the default internal oscillator is set to 2MHz. It also looks lik eyou can change to a 32MHz clock but it looks like it's more then a single line of code.

Refer to section 7 in the datasheet here for more information.
http://ww1.microchip.com/downloads/en/D ... oc8077.pdf

Let us know how you're getting on.

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

Benj
Hello,
Found the code to turn on the internal generator
I ask you to look and listen to the advice.
It works fast.
I found another site where the inclusion of external quartz is described, I will study, I will write a check.
Attachments
ILI9341_ATXmega.fcfx
(10.61 KiB) Downloaded 173 times

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

Hello,
Please let us know what you think about Box C. Your advice is needed.
In a project, two timers in one cycle slow down
Program execution. As if insert C is not working.
Sorry for the translation.

slavaag7
Posts: 14
Joined: Wed Mar 21, 2018 7:20 pm
Location: Ekaterinburg
Been thanked: 3 times

Re: Atxmega - ILI9341

Post by slavaag7 »

Another C code.
Works.
Attachments
ILI9341_ATXmega.fcfx
(11.35 KiB) Downloaded 168 times

Post Reply