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


  • 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:

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.


  • 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: 2465
Last post July 06, 2018, 08:54:55 AM
by deanflyer
protecting NHD-1.8-128160EF-CTXI# from ESDs on a battery powered application

Started by tsmrndBoard TFTs

Replies: 0
Views: 255
Last post May 29, 2019, 10:49:19 PM
by tsmrnd
NHD-1.8-128160EF-CTXI# problem: becomes pale after using it for some time

Started by fvdhoefBoard TFTs

Replies: 1
Views: 5526
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: 5359
Last post July 13, 2016, 09:45:21 AM
by Michael_L
Voltages and Power_Control registers with NHD-1.8-128160EF-CSXN#-F

Started by qfsasmBoard TFTs

Replies: 1
Views: 827
Last post February 19, 2019, 11:23:11 AM
by Sergio_M