ly947777046
Posts: 1
Joined: Fri Dec 01, 2017 11:59 am

Ask for help:How does pi3 drive the ili9341 LCD screen?

Fri Dec 01, 2017 12:22 pm

I recently bought a raspberry pi3. Because I have a piece of used to STM32F103 LCD screen, so I'm going to use the screen for raspberry pi3, but I looked at a lot of information, find and I used ili9341 pins of the LCD screen, like this:
http://www.alientek.com/product/showpro ... 34#mettab1
How do I drive this screen?

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: Ask for help:How does pi3 drive the ili9341 LCD screen?

Fri Dec 01, 2017 9:27 pm

the ili9341 chip for driving the 320x240 screens can use SPI serial or SPI 16bit parallel. Looking at the link that you sent it looks like that screen is setup for 16 bit parallel coms. Most people use thiese little screens in serial mode so most of the software around uses that. I do think Adafruit does have some libraries for driving it in parallel

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Ask for help:How does pi3 drive the ili9341 LCD screen?

Fri Dec 01, 2017 9:50 pm

OutoftheBOTS wrote:
Fri Dec 01, 2017 9:27 pm
the ili9341 chip for driving the 320x240 screens can use SPI serial or SPI 16bit parallel. Looking at the link that you sent it looks like that screen is setup for 16 bit parallel coms. Most people use thiese little screens in serial mode so most of the software around uses that. I do think Adafruit does have some libraries for driving it in parallel
FTFY
SPI = Serial Peripheral Interface. There is no such thing as parallel SPI.

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: Ask for help:How does pi3 drive the ili9341 LCD screen?

Sat Dec 02, 2017 7:54 am

SPI = Serial Peripheral Interface. There is no such thing as parallel SPI.
This maybe correct but in the specs they refer to it as SPI 16bit transfer and SPI 1 bit transfer. It is the same protocol but you send all 16 bits at once instead of in serail, maybe they should call it PPI (parallel Peripheral Interface).

edit ok I just rechecked the data sheet and it does call it "16-bit Parallel MCU Interface"

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Ask for help:How does pi3 drive the ili9341 LCD screen?

Sat Dec 02, 2017 9:19 am

It might be worth looking at the drivers for the SMI (Secondary Memory Interface) on the Pi. That should be able to provide a 16 bit parallel interface from the GPIOs. There has been a little bit more documentation added about that recently on the Pi github repository.

Return to “General discussion”