PDA

View Full Version : code examples / libraries for ILI9320 2.8" TFT LCD Module



longpole001
- 18th February 2013, 03:25
Hi guys , look for some pic basic examples / interface for using this LCD graphic module
, recommendations for pic chip to best use

cheers

sheldon

Chirpy
- 18th February 2013, 11:58
try checking this out, it should help a bit with code and such
http://triton9.wordpress.com/2011/11/28/picbasic-and-the-saa1064-seven-segment-module/

Jerson
- 18th February 2013, 13:57
Sorry Chirpy, that is nowhere close to what Sheldon is looking for. His LCD is ILI9320 a-Si TFT LCD Single Chip Driver. 240RGBx320 Resolution and 262K color.

This is surely something that can be driven by almost any processor; but, if you want real world speeds, nothing less than a DSPIC or ARM core probably with DMA support will help.

Sphere
- 18th February 2013, 23:04
Try this.

http://www.myamicus.co.uk/content.php?324-Using-the-Amicus18-Colour-Graphic-LCD-Shield

Its ment for another language but you can find the int values to setup the display.

Hope it helps Sphere.

longpole001
- 19th February 2013, 00:41
thanks Sphere , some very good starting point to run from.

Was originally just looking to put simple txt and some color buttons for options for touch panel input for the application
was looking to use some on hand existing 12F1825 32mhz pics for a starting point for the prototype

The concern that i had is that interface preference is using asigning pins for SPI interface for LCD and other pins for spi 2 for the touch input ,
but if the graphics updating is limited to simple text , i thought that this PIC would be ok ???


slill looking at how / what pins are required

Sphere
- 19th February 2013, 07:51
The main problem with using a colour graphic display is the abilty to redraw the display fast without you seeing the display update. Each pixel has to have an RGB value sent to it,so with 320x240 resolution you would need to send 230400 bytes to redraw the entire display. So I would recomend using a 64Mhz pic and the paralell interface in 8bit mode on the display for speed. These displays dont have any built in fonts so you will have to make your own.

Sphere.

longpole001
- 20th February 2013, 00:33
have found some code example that only update the screen where it has changed eg a button pressed area and text area of that screen , but the faster the pic the more u can do , thinking there maybe an advantage in buying a purpose based pic module that is ready to use as far as connections go , any sugestion on that approch

display example http://www.ebay.com.au/itm/350678115830?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649#ht_4540wt_906

Ioannis
- 20th February 2013, 07:17
The LCD is really a bargain.

But in any case you need a really fast controller to update the screen. Also you may need to read data from the SD card and then update the LCD. So more time needed.

Microchip is supporting such LCDs but I think on the PIC32 series. Wonder why now?

And a last thing. Using 8 bit or even better 16 bit interface is a must in this case. SPI? I would not think about it.

Ioannis

Sphere
- 20th February 2013, 17:13
Mikroe has a some displays broken out on to a pcb but they use a different controller.

http://www.mikroe.com/add-on-boards/display/

Or if you want an all in one dev board.

http://www.mikroe.com/mikromedia/pic18fj/

I have this board and it works great. It's a bit of a fiddle to get it going but once you have mapped out all of the pins to the various on board devices it works. The touch panel uses the adc of the pic so you will have to write a bit of code to read it. The display uses an 8bit interface so you can just use standard BMP images for your graphics. The display you link to uses a 16 bit interface so any images will have to be converted to 16bit (eg.5bits red 6bits green 5bits blue) where’s a standard BMP image is 24bit (eg.8bit red 8bit green 8bit blue) so no need to convert.

Hope it helps Sphere.

longpole001
- 21st February 2013, 00:14
cheers guys , the info has been good , ill look further into both the boards listed , not ever used the larger pics (pic32) as yet , clearly there is bit more to consider when using this type of display from my experiences with standard lcd i have used in the past

oufriiLeout
- 6th June 2013, 08:50
There is a PIC32 BASIC 2.8" TFT Dev Kit (ILI9325) that you might want to take a look at.
http://shop.aiscube.com/Microcontrollers/BCore-PIC32/BCore-PIC32-BASIC-2.8-TFT-Graphics-Development-Kit
Everything's already configured. 16bit parallel interface, microSD support, on-board accelerometers, a wav player, as well as Servo Motor support.
Source code given in tutorials.
Apparently its on sale now for about US$79, inclusive of worldwide free shipping.
It's worth a look.