Author Topic: FPGA driver for NHD-1.8-128160EF TFTs  (Read 310 times)

joaBaur

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
FPGA driver for NHD-1.8-128160EF TFTs
« on: June 12, 2018, 08:45:03 AM »
This is the FPGA driver for the NHD-1.8-128160EF TFTs with the ILI9163 driver IC using the 8 bit parallel interface. The basic design is the same as for the NHD-2.4-240320CF project last week

The driver runs on an Arty Z7-20 FPGA board, reads the HDMI IN video signals and outputs a 160x128 pixel area to the connected TFT via IO. So you can connect a HDMI source to the board and the NHD TFT will display a 160x128 chunk of the picture (or a crudely downscaled 320x256 chunk) on the TFT with a frame rate of 200 fps.

Here's the link to the Github repo:

https://github.com/joaBaur/ArtyZ7-20-NHD-1.8-TFT

One strange issue I came across with my test setup (using a NHD-1.8-128160EF-CTXI#-T):
The MADCTL function of the driver (Memory Access Control, determines the orientation/mirroring of the image and the RGB order of the pixels) doesn't work for me. When the init sequence sends the 0x36 MADCTL-command, no matter what data value I send after that, the orientation of the image is always the same and the pixel order is always BGR, like the default 0x00 value that MADCTL is set to after a reset is not updated.

No idea why, maybe an electronic fault of my driver IC's MADCTL register? Other commands work fine, when I send a 0x21 (Display Inversion On) command after the MADCTL cmd+data, the display is inverted as expected, for example.

joaBaur

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
Re: FPGA driver for NHD-1.8-128160EF TFTs
« Reply #1 on: June 13, 2018, 11:58:31 AM »
Alright, the MADCTL issue is resolved - I connected the other 1.8" TFT I have here (a NHD-1.8-128160EF-CSXN#) and MADCTL is working as it should, so I removed the workarounds from my code.

 

Raspberry Pi driver for 1.8" and 2.4" TFT models

Started by joaBaurBoard TFTs

Replies: 2
Views: 592
Last post July 06, 2018, 08:54:55 AM
by deanflyer
NHD-1.8-128160EF-CTXI# problem: becomes pale after using it for some time

Started by fvdhoefBoard TFTs

Replies: 1
Views: 4188
Last post July 31, 2014, 08:55:40 AM
by Michael_L
Writing Character strings to NHD-1.8-128160EF-CTXI#

Started by JeffJwayBoard TFTs

Replies: 3
Views: 4060
Last post July 13, 2016, 09:45:21 AM
by Michael_L
MOVED: Interfacing Newheaven st7789s driver 3.5inch Lcd with iMx6Q SabreAutomotiveBoard

Started by Saurabh_BBoard Graphic LCDs

Replies: 0
Views: 2124
Last post February 13, 2017, 10:58:17 AM
by Saurabh_B
NHD-1.8-128160EF-CTXI#-F has a display buffer?

Started by statelogicBoard TFTs

Replies: 2
Views: 3681
Last post January 09, 2015, 07:47:13 PM
by statelogic