本文主要是介绍rk3288 lvds TF卡修改屏参,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1,,以宽视屏M215HGE-L21_-奇美21.5液晶显示屏 为例说明修改屏参为题!! 奇美21.5寸规格书下载:
屏参文件dis.cfg, 如下:
[display_param]
screen-type = 3; //=2;为单8 =3;为双8 for LVDS
lvds-format = 0; //0=LVDS_VESA 1=LVDS_JEIDA 2=LVDS_XXX 3=LVDS_XX
out-face = 0;
color-mode = 0;
clock-frequency = 148000000;
hactive = 1920; //=x
vactive = 1080; //=y
hback-porch = 180;
hfront-porch = 97;
vback-porch = 30;
vfront-porch = 12;
hsync-len = 3;
vsync-len = 3;
hsync-active = 0;
vsync-active = 0;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end//hback-porch + hfront-porch =THB
//vback-porch + vfront-porch = TVB一下说明如何配置参数的!!!!!依据液晶屏规格书首先TF 建议使用4GB 以下的容量!!!!需要格式为FAT32
确保M320_PCB供电正常!,多拔插几次确保TF读取正常!只有在开机过程才能读取屏参!!!!!!修改dis.cfg 文件,,修改后放到TF卡里面上电开机就可以更改并保存屏参,,例如:/dou/dis.cfg在TF卡根目录下建文件夹“dou”在">dou文件夹里面放"dis.cfg"文件hback-porch + hfront-porch =THBvback-porch + vfront-porch = TVBfps必须=60hz,或者=50HZfps=(clock)/((hactive +THB)*(vactive + TVB))=60fps =50HZ <= (clock-frequency)/{(hactive + hback-porch + hfront-porch + 3)*(vactive + vback-porch + vfront-porch + 3)} <= 60/* lvds connect config * * lvds-format = 0 lvds-format = 1 lvds-format = 2 lvds-format = 3
----------------------------------------------------------------------TX0 R0 R2 R2 R0TX1 R1 R3 R3 R1TX2 R2 R4 R4 R2
Y TX3 R3 R5 R5 R3
0 TX4 R4 R6 R6 R4TX6 R5 R7 R7 R5 TX7 G0 G2 G2 G0
----------------------------------------------------------------------TX8 G1 G3 G3 G1TX9 G2 G4 G4 G2
Y TX12 G3 G5 G5 G3
1 TX13 G4 G6 G6 G4TX14 G5 G7 G7 G5TX15 B0 B2 B2 B0TX18 B1 B3 B3 B1
----------------------------------------------------------------------TX19 B2 B4 B4 B2TX20 B3 B5 B5 B3TX21 B4 B6 B6 B4
Y TX22 B5 B7 B7 B5
2 TX24 HSYNC HSYNC HSYNC HSYNCTX25 VSYNC VSYNC VSYNC VSYNCTX26 ENABLE ENABLE ENABLE ENABLE
----------------------------------------------------------------------TX27 R6 R0 GND GNDTX5 R7 R1 GND GNDTX10 G6 G0 GND GND
Y TX11 G7 G1 GND GND
3 TX16 B6 B0 GND GNDTX17 B7 B1 GND GNDTX23 RSVD RSVD RSVD RSVD
----------------------------------------------------------------------
*/
2,,一下参考规格书修改屏参说明
3#注意屏电压问题!!!
4#屏参问题
hback-porch + hfront-porch =THB ==140X2 = 280
vback-porch + vfront-porch = TVB == 45
fps必须=60hz,或者=50HZ
fps=(clock)/((hactive +THB)*(vactive + TVB))=60
fps =50HZ <= (clock-frequency)/{(hactive + hback-porch + hfront-porch + 3)*(vactive + vback-porch + vfront-porch + 3)} <= 60
vback-porch + vfront-porch = TVB == 45
fps必须=60hz,或者=50HZ
fps=(clock)/((hactive +THB)*(vactive + TVB))=60
fps =50HZ <= (clock-frequency)/{(hactive + hback-porch + hfront-porch + 3)*(vactive + vback-porch + vfront-porch + 3)} <= 60
5# 屏模式问题
如果出现水彩!!!
lvds-format = 0; 或者lvds-format = 1;
5#奇葩奇美42,10BIT_LVDS
屏参如下:
[display_param]
screen-type = 3;
lvds-format = 0;
out-face = 0;
color-mode = 0;
clock-frequency = 148600000;
hactive = 1920;
vactive = 1080;
hback-porch = 210;
hfront-porch = 16;
vback-porch = 34;
vfront-porch = 16;
hsync-len = 22;
vsync-len = 4;
hsync-active = 1;
vsync-active = 1;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
screen-type = 3;
lvds-format = 0;
out-face = 0;
color-mode = 0;
clock-frequency = 148600000;
hactive = 1920;
vactive = 1080;
hback-porch = 210;
hfront-porch = 16;
vback-porch = 34;
vfront-porch = 16;
hsync-len = 22;
vsync-len = 4;
hsync-active = 1;
vsync-active = 1;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
6#常规1920_1080——LVDS屏参
[display_param]
screen-type = 3;
lvds-format = 0;
out-face = 0;
color-mode = 0;
clock-frequency = 148000000;
hactive = 1920;
vactive = 1080;
hback-porch = 180;
hfront-porch = 97;
vback-porch = 30;
vfront-porch = 12;
hsync-len = 3;
vsync-len = 3;
hsync-active = 0;
vsync-active = 0;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
screen-type = 3;
lvds-format = 0;
out-face = 0;
color-mode = 0;
clock-frequency = 148000000;
hactive = 1920;
vactive = 1080;
hback-porch = 180;
hfront-porch = 97;
vback-porch = 30;
vfront-porch = 12;
hsync-len = 3;
vsync-len = 3;
hsync-active = 0;
vsync-active = 0;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
7# 15寸夏普和三菱LVDS--1024_768 DE模式
[display_param]
screen-type = 2;
lvds-format = 2;
out-face = 0;
color-mode = 0;
clock-frequency = 58000000;
hactive = 1024;
vactive = 768;
hback-porch = 120; //320 /2 =160 OK
hfront-porch = 40;
vback-porch = 20;
vfront-porch = 9;
hsync-len = 3;
vsync-len = 3;
hsync-active = 0;
vsync-active = 0;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
screen-type = 2;
lvds-format = 2;
out-face = 0;
color-mode = 0;
clock-frequency = 58000000;
hactive = 1024;
vactive = 768;
hback-porch = 120; //320 /2 =160 OK
hfront-porch = 40;
vback-porch = 20;
vfront-porch = 9;
hsync-len = 3;
vsync-len = 3;
hsync-active = 0;
vsync-active = 0;
de-active = 0;
pixelclk-active = 0;
swap-rb = 0;
swap-rg = 0;
swap-gb = 0;
end
这篇关于rk3288 lvds TF卡修改屏参的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!