Hi all,
I'm a little confused due to the general ambiguity and lack of information that ST like to introduce.
I'm currently trying to get this
https://www.newhavendisplay.com/specs/NHD-5.0-800480TF-ATXL.pdf display to work on the LTDC module on the STM32H743ZI. Page 45 of this
https://focuslcds.com/content/ILI6122.pdf data sheet gives the full timings for the screen.
I have images on the screen but they are not perfect and only possible with strange timing values for the horizontal signals.
First, ST like to confuse things by adding up the timings across some variables in the struct that configures the LTDC module. If I take the numbers from the data sheet for the display controller and enter them into cube I get the wrong timings output on the HW. So based on the HW I adjust the numbers in the struct so they are correct in real life. For my 800x480 screen this is as follows:
hltdc.Init.HorizontalSync = 5;
hltdc.Init.VerticalSync = 5;
hltdc.Init.AccumulatedHBP = 45;
hltdc.Init.AccumulatedVBP = 23;
hltdc.Init.AccumulatedActiveW = 845;
hltdc.Init.AccumulatedActiveH = 504;
hltdc.Init.TotalWidth = 865;
hltdc.Init.TotalHeigh = 550;
However this configuration only results in a black screen whatever I try to display. But while losing hope I started playing with the numbers. I found if I increase the
AccumulatedActiveW
variable to 886 or above the screen works however the image is offset the screen to the left by about the amount I increase this variable by ~30 pixels (I can change this variable a lot and offset doesn't change). Changing this variable is just increasing the front porch which (from the data sheet) doesn't seem to be very fussy.
Does anyone have any experience or pointers that can give me?
Many thanks
George