P3T3
Posts: 5
Joined: Wed May 15, 2013 11:14 am

240x400 LCD with integrated ILI9327 controller

Tue May 21, 2013 1:53 pm

I am trying to make a driver for TFT LCD 240x400 with integrated ILI9327 controller. It is LCD from ZTE U733 mobile phone with developer plate. It provides 32 pins connector with 16bits data bus and other driving signals.

At this time I have working interface ( same as this one : http://valdodov.com/index.php?show=hardware&item=1 ) built on breadboard. It seems it is working but I have problems with kernel module for ILI9327. I have downloaded datasheet and managed some settings (exit from sleep, setting framerate and etc.).

I am stuck on translating framebuffer memory addressing into LCD internal memory. When starting X server I can see driver is writing only to few top lines in random shape.

Can anybody help me to solve this? There is my driver http://pastebin.com/DFLm0rLX

Thanks a lot Petr

notro
Posts: 693
Joined: Tue Oct 16, 2012 6:21 pm
Location: Drammen, Norway

Re: 240x400 LCD with integrated ILI9327 controller

Tue May 21, 2013 4:48 pm

In this case I would have written a small program that initializes the display and fills the screen with a color.
When that is working, I would proceed to the driver.
That's what I did when I wrote the driver for the Adafruit 2.2" display.
I used https://raw.github.com/torvalds/linux/m ... dev_test.c as a spidev code template.
When I wrote the driver for the Nokia 3310 display I just wrote directly to the spidev device
echo -ne '\x00\x00' > /dev/spidev0.0

FBTFT project: https://github.com/notro/fbtft/wiki

P3T3
Posts: 5
Joined: Wed May 15, 2013 11:14 am

Re: 240x400 LCD with integrated ILI9327 controller

Wed May 22, 2013 3:01 pm

Inspired by the notro's hint and with my ideas I have wrote small extension to my framebuffer driver to discover how LCD's memory organized. In cooperation with datasheet for ILI9237 driver I have managed how it works.

At this point I have modified framebuffer driver which during init process fills LCD memory with "random colours". You can see it on attached image below.
LCD.jpg
LCD.jpg (51.03 KiB) Viewed 5492 times
Next step will be to translate framebuffer blocks mapping to LCD memory... Keep fingers crossed ;)

P3T3
Posts: 5
Joined: Wed May 15, 2013 11:14 am

Re: 240x400 LCD with integrated ILI9327 controller

Wed Jun 05, 2013 12:34 pm

Finally managed framebuffer driver for ZTE U733 LCD
zteu733fb.jpg
zteu733fb.jpg (60.7 KiB) Viewed 5206 times
I am using notro's FBTFT driver but it is very slow at this time :-(

dROb
Posts: 10
Joined: Mon Dec 22, 2014 7:48 am
Location: Moscow, RU

Re: 240x400 LCD with integrated ILI9327 controller

Thu Dec 25, 2014 4:42 pm

Hope someone still reads this :)

Could you please share the connection diagram or at least tell me how do you interface the ILI9327? Are you using 16Pins for all 16bits (and how do you do this with PI), or you are using SPI?

I've got the display like yours, and it is working with Arduino (with this "16pin mode", do not know the right name). As far as I see from datasheet - it can also work in SPI mode, which will be great!

Return to “Other projects”

Who is online

Users browsing this forum: No registered users and 15 guests