主题 : 5.6" LCD AT056TN52 and mini2440 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 5472
精华: 0
发帖: 4
金钱: 40 两
威望: 40 点
综合积分: 8 分
注册时间: 2009-04-24
最后登录: 2009-05-10
楼主  发表于: 2009-05-06 21:54

 5.6" LCD AT056TN52 and mini2440

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)
Sorry I don't speak Chinese. So bear with me.

I want to drive 5.6 inch LCD (AT056TN52) from mini2440 (in fact it is  micro2440 plus development board). I tried various settings as suggested by various postings on the internet. But I am not successful. The screen works but lot of lines appears on the screen. Could anybody please help me.

thanks and regards,
[ 此帖被simma在2009-05-06 22:33重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-06 23:26
I don't have datasheet for AT056TN52. Would you please upload it to the BBS? In addition, please paste your source code for configuration S3C2440A framebuffer driver here.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5472
精华: 0
发帖: 4
金钱: 40 两
威望: 40 点
综合积分: 8 分
注册时间: 2009-04-24
最后登录: 2009-05-10
2楼  发表于: 2009-05-07 09:24
AT056TN52.rar (271 K) 下载次数:80 Here is the datasheet of AT056TN52.

The config portion is

#elif defined(CONFIG_FB_S3C2410_TFT800480)
#define LCD_WIDTH 640
#define LCD_HEIGHT 480
#define LCD_PIXCLOCK 40000

#define LCD_RIGHT_MARGIN 47
#define LCD_LEFT_MARGIN 15
#define LCD_HSYNC_LEN 95

#define LCD_UPPER_MARGIN 32
#define LCD_LOWER_MARGIN 9
#define LCD_VSYNC_LEN 1


I have made use of CONFIG_FB_S3C2410_TFT800480 but changed the parameters.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-05-07 17:42
I think this issue may be cuased by either incorrect voltage supply of LCD on hardware or incorrect LCD parameters settings on software.
It should be a 3.3V voltage supply  for LCD panel and 5V for backlight according to the datasheet?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-05-07 17:46
which development board are you using? micro2440sdk or custom board made by yourself? would you please upload its schematic?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5472
精华: 0
发帖: 4
金钱: 40 两
威望: 40 点
综合积分: 8 分
注册时间: 2009-04-24
最后登录: 2009-05-10
5楼  发表于: 2009-05-07 20:54
I am using micro2440 SDK.

As for the voltage, the same board works with 800x480 LCD (AT070TN83) which has similar specs.

Moreover, the display works meaning I can see images but lot of noise lines on the left side of the display panel. So I want to get rid of these lines. Looks like I am not setting the correct values. Do you know how are the values calculated for the 7" LCD that comes with SDK? Because mach-mini2440.c uses different values than suggested by the datasheet.

Are there any other changes to be  made other than the .config and mach-mini2440.c files?

regards,
[ 此帖被simma在2009-05-08 09:19重新编辑 ]
级别: 新手上路
UID: 6288
精华: 0
发帖: 1
金钱: 10 两
威望: 10 点
综合积分: 2 分
注册时间: 2009-05-26
最后登录: 2009-05-26
6楼  发表于: 2009-05-26 15:15
级别: 新手上路
UID: 5828
精华: 0
发帖: 34
金钱: 250 两
威望: 158 点
综合积分: 68 分
注册时间: 2009-05-10
最后登录: 2013-06-28
7楼  发表于: 2009-07-18 19:44
#elif defined(CONFIG_FB_S3C2410_TFT800480)
#define LCD_WIDTH 640
#define LCD_HEIGHT 480
#define LCD_PIXCLOCK 40000

#define LCD_RIGHT_MARGIN 47
#define LCD_LEFT_MARGIN 15
#define LCD_HSYNC_LEN 95

#define LCD_UPPER_MARGIN 32
#define LCD_LOWER_MARGIN 9
#define LCD_VSYNC_LEN 1
-------------------------------------------
The config is valid.

级别: 新手上路
UID: 5828
精华: 0
发帖: 34
金钱: 250 两
威望: 158 点
综合积分: 68 分
注册时间: 2009-05-10
最后登录: 2013-06-28
8楼  发表于: 2009-07-18 19:52

 CIRCUIT