Recent Posts

Pages: 1 [2] 3 4 ... 10
11
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
12
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

13
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.
14
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
15
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

16
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
17
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
18
Character LCDs / NHD-0208AZ-fsn-GBW-33V3
« Last post by pla.electro on June 11, 2018, 04:49:16 AM »
we are unable to write CGRAM of the display
standard characters are displayed properly on the display
see the code below
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--;
   }
}

19
TFTs / Re: SPI problem with NHD-3.5-320240FT-CSXN-CTP
« Last post by Wiggum on June 11, 2018, 03:55:07 AM »
Hi Ted,

are there any news regarding this issue?
Our customer who will release a series of units with this display is getting a little nervous about it.
On their end, they can't get the MPSSE solution working at all.
Would it be possible to check SPI stability with different setups?

Otherwise, we'd have to look for different solutions right now.

Best regards,

Rainer
20
Thanks Ted.  8)

Today perform more tests, a simple video; https://youtu.be/STYUMvKI_7A
The video
You can download it from this link https://drive.google.com/open?id=1uCh_utiiPVWy4C01Xd7Hyqv1T31byWtL
This file of 1 munute and 21 seconds, only 24,5MBytes

In fact, we have used the special library from our repository; https://github.com/FT81xMania/GD23ZU

Regards.
Pages: 1 [2] 3 4 ... 10