y-axis of image is offset : SSD1963 for NHD-5.0-800480TF-ATXL#-CTP

Comments

2 comments

  • Saurabh_B

    This could also have to do with the display either being in Sync or DE mode, or the polarity of the clock.

    We have seen the display shift when a the settings above have been changed, can you confirm whether you are using sync or de mode.
    Also if you are on the rising or falling edge of the pixel clock?

    0
  • davidb

    I started with the default code version and made a few changes

      TFT_Write_Command(0x01);         //Software reset
      delay(120);
      TFT_Write_Command(0xe2);         //set multiplier and divider of PLL
      digitalWrite(RS, HIGH);
      TFT_Write_Data(0x1d);
      TFT_Write_Data(0x02);
      TFT_Write_Data(0x04);
      TFT_Command_Write(0xe0,0x01);    //Enable PLL
      delay(1);
      TFT_Command_Write(0xe0,0x03);    //Lock PLL
      TFT_Write_Command(0x01);         //Software reset
      delay(120);
      TFT_Write_Command(0xb0);    //SET LCD MODE  SET TFT 18Bits MODE
      digitalWrite(RS, HIGH);
      TFT_Write_Data(0x08);     //SET TFT MODE & hsync+Vsync+DEN MODE
      TFT_Write_Data(0x80);     //SET TFT MODE & hsync+Vsync+DEN MODE
      TFT_Write_Data(0x03);     //SET horizontal size=800-1 HightByte
      TFT_Write_Data(0x1f);     //SET horizontal size=800-1 LowByte
      TFT_Write_Data(0x01);     //SET vertical size=480-1 HightByte
      TFT_Write_Data(0xEB);     //SET vertical size=480-1 LowByte  //df  <----- only changed to try and fix the shifting
      TFT_Write_Data(0x00);     //SET even/odd line RGB seq.=RGB
      TFT_Command_Write(0xf0,0x03);         //SET pixel data I/F format=16bit(compact)    <---- changed to 16 bit mode
      TFT_Command_Write(0x36,0x08);         //SET address mode=flip vertical         <---- Changed from 0x09, (flipped vertical)
      TFT_Write_Command(0xe6);      //SET PCLK freq

    I'm not familiar changing "SET TFT MODE & hsync+Vsync+DEN MODE" affects the display so its be left at the default.

    0

Please sign in to leave a comment.