Forum: FPGA, VHDL & Verilog How to use FPGA to drive TFT LCD


von Cliff W. (cliff)


Rate this post
useful
not useful
How to use FPGA to drive TFT LCD?

von Achim M. (minifloat)


Rate this post
useful
not useful
Which TFT?
TFT directly or TFT with controller?
Which FPGA?
What do you want to achieve, what's the surrounding project, ...?

br,mf

von piece of cake (Guest)


Rate this post
useful
not useful
Cliff W. wrote:
> How to use FPGA to drive TFT LCD?


Just generate the correct timings, similar to VGA or HDMI.
https://www.fpga4fun.com/HDMI.html

For details plz consult 'your' TFT panel datasheet.

von Cliff W. (cliff)



Rate this post
useful
not useful
I have two TFT LCDs, one screen from Adafruit and one from Stone. I want 
to implement the most basic functions, initialize the LCD, display RGB 
colors and display pictures.
I am uploading the data sheet as an attachment.

von Chris K. (Guest)


Rate this post
useful
not useful
So you have two displays with completely different control logic. The 
first one is only a display for which you would have to implement the 
basic control logic inside the FPGA. The second one is basically a 
display already connected to a microcontroller where you can load 
images, buttons, etc via an external software an then only need some 
basic commands via a serial interface to draw on the display.

von Lothar M. (lkmiller) (Moderator)


Rate this post
useful
not useful
Cliff W. wrote:
> I want to implement the most basic functions, initialize the LCD,
> display RGB colors and display pictures.
... and play films in 4K.

> I have two TFT LCDs ...
> I want to implement the most basic functions
On both of them? Or only on the "easier" one? If that, then I would 
recommend the YX700WV03, because you simply must connect some wires and 
generate the fairly easy timing from page 7..9 of the data sheet.

The second ist not "a display", but instead a complete SOM connected to 
the display. Theres no need for a FPGA to solve the tasks.

: Edited by Moderator
von Cliff W. (cliff)


Rate this post
useful
not useful
Chris K. wrote:
> So you have two displays with completely different control logic.
> The
> first one is only a display for which you would have to implement the
> basic control logic inside the FPGA. The second one is basically a
> display already connected to a microcontroller where you can load
> images, buttons, etc via an external software an then only need some
> basic commands via a serial interface to draw on the display.

Okay, I will use the first TFT LCD.

von Cliff W. (cliff)


Rate this post
useful
not useful
>> I have two TFT LCDs ...
>> I want to implement the most basic functions
> On both of them? Or only on the "easier" one? If that, then I would
> recommend the YX700WV03, because you simply must connect some wires and
> generate the fairly easy timing from page 7..9 of the data sheet.

I think you are right, I will be using the first TFT LCD.

von W.S. (Guest)


Rate this post
useful
not useful
Lothar M. wrote:
>> I have two TFT LCDs ...
>> I want to implement the most basic functions
> On both of them? Or only on the "easier" one? If that, then I would
> recommend the YX700WV03, because you simply must connect some wires and
> generate the fairly easy timing from page 7..9 of the data sheet.

You also need a rather fast RAM for your project, which holds the data 
for each pixel.

Because the actual display is a 18..24 bit type, you would need to 
decide, if you want to reserve 16 or 32 bit of RAM for a pixel.

My recommendation is 16 bit: 5 bit for red and blue, each, and 6 bit for 
green. This is the usual 565 format (I do know from Windows CE).

The actual problem ist the access by your microcontroller: µC-FPGA-RAM. 
This needs to be transparent to the access RAM-FPGA-TFT. Keep in mind, 
that the pixel clock will be around 30..40 MHz, so you will need to 
establish 2 different accesses in your FPGA, each in a 15..20 ns 
timeslot.

Because the TO asked such questions, I think, it would be better to use 
a µC with a builtin TFT-peripheral, working by DMA on a external SDRAM. 
There are useful chips in the market: LPC4088, some LPC17xx and similar.

W.S.

von Cliff W. (cliff)


Rate this post
useful
not useful
This sounds very professional, I'll take your advice and start learning 
more about FPGAs! Thank you very much.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig