Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Mon Jan 26, 2009 11:24 am 
Offline

Joined: Mon Jan 26, 2009 3:54 am
Posts: 3
Hello Everyone,

I have a Board which is based on AT91SAM9260 to which I have a requirement to connect a ILI9320 based 2.4" TFT Display. While I find many documents related to linux drivers, I couldn't find much information regarding hardware interface. I would appreciate if someone can help me to interface this LCD and recommend necessary changes to bootstarp.

Thanks


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Mon Jan 26, 2009 8:53 pm 
Offline

Joined: Mon Jun 05, 2006 11:57 pm
Posts: 47
I'm not sure I understand the question.

The ILI9320 users manual shows a pretty clear "old style" chip-select, address-sub-select, /WR, /RD, Data-bus interface.

In fact, it has several options; an 18-bit mode, a 16-bit mode, a 9-bit mode, and an 8-bit mode.

Lastly, it even offers an SPI interface. That would offer the easiest way to connect to it, but certainly also the slowest.

If you choose to avoid SPI, the connection mode you choose may depend on whether you're using the 9260 in 16-bit data bus or 32-bit data bus mode.

If you have SDRAM, and you likely do, you'll want to be wary of extending the data bus without buffers.

Is there a specific question, or are you asking if someone has a list of literally what-pins-to-connect-to-what-pins ?


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Tue Jan 27, 2009 4:35 am 
Offline

Joined: Mon Jan 26, 2009 3:54 am
Posts: 3
I am a newbie for SAM and for that matter 32bit Microtrollers. I am trying to interface a New Haven Display which is ILI9320 based whose pins descriptions look simple.

http://www.newhavendisplay.com/index.ph ... cts_id=873

I has 16 data lines (DB0..DB15) which is for the bus interface. /CS , RS , /WR , /RD are for the SPI interface which I don't want to use.

My questions

1. What PIO controller to use on the AT91SAM9260 side and how to make the Linux understand that there is Display available and it is connected to the particular PIO controller so that it loads the drivers when it boots.

2. What precautions I should take in selecting the PIO controller for this purpose to avoid conflicts like the multiplexed pins from Serial Port, SPI, etc.

Thanks


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Tue Jan 27, 2009 5:40 am 
Offline

Joined: Mon Jun 05, 2006 11:57 pm
Posts: 47
Quote:
I has 16 data lines (DB0..DB15) which is for the bus interface. /CS , RS , /WR , /RD are for the SPI interface which I don't want to use.


I'm sorry, but that isn't true.

/CS, RS (which is effectively an address line for selecting between 2 memory-mapped registers), /WR, and /RD are all for the BUS interface.

SPI is formed by SDI, SDO, and an override of /WR which is referred to by the spec as SCL (the SPI clock) as well as as double-use of /CS.

PIO controller?

My apologies - I don't mean to be rude - but is your background primarily PIC, AVR, etc.?

Folks from those background tend to do have no experience with a bus and assume that it means "PIO", especially due to similar naming conventions between some teeny microcontrollers and things like 'D0, D1, D15, ...'. The data bus isn't to be connected to a "PIO port". (At least not in any efficient manner.)

In short - and this isn't something you should design around, you should find some references first; at the very least, read the SMC section of the 9260 users manual.

ILI /RD goes to the 9260 /RD (which doubles as /OE)
ILI /WR goes to the 9260 /WE
ILI /CS goes to any of the 9260 /CS# lines - choose one that doesn't conflict with other features multiplexed on pins that you're using (SDRAM, Ethernet, SPI, whatever.)
ILI D[17:0] go to the 9260 D[17:0], although I'd recommend putting a transceiver on that bus right next to the 9260, tristated if /CS# isn't low and direction determined by /RD and /WR. If you don't, you can quickly generate noise on a bus that's shared and runs very fast for the SDRAM.
ILI RS really ought to go to A2; align the 2 ILI registers on 32 bit boundaries.

Then read the SMC section labelled 'Coding Timing Parameters'. The particular chip select needs to be set up with timing values that fit the ILI part (it's an asynchronous part with listed timing; i.e., after a read attempt, it will place data on the data bus in x nanoseconds, and it will cease asserting the bus y nanoseconds after /CS goes high, etc.)

I'm sorry if this sounds more complex than you'd hoped for. :(


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Tue Jan 27, 2009 7:21 am 
Offline

Joined: Mon Jan 26, 2009 3:54 am
Posts: 3
Thank you for you suggestions. I believe I should leave it to people with experience in this. I would like to see professional commercial support on this. Can you please suggest me about this.

My requirement is attach the above said LCD display to AT91SAM9260-EK board and have linux recognize it.

I would appreciate your help.

Thanks


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Tue Jan 27, 2009 8:16 am 
Offline

Joined: Mon Jun 05, 2006 11:57 pm
Posts: 47
I'm not the right person for you; I'm still trying to figure out how to get 37 hours out of a day. :D

However, there are definitely some excellent folks on this site; I hope one of them contacts you ASAP.

Best of luck!


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Sat Feb 20, 2010 12:38 pm 
Offline

Joined: Wed Feb 17, 2010 11:37 pm
Posts: 2
Hello All

How can i configure linux for At91sam9260 to use with ILI9320 16-bit interface for framebuffer ? Can you give me some information please ?


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Thu Mar 11, 2010 7:36 am 
Offline

Joined: Sat Jun 13, 2009 5:50 pm
Posts: 43
Hi,

ILI9320 SPI driver is in the linux kernel source

/drivers/video/backlight

ili9320.c and ili9320.h

thanks to http://www.simtec.co.uk
:D


Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Fri Mar 26, 2010 10:59 am 
Offline

Joined: Wed Mar 17, 2010 2:45 pm
Posts: 16
-


Last edited by Howimboe on Fri Mar 26, 2010 11:23 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Interfacing a ILI9320 based 2.4" TFT Display to AT91SAM9260
PostPosted: Fri Mar 26, 2010 11:02 am 
Offline

Joined: Wed Mar 17, 2010 2:45 pm
Posts: 16
Did you have any success interfacing this TFT? I'm looking for docs and help to conenct a TFT on my 9260-ek board, in order to know if I really need a 9261 or not (juste want linux display, but nothing very fast or complicated, just basic screen like 2 or 3")

Thank you.

Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: