硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4732|回复: 13
收起左侧

水平同步和时钟配置问题

[复制链接]

32

主题

97

回帖

193

积分

初级会员

积分
193
发表于 2016-1-31 14:33:37 | 显示全部楼层 |阅读模式
我是用429驱动AT070TN92-800x480 液晶屏

  /* Polarity configuration */
  /* Initialize the horizontal synchronization polarity as active low */
  hltdc_F.Init.HSPolarity = LTDC_HSPOLARITY_AL;
  /* Initialize the vertical synchronization polarity as active low */
  hltdc_F.Init.VSPolarity = LTDC_VSPOLARITY_AL;
  /* Initialize the data enable polarity as active low */
  hltdc_F.Init.DEPolarity = LTDC_DEPOLARITY_AL;
  /* Initialize the pixel clock polarity as input pixel clock */  
  hltdc_F.Init.PCPolarity = LTDC_PCPOLARITY_IPC;

1. 通过 上面的图片如何体现出这几个参数全是低电平有效?
2.像素时钟 怎么有的版本是LTDC_PCPOLARITY_IPC参数,有的是LTDC_PCPolarity_IPC 如何通过芯片手册查找这个参数?

Horizontal input timing diagram

Horizontal input timing diagram

Vertical input timing diagram

Vertical input timing diagram
回复

使用道具 举报

32

主题

97

回帖

193

积分

初级会员

积分
193
 楼主| 发表于 2016-1-31 14:37:07 | 显示全部楼层
/* Layer1 Configuration ------------------------------------------------------*/
   /* Windowing configuration */
  /* In this case all the active display area is used to display a picture then :
     Horizontal start = horizontal synchronization + Horizontal back porch = 43
     Vertical start   = vertical synchronization + vertical back porch     = 12
     Horizontal stop = Horizontal start + window width -1 = 43 + 480 -1
     Vertical stop   = Vertical start + window height -1  = 12 + 272 -1      */
  pLayerCfg.WindowX0 = 0;
  pLayerCfg.WindowX1 = 480;
  pLayerCfg.WindowY0 = 0;
  pLayerCfg.WindowY1 = 272;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
通过上面的图片,horizontal synchronization = 1 , Horizontal back porch=16  
Horizontal start = 1 + 16 =17, 这个注释怎么是43呢?
回复

使用道具 举报

32

主题

97

回帖

193

积分

初级会员

积分
193
 楼主| 发表于 2016-1-31 14:39:09 | 显示全部楼层

回 beyondabcd 的帖子

/* Layer1 Configuration ------------------------------------------------------*/
   /* Windowing configuration */
  /* In this case all the active display area is used to display a picture then :
     Horizontal start = horizontal synchronization + Horizontal back porch = 43
     Vertical start   = vertical synchronization + vertical back porch     = 12
.......
/* Layer1 Configuration ------------------------------------------------------*/
   /* Windowing configuration */
  /* In this case all the active display area is used to display a picture then :
     Horizontal start = horizontal synchronization + Horizontal back porch = 43
     Vertical start   = vertical synchronization + vertical back porch     = 12
     Horizontal stop = Horizontal start + window width -1 = 43 + 480 -1
     Vertical stop   = Vertical start + window height -1  = 12 + 272 -1      */
  pLayerCfg.WindowX0 = 0;
  pLayerCfg.WindowX1 = 480;
  pLayerCfg.WindowY0 = 0;
  pLayerCfg.WindowY1 = 272;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
通过上面的图片,horizontal synchronization = 1 , Horizontal back porch=16  
Horizontal start = 1 + 16 =17, 这个注释怎么是43呢?
3.png
4.png
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115668
QQ
发表于 2016-1-31 15:05:33 | 显示全部楼层
1. 早期的是HV同步模式,现在基本都用DE模式,水平同步和垂直同步取高或者取低没有影响。
2.  LTDC_PCPOLARITY_IPC可能是早期的命名吧,都是大写字母,现在是这个
    LTDC_PCPolarity_IPC
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115668
QQ
发表于 2016-1-31 15:07:17 | 显示全部楼层

回 beyondabcd 的帖子

beyondabcd:

/* Layer1 Configuration ------------------------------------------------------*/
   /* Windowing configuration */
  /* In this case all the active display area is used to display a picture then :
     Horizontal start = horizontal synchronization + Horizontal back porch = 43
.......
你给的这个截图看的不太明显啊,可以看我我早期发的这个教程,截图就很容易看出了:
http://www.armbbs.cn/forum.php?mod=viewthread&tid=1958
1.png
回复

使用道具 举报

32

主题

97

回帖

193

积分

初级会员

积分
193
 楼主| 发表于 2016-1-31 20:59:40 | 显示全部楼层

回 eric2013 的帖子

eric2013:

你给的这个截图看的不太明显啊,可以看我我早期发的这个教程,截图就很容易看出了:
http://www.armbbs.cn/forum.php?mod=viewthread&tid=1958


.......

/* Layer1 Configuration ------------------------------------------------------*/
   /* Windowing configuration */
  /* In this case all the active display area is used to display a picture then :
     Horizontal start = horizontal synchronization + Horizontal back porch = 43
     Vertical start   = vertical synchronization + vertical back porch     = 12
     Horizontal stop = Horizontal start + window width -1 = 43 + 480 -1
     Vertical stop   = Vertical start + window height -1  = 12 + 272 -1      */
  pLayerCfg.WindowX0 = 0;
  pLayerCfg.WindowX1 = 480;
  pLayerCfg.WindowY0 = 0;
  pLayerCfg.WindowY1 = 272;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


根据下面几张你教程里的图,
horizontal synchronization = 2
Horizontal back porch = 2
Horizontal start = horizontal synchronization + Horizontal back porch= 2 + 2 = 4
这么往里代数,算出来对吗?
1.png
2.png
3.png
4.png
回复

使用道具 举报

12

主题

59

回帖

95

积分

初级会员

积分
95
发表于 2019-7-17 11:08:00 | 显示全部楼层
本帖最后由 pjzmj2012 于 2019-7-17 16:19 编辑

楼主能提供下工程文件吗?我跟楼主是同一块屏幕。
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115668
QQ
发表于 2019-7-17 11:40:12 | 显示全部楼层
pjzmj2012 发表于 2019-7-17 11:08
楼主能提供下工程文件吗?

参考我们的工程就行

点评

有没有 不用stemwin的例程,光给屏刷个颜色?裸奔的那种  发表于 2019-7-17 16:08
V6开发板配套资料 这个文件夹里面吗?  发表于 2019-7-17 15:23
发一下链接,多谢了  发表于 2019-7-17 15:16
在哪里,没找到。  发表于 2019-7-17 15:15
回复

使用道具 举报

12

主题

59

回帖

95

积分

初级会员

积分
95
发表于 2019-7-20 09:55:45 | 显示全部楼层
因为楼主的屏跟我一样,所以我在问楼主要工程的。
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115668
QQ
发表于 2019-7-20 09:58:46 | 显示全部楼层
pjzmj2012 发表于 2019-7-20 09:55
因为楼主的屏跟我一样,所以我在问楼主要工程的。

看此贴,先将背景层点亮

F429驱动TFT裸屏时LTDC时序配置说明(以V6的7寸驱动为例)
http://www.armbbs.cn/forum.php?m ... 8528&fromuid=58
(出处: 安富莱电子论坛)

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-11 01:52 , Processed in 0.410251 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表