Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
TFTs / Raspberry Pi driver for 1.8" and 2.4" TFT models
« Last post by joaBaur on June 14, 2018, 01:55:15 AM »
So after the FPGA drivers I went for something easier, and connected the TFTs to the Raspberry Pi's GPIOs.

Repo for the NHD-1.8-128160EF TFTs:
https://github.com/joaBaur/RaspberryPi-NHD-1.8-TFT

Repo for the NHD-2.4-240320CF TFTs:
https://github.com/joaBaur/RaspberryPi-NHD-2.4-TFT

Both drivers are native C, they map the main display's internal framebuffer (/dev/fb0) to memory, read the pixels' RGB values and bit bang them to TFT via the GPIOs.

The frame rates are ok, about 20 fps on the 2.4" and 34 fps on the 1.8" display.
32
TFTs / NHDev board and NHD-1.8-128160EF-CTXI#-FT
« Last post by SteveK on June 13, 2018, 05:40:05 PM »
Hi,
I would like to use the NHDev module to evaluate a NHD-1.8-128160EF-CTXI#-FT display.

However, in the list of displays that the NHDev supports, it lists only NHD-1.8-128160TF-CTXL#, which appears to be a bogus number, ie it shows no results if we search for it on the Newhaven site.

Can anyone confirm if the NHD-1.8-128160EF-CTXI#-FT will work with the NHDev module?

Thanks,
Steve
33
TFTs / Re: FPGA driver for NHD-1.8-128160EF TFTs
« Last post by joaBaur 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.
34
I'm trying to send commands and characters to the LCD Screen, and instead of recognizing any of the data coming through via SPI, the screen just prints out the same character that doesn't match any form in the datasheet. This printout happens for every byte that is sent from the Pi to the LCD.

On the oscilloscope and other signal analysis tools, the data looks fine. Our clock speed is under 10kHz, there is definitely data being sent from MOSI, and the chip enable matches up.

I suspect this is some kind of timing issue but we can't seem to figure it out. We're currently using the bcm2835 library for SPI. This problem persists for both a Raspberry Pi Zero W and a Raspberry Pi 3B.

Here is a picture of the LCD Screen characters: https://drive.google.com/open?id=1NL5L29cRPE3PIjEKbWjCc4p9CLdEgsyQ
35
Graphic LCDs / NHD-C12864LZ-FSW-FBW-3V3 correct Vout voltage
« Last post by Spero on June 12, 2018, 11:53:22 PM »
Hi...

I'm using a NHD-C12864LZ-FSW-FBW-3V3 LCD with the following configuration:
  Vdd=3.1V
  1uF caps on the CAPxx and Vx pins (4 x voltage booster circuit)
  SPI mode
  /WR, /RD and C86 = Vdd
  PS = 0V

After initialization, the Vout pin = 1.44V whilst the Vx pins are all lower than this (~1.3V)

What should the Vout pin voltage be - 1.44V seems too low?
The display is completely blank after setting the all points on command (0xA5)

Thanks,
Spero

36
TFTs / FPGA driver for NHD-1.8-128160EF TFTs
« Last post by joaBaur 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.
37
TFTs / Re: SPI problem with NHD-3.5-320240FT-CSXN-CTP
« Last post by Ted_M on June 12, 2018, 08:35:50 AM »
Hi Rainer,

Please email me the source code you are using with the FTDI MPSSE adapter as well as the wiring diagram for the display interface and we will review them to see if we can help determine what is causing the stability issue you are seeing.  tmellenthin@newhavendisplay.com

Best Regards,

Ted
38
TFTs / Re: SPI problem with NHD-3.5-320240FT-CSXN-CTP
« Last post by Wiggum on June 11, 2018, 11:33:25 AM »
... hard to get through.

My problem is not the software layer on the Tiva. That's already working. As I explained before: with an evaluation board from FTDI, this is working perfectly.

I would like to see if _you_ can get the display to work with the MPSSE adapter with the sources _you_ provided.
I adapted your sources from gitbub to have the appropriate parameters for the NHD board. Here, at my place (and at our customer's), this is not working well.
Again, I have to say that the FTDI evaluation boards work perfectly with MPSSE. The complete demo application is running through all stages

Sorry for nagging, but this is quite an important issue.

Best regards,

Rainer

39
TFTs / Re: SPI problem with NHD-3.5-320240FT-CSXN-CTP
« Last post by Ted_M on June 11, 2018, 11:22:44 AM »
Hi Rainer,

Please take a look at the Github libraries posted on this forum by lightcalamar using our EVE2 boards and running with other hardware platforms.
https://www.newhavendisplay.com/NHD_forum/index.php/topic,8447.0.html
These may be of help as a reference to get the SPI working with the Tiva micro. Please let us know if this library is helpful to get you going.

Ted
40
Character LCDs / NHD-0208AZ-fsn-GBW-33V3 (CG ram characters not displayed
« Last post by pla.electro on June 11, 2018, 04:58:45 AM »
Dear sir
we are using NHD-0208AZ-fsn-GBW-33V3 8X2 display we are able to print standard character
but we are unable to print cgram charcter.

see the below code
unsigned char code c_gucPerHr[9]  = {0X14,0X14,0X14,0X17,0X15,0X15,0X15,0X15};

void main()
{
         LCD_Buffer[14] =0x00;
         SetLCDCharPatt(0x40,c_gucPerHr);

}
void SetLCDCharPatt(unsigned char CGRamAdd,unsigned char ChrPatt[8])
{
   unsigned char j;                        

   write4Bitcmd(0x00);
   delay_low();
   
   write4Bitcmd(CGRamAdd); /*Addr. Counter set to CGRAM Addr.*/
   dly1();
   delay_low();
   delay_low();
   
   write4Bitcmd( 0x00);
   delay_low();
   
   for(j=0;j<=7;j++)
   {
      write4Bitdata( ChrPatt[j]);
      dly1();
                  
      delay_low();
   }
}


void write4Bitdata(unsigned char u8_data)
{   
   P0 = (P0 & 0x0F )| ((u8_data) & 0XF0); // Write HI nibble

   LCD_DATAORCMD = 1;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;

   P0 = (P0 & 0x0F )| ((u8_data <<4 ) & 0Xf0); //Write lower nibble
   LCD_DATAORCMD = 1;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();

   LCD_CS = 0;
   
}

void write4Bitcmd(unsigned char u8_cmd)
{
   P0 = (P0 & 0x0F )| ((u8_cmd) & 0xF0); // Write HI nibble
   LCD_DATAORCMD = 0;
   LCD_CS = 1;
   _nop_();
   _nop_();
   
   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;

   P0 = (P0 & 0x0F )| ((u8_cmd << 4 ) & 0XF0); //Write lower nibble

   LCD_DATAORCMD = 0;
   LCD_CS = 1;
   _nop_();
   _nop_();

   _nop_();
   _nop_();
   _nop_();
   LCD_CS = 0;
   
}
void delay_low(void)
{
   unsigned char delay_data;
   delay_data = 0xFF;
   while(delay_data)
   {
      --delay_data;
   }
}

void dly2(void)
{
   unsigned char del;
   del = 0x0A;
   while(del)
   {
      del--;
   }
}

kkinldy guide us to resolve the issue , our production is held up due to the LCD issue.

Regards,

Anushka
Pages: 1 2 3 [4] 5 6 ... 10