简体   繁体   English

使用STM32F429-发现LTDC控制WVGA显示

[英]Control WVGA display with stm32f429-discovery LTDC

I am trying to output some data on the 7 inch TFT-LCD display (MCT070PC12W800480LML) using LCD-TFT display controller (LTDC 18 bits) on STM32F4. 我正在尝试在STM32F4上使用LCD-TFT显示控制器(LTDC 18位)在7英寸TFT-LCD显示器(MCT070PC12W800480LML)上输出一些数据。

LTDC interface setting are configured in CubeMx. LTDC接口设置在CubeMx中配置。 In the program lcd data buffer is created with some values and it's starting address is mapped to the LTDC frame buffer start address. 在程序中,lcd数据缓冲区是使用一些值创建的,并且其起始地址映射到LTDC帧缓冲区的起始地址。

At this moment display doesn't react to data sent by the LTDC. 目前,显示屏对LTDC发送的数据没有反应。 It only shows white and black strips, after i connect ground and power for digital circuit to the 3 volts source. 在我将数字电路的地面和电源连接到3伏电源后,它仅显示白色和黑色条带。 VLED+ is connected to the 9 volts source. VLED +连接到9伏电源。 The VSYNC, HSYNC and CLOCK signals are generated by the LTDC and they match with specified values. VSYNC,HSYNC和CLOCK信号由LTDC生成,并且与指定值匹配。 I measured them on LCD strip, so the connection should be right. 我在LCD显示屏上测量了它们,所以连接应该正确。 I also tried putting pulse on the LCD reset pin, but that doesn't make any sense. 我还尝试在LCD复位引脚上施加脉冲,但这没有任何意义。

The timing setting might be wrong. 定时设置可能不正确。 我当前的设置:

LTDC clock is 33 MHz. LTDC时钟为33 MHz。

Here is the link to the diplay datasheet http://www.farnell.com/datasheets/2151568.pdf?_ga=2.128714188.1569403307.1506674811-10787525.1500902348 I saw some other WVGA displays using the same timing for synchronization signals, so i assume that timings are standard for that kind of displays. 这是diplay数据表的链接http://www.farnell.com/datasheets/2151568.pdf?_ga=2.128714188.1569403307.1506674811-10787525.1500902348我看到了一些其他WVGA显示器使用相同的同步信号时序,所以我认为时序是是这类显示器的标准配置。

Maybe signal polarity is wrong or i am missing something else. 也许信号极性错误,或者我错过了其他事情。 The program i am using now, worked on stm32f429-discovery build in LCD i just changed the timings. 我现在正在使用的程序在LCD上的stm32f429-discovery构建中起作用,我只是更改了时间。 Any suggestions? 有什么建议么?

Thank you. 谢谢。

It could be something else, but I can see a problem with your timing values. 可能还有其他问题,但我可以看到您的计时值有问题。

The back porch for both horizontal and vertical includes the sync pulses, but there must be a sync pulse width. 水平和垂直后沿都包括同步脉冲,但是必须有一个同步脉冲宽度。 My observation is that you have tried to get the total clocks for h = 1056 and v = 525 as per the data sheet by setting the sync pulses to 0. That won't work. 我的观察是,您已经尝试通过将同步脉冲设置为0来根据数据手册获得h = 1056和v = 525的总时钟。这是行不通的。

I would make the hsync pulse 20 and vysnc 10. The total clocks will be the same, but it is not critical that they match the spec sheet. 我将使hsync脉冲20和vysnc10。总时钟将是相同的,但它们是否与规格表匹配并不重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM