2016-10-13 07:56 AM
STM32F429 - LTDC Display Size Limit
The data sheet for the STM32F429 describes the maximum pixel with of the LTDC as 1204 pixels.However,.. other than CubeMX not allowing the value entered for display width, to be > 1024, I can’t see any reason from the data sheet / reference manual why it can’t be programmed to be greater (e.g. 1280 pixels)I want to interface a 1280 x120 pixel LCD to an STM32F429LCD horizontal parameters:H_Sync = 3HBP = 54Active Width = 1280HFP = 54As I see it,.Programming the (horizontal aspects of the) LTDC controller is done via 4 registers.LTDC_SSCR = HSYNC Width(-1) LTDC_BPCR = HSYNC Width + HBP(-1)LTDC_AWCR = HSYNC Width + HBP +Active Width(-1)LTDC_TWCR = HSYNC Width + HBP + Active Width + HFP(-1)The active (display) width of the display being the difference between TDC_AWCR & LTDC_BPCRNone of the limits of the programmable values for these register seems to preclude and active width of 1280 pixels.The horizontal values for the window mapped onto the display are programmed in LTDC_LxWHPCR and appear to be 12 bits wide (i.e. values of 0-4095)WHSTPOS[11:0]: Window Horizontal Start PositionWHSPPOS[11:0]: Window Horizontal Stop PositionThus allowing in theory a window up to 4096 pixels wideAgain, nothing there appears to preclude a window width of 1280 pixels.Unfortunately to try it out will cost me ~ £160 for the display & the time & effort to build a patch for the connection to my hardware, so to save the cost / hassle, only to fail, I’d love someone either tell me if I'm wrong & why, or confirm it is possible.Thanks in advance2016-10-13 09:04 AM
Could you at least sanity check with a scope or logic analyzer?
I'm of the belief that some of the spec is to keep bandwidth numbers in check so people don't have expectations of huge displays. I'd expect the counters/comparators to have a specific bit width, be simple in implementation, and not have other odd hard coded limits.2016-10-13 09:29 AM