Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
TFTs / EVE2 TFT Modules VHDL Coding
« Last post by bivin on October 03, 2018, 04:39:53 AM »
Hi
I'm using NHD-3.5-320240FT-CSXN-CTP. As per FT81x Series Programmers Guide, in " Initialization Sequence during the boot up" section , display list writing is given by below functions.

wr32(RAM_DL+0,CLEAR_COLOR_RGB(0,0,0));
wr32(RAM_DL+4,CLEAR(1,1,1));
wr32(RAM_DL+8,DISPLAY());
wr8(REG_DLSWAP,DLSWAP_FRAME);//display list swap
wr8(REG_GPIO_DIR,0x80|rd8(REG_GPIO_DIR));
wr8(REG_GPIO,0x080|rd8(REG_GPIO));//enable display bit
wr8(REG_PCLK,5);//after this display is visible on the LCD
MCU_SPI_CLK_Freq(<30Mhz);//use the MCU SPI clock upto 30MHz

Kindly let me know what are the equivalent register read/write (w.r.t DS_FT81x.pdf) to implement the above in vhdl.

Thanks

62
Customer Projects / Re: Custom Motorcycle Instrumentation
« Last post by GeorgeE on September 30, 2018, 04:49:55 PM »
thank you for sharing Lassi
63
Another thought:

Does the LCD regulate it's own temperature if the heater is turned on ?? If so, sounds like we can just it on.
64
Is there a recommended temperature for turning on the LCD heater for a NHD-C12864A1Z-FSW-FBW-HTT LCD ??  What about for turning off ??

Is there any reason not to just have the heater on all the time ??  (Other than the increased power consumption.) 

Thanks.

65
Graphic LCDs / Re: Newhaven Display Problems
« Last post by Ted_M on September 27, 2018, 09:20:57 AM »
The Vo contrast pin 3 will need approximately +0.5V to get you in the ballpark to set the contrast level.
It would be best to connect the resistor to the VDD power supply in order to provide voltage to this pin. 

A variable resistor is recommended as this makes it possible to adjust the contrast level with the desired visual setting. Then you may replace the variable resistor with a fixed resistance equal to the value set by the variable resistor.  A variable resistor with a minimum of 10K and maximum of 20k will work to get the voltage supplied to the contrast pin 3 set to approximately +0.5V for optimal contrast.

The circuit board labeling the pin-outs should also match the datasheet as published on our website.  If this is not the case, please send us a picture of the display.

Please let us know if you have any questions.


 
66
Graphic LCDs / Newhaven Display Problems
« Last post by barryflash2727 on September 27, 2018, 12:23:01 AM »
I am a newbe who is attempting to interface with a LCD for the first time. I ordered three Newhaven 2 x 16 displays, part number NHD-0216BZ-FL-YBW.

I am having some trouble getting the thing to display anything. I was told by a Newhaven engineer that if contrast is set correctly that it will light up the first line when power and ground are connected.

I connected the first one according to the pin lables on the board. it flashed some crazy gunk on the display and then went quiet, never to twitch again. I then noticed that the pin marking do not match the data sheet. Upon contacting Newhaven, I was told that the data sheet was correct and to disregard circuit board labeling.

The data sheet calls for a 10~20K variable resistor. I don't have a variable resistor in the shop so connected several resisters and series. I connected the contrast pin to ground throuh 20K of resistors... no display. I connected it to ground through 10K of resistors... no display. I tried it at resistance levels between 10 and 20 K with no display. Any suggestions will be appreciated

I assume that 10~20K, as indicated in the data sheet means a pot with minimum resistance of 10K and maximum resitance of 20K, is this correct?

Thanks for your help
67
TFTs / NHD-1.8-128160EF-CSXN
« Last post by mibeme on September 25, 2018, 05:10:56 AM »
Hi all,

I recently purchased the above display, but I can not make the display work for Arduino Uno. Modify the code as shown below. can you help me?

Code: [Select]
//---------------------------------------------------------
/*
NHD_1_8_128160EF_CTXI_mega.ino
Program for writing to Newhaven Display 1.8 TFT with ILI9163 controller

(c)2013 Mike LaVine - Newhaven Display International, LLC.

        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
*/
//---------------------------------------------------------

// The 8 bit data bus is connected to PORTD of the Arduino Mega2560
// 5V voltage regulator on Arduino Mega has been replaced with a 3.3V regulator to provide 3.3V logic

int DC = 11;      // D/C signal connected to Arduino digital pin 30
int WR = 10;      // /WR signal connected to Arduino digital pin 31
int RD = 9;      // /RD signal connected to Arduino digital pin 32
int RST = 12;     // /RST signal connected to Arduino digital pin 33

// /CS signal tied to ground

void comm_out(unsigned char c)
{
  digitalWrite(DC, LOW);
  PORTD = c;
  digitalWrite(WR, LOW);
  digitalWrite(WR, HIGH);
}

void data_out(unsigned char d){
  digitalWrite(DC, HIGH);
  PORTD = d;
  digitalWrite(WR, LOW);
  digitalWrite(WR, HIGH);
}

void disp(){
  unsigned int i;
  comm_out(0x2C);              //command to begin writing to frame memory
  for(i=0;i<20480;i++)         //fill screen with red pixels
  {
      data_out(0xFF);
            data_out(0x00);
            data_out(0x00);
  }
        for(i=0;i<20480;i++)         //fill screen with green pixels
  {
      data_out(0x00);
            data_out(0xFF);
            data_out(0x00);
        }
        for(i=0;i<20480;i++)         //fill screen with blue pixels
  {
      data_out(0x00);
            data_out(0x00);
            data_out(0xFF);
        }
}

void setup(){

  DDRC = 0xFF;   
  PORTC = 0x00;
  DDRD = 0xFF;
  PORTD = 0x00;
  digitalWrite(RD, HIGH);
  digitalWrite(WR, LOW);
  digitalWrite(RST, LOW);
  delay(150);
  digitalWrite(RST, HIGH);
  delay(150);
 
  comm_out(0x11);              //exit SLEEP mode
 
  delay(100);
 
  comm_out(0x28);              //display off
 
  comm_out(0x26);              //select gamma curve
  data_out(0x04);
 
  comm_out(0xB1);              //frame rate control
  data_out(0x0A);
  data_out(0x14);
 
  comm_out(0xC0);              //power control 1
  data_out(0x0A);
  data_out(0x00);
 
  comm_out(0xC1);              //power control 2
  data_out(0x02);
 
  comm_out(0xC5);              //VCOM control 1
  data_out(0x2F);
  data_out(0x3E);
 
  comm_out(0xC7);              //VCOM control 2
  data_out(0x40);
 
  comm_out(0x2A);              //column address set
  data_out(0x00);                 
  data_out(0x00);                  //start 0x0000
  data_out(0x00);
  data_out(0x7F);                  //end 0x007F
 
  comm_out(0x2B);              //page address set
  data_out(0x00);                 
  data_out(0x00);                  //start 0x0000
  data_out(0x00);
  data_out(0x9F);                  //end 0x009F
 
  comm_out(0x36);              //memory access control
  data_out(0xC8);
 
  comm_out(0x3A);              //pixel format = 18 bit per pixel
  data_out(0x06);                 
 
  comm_out(0x29);              //display ON

  delay(10);
}

void loop(){
  disp();
  delay(1000);
}

Thanks
mibeme
68
Graphic LCDs / NHD-C12864LZ-FSW-FBW-3V3 slow writing
« Last post by AdvAdrian on September 20, 2018, 03:37:59 PM »
I am programming this graphic LCD but when sending to clear the pixels the process is too slow. In the datasheet there is not any command to clear the pixels, Do you have any suggestion to speed up the process ?
69
OLEDs / Connecting the NHD-0420-CW Display to the Evalboard
« Last post by LuikardP on September 20, 2018, 08:46:28 AM »
Hallo Everybody,
i'm trying to connect a NHD-0420-CW Display via I2C to the evalboard NHDev. I connect the the Pins according to the datasheets. See the table below.
Display            Evalboard
1        VSS            1
2        VDD           2
3       REGVdd       37   tied to GND
4       SA0             5
5-6    tied to GND
7       SCL             30
8 and 9 SDA         38
10-15 tied to GND
16     /RES           11
17     BS0  tied to GND
18     BS1  tied to VDD
19     BS2 tied to GND
20    VSS             38
The evalboard starts. I'm able to select the correct Display type but the Display stays black. Is it possilbe to opperate the Display with the Evalboard over I2C? And when where is the error in this assambly?
Thank you for your help
Philipp
70
I am using NHD-320240WG-BoTFH-VZ# graphics display with RA8835A controller. I have developed code for characters of 8x8 pixel size and it's working fine. But I couldn't able to do the same for more than 8x8 size. Is there any sample code available for the same? Or any code to generate customize characters?
Pages: 1 ... 5 6 [7] 8 9 10