Newhaven Display Forum

Newhaven Products => TFTs => Topic started by: jmag999 on August 31, 2015, 05:08:06 AM

Title: NHD-5.0-800480TF-ATXL-CTP Shifted Right
Post by: jmag999 on August 31, 2015, 05:08:06 AM
I see other posts about this but no resolution.  I used the values from the datasheet, but my display is shifted right by about 20-30 pixels.  I am using an STM32F7 with the following settings.  I verified most of the timing.  Do my values look correct?

/**
  * @brief  NHD800480 Size 
  */   
#define  NHD800480_WIDTH    ((uint16_t)800)             /* LCD PIXEL WIDTH            */
#define  NHD800480_HEIGHT   ((uint16_t)480)             /* LCD PIXEL HEIGHT           */

/**
  * @brief  NHD800480 Timing 
  */   
#define  NHD800480_HSYNC            ((uint16_t)48)      /* Horizontal synchronization */
#define  NHD800480_HBP              ((uint16_t)88)     /* Horizontal back porch      */
#define  NHD800480_HFP              ((uint16_t)40+0)      /* Horizontal front porch     */
#define  NHD800480_VSYNC            ((uint16_t)3)       /* Vertical synchronization   */
#define  NHD800480_VBP              ((uint16_t)32)      /* Vertical back porch        */
#define  NHD800480_VFP              ((uint16_t)13+0)      /* Vertical front porch       */
Title: Re: NHD-5.0-800480TF-ATXL-CTP Shifted Right
Post by: jmag999 on August 31, 2015, 05:14:46 AM
I found these values elsewhere on the forum, which seem to work for me:

display-timings {
+         native-mode = <&timing0>;
+         /* Settings for NHD-5.0-800480TF-ATXL#-T: */
+         timing0: 800x480 {
+            clock-frequency = <30000000>;
+            hactive         = <800>;
+            vactive         = <480>;
+            hback-porch     = <40>;
+            hfront-porch    = <40>;
+            hsync-len       = <48>;
+            vback-porch     = <29>;
+            vfront-porch    = <13>;
+            vsync-len       = <3>;
+            hsync-active = <0>;
+            vsync-active = <0>;
+         };

Not sure why some of these numbers don't match the datasheet.