Page 1 of 3

ATMEGA328P ILI9488 hardware SPI not work

Posted: Wed Nov 08, 2023 12:45 pm
by barmaleyka
Hello. With the ATMEGA328P microcontroller, the ILI9488 SPI display does not work hardware SPI, the MK just hangs. The software SPI works, but very slowly.

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Wed Nov 08, 2023 2:36 pm
by medelec35
Hello.
Can you post your fcfx and .c files please.
Have you run Library updates to make sure you are sung the latest components?

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 5:15 am
by barmaleyka
img.PNG
img.PNG (44.48 KiB) Viewed 22061 times
Flowcode1.fcfx
(11.87 KiB) Downloaded 1315 times
Flowcode1.c
(110.11 KiB) Downloaded 1229 times

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 11:28 am
by medelec35
Hello.
Can you try the attached please.
If it works, it's because the O/P is the SS on SPI hardware.
If unconnected or low, it puts the SPI in slave mode and causes it to lock up.
SS must be either connected to a pull up resistor or set output to high.

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 12:27 pm
by barmaleyka
Hello. Yes, the MK is working, but the display does not work, the screen is white.

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 1:07 pm
by medelec35
Sorry, I have just spotted you have PrintNumber, then ClearDispaly straight after.
That means you won't see any chars printed.
Try both of the attached projects

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 1:23 pm
by barmaleyka
Unfortunately both options didn't work

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Thu Nov 09, 2023 5:51 pm
by medelec35
Hello.
I have just ordered a display.
Hopefully, I will then be able to resolve this for you.

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Tue Nov 14, 2023 1:30 pm
by Chadb
Hey, I ordered a 3.5" display that claims to be an ILI9488. Reading the comments on Amazon it is actually a ILI9481. I haven't gotten mine yet but might explain why there are some issues. I am going to try to get one of these working with the ESP32. There are a lot of these on Amazon now, so it would seem that this is going to be an issue for driver support.

https://www.amazon.com/dp/B0BWJHK4M6?re ... tails&th=1

Chad

Re: ATMEGA328P ILI9488 hardware SPI not work

Posted: Tue Nov 14, 2023 4:13 pm
by jgu1
Hi Chad!

I can recommend to use the Ili9488 display with ESP32. Ben have managed to speed these display up and they are really fast. You can also use ST7796 4" and this is the fastest. Have a look here: viewtopic.php?f=3&t=1851

I have some examble with these display as I use as standard setup when I made a new project included touch fuction, I can share with you if you want?


Look forvard to see if Martin is able to speed up with AVR, I know form earlyer these are little slow ;)

Br jorgen