EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: madires on June 27, 2020, 03:43:48 pm

Title: ILI9486, SPI and RGB565
Post by: madires on June 27, 2020, 03:43:48 pm
Does someone have experience with using ILI9486 based displays? The datasheet notes that only RGB111 and RGB666 color schemes are available when the SPI interface is selected. But I've seen some code using RGB565 with the SPI interface. So I wonder if the datasheet is correct or not. Unfortunately I don't have an ILI9486 display module with SPI interface for testing and I'd like to keep my module with an 8-bit parallel bus unmodified.
Title: Re: ILI9486, SPI and RGB565
Post by: dave j on June 27, 2020, 04:10:27 pm
Does someone have experience with using ILI9486 based displays? The datasheet notes that only RGB111 and RGB666 color schemes are available when the SPI interface is selected. But I've seen some code using RGB565 with the SPI interface. So I wonder if the datasheet is correct or not. Unfortunately I don't have an ILI9486 display module with SPI interface for testing and I'd like to keep my module with an 8-bit parallel bus unmodified.

Going by this thread on github (https://github.com/juj/fbcp-ili9341/issues/11) the datasheet is correct. See this post (https://github.com/juj/fbcp-ili9341/issues/11#issuecomment-401783271) for confirmation.
Title: Re: ILI9486, SPI and RGB565
Post by: SiliconWizard on June 17, 2021, 06:17:37 pm
Ah, I just happen to be wondering the exact same thing. I have received a couple of those 480x320 panels with an ILI9486 controller, and from the DS, I got the same thing as you did, but I've also seen source code that would still use 16bpp data using SPI. I guess those libs are all bogus?

Have you finally gotten this to work, and if so, what format did you use?
Title: Re: ILI9486, SPI and RGB565
Post by: madires on June 17, 2021, 07:27:38 pm
Seems so. For SPI I use RGB666.
Title: Re: ILI9486, SPI and RGB565
Post by: SiliconWizard on June 17, 2021, 08:09:11 pm
OK, that's what I'm implementing. What clock rate did you use for SPI? From the DS, looks like 16MHz would be the maximum.
Title: Re: ILI9486, SPI and RGB565
Post by: madires on June 17, 2021, 08:30:00 pm
Just 8 MHz, but I wouldn't be surprised if you can go higher than 16 MHz.