关于RGB屏遇到的问题
时间:10-02
整理:3721RD
点击:
在6515上面调试RGB屏,DE模式,屏型号是clap070. 配置如下,我在 LCM_init函数中打开屏的电源,现在开机,在uboot模式可以看到5个重叠的画面。然后就定屏了,
屏的io电压由VGP提供,在uboot模式下,电压是3.3V,定屏的时候,VGP是1.8V,代码里面SD卡用到VGP的地方,已经被我注释掉。很奇怪这个电压是哪里来的?
哪位兄弟调过这个屏,帮我看看哪些地方要修改,谢谢!
static void lcm_get_params(LCM_PARAMS *params)
{
mEMSet(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DPI;
params->ctrl = LCM_CTRL_NONE;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
params->io_select_mode = 1;
params->dpi.mipi_pll_clk_ref = 0;
params->dpi.mipi_pll_clk_div1 = 50;
params->dpi.mipi_pll_clk_div2 = 10;
params->dpi.dpi_clk_div = 2;
params->dpi.dpi_clk_duty = 1;
params->dpi.clk_pol = LCM_POLARITY_RISING;
params->dpi.de_pol = LCM_POLARITY_RISING;
params->dpi.vsync_pol = LCM_POLARITY_FALLING;
params->dpi.hsync_pol = LCM_POLARITY_FALLING;
params->dpi.hsync_pulse_width = 30;
params->dpi.hsync_back_porch = 20;
params->dpi.hsync_front_porch = 210;
params->dpi.vsync_pulse_width = 13;
params->dpi.vsync_back_porch = 10;
params->dpi.vsync_front_porch = 22;
params->dpi.format = LCM_DPI_FORMAT_RGB888;
params->dpi.rgb_order = LCM_COLOR_ORDER_RGB;
params->dpi.is_serial_output = 0;
params->dpi.intermediat_buffer_num = 2;
params->dpi.io_driving_current = LCM_DRIVING_CURRENT_4MA;
}
static void lcm_init(void)
{
open_ldo(1);
}
屏的io电压由VGP提供,在uboot模式下,电压是3.3V,定屏的时候,VGP是1.8V,代码里面SD卡用到VGP的地方,已经被我注释掉。很奇怪这个电压是哪里来的?
哪位兄弟调过这个屏,帮我看看哪些地方要修改,谢谢!
static void lcm_get_params(LCM_PARAMS *params)
{
mEMSet(params, 0, sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DPI;
params->ctrl = LCM_CTRL_NONE;
params->width = FRAME_WIDTH;
params->height = FRAME_HEIGHT;
params->io_select_mode = 1;
params->dpi.mipi_pll_clk_ref = 0;
params->dpi.mipi_pll_clk_div1 = 50;
params->dpi.mipi_pll_clk_div2 = 10;
params->dpi.dpi_clk_div = 2;
params->dpi.dpi_clk_duty = 1;
params->dpi.clk_pol = LCM_POLARITY_RISING;
params->dpi.de_pol = LCM_POLARITY_RISING;
params->dpi.vsync_pol = LCM_POLARITY_FALLING;
params->dpi.hsync_pol = LCM_POLARITY_FALLING;
params->dpi.hsync_pulse_width = 30;
params->dpi.hsync_back_porch = 20;
params->dpi.hsync_front_porch = 210;
params->dpi.vsync_pulse_width = 13;
params->dpi.vsync_back_porch = 10;
params->dpi.vsync_front_porch = 22;
params->dpi.format = LCM_DPI_FORMAT_RGB888;
params->dpi.rgb_order = LCM_COLOR_ORDER_RGB;
params->dpi.is_serial_output = 0;
params->dpi.intermediat_buffer_num = 2;
params->dpi.io_driving_current = LCM_DRIVING_CURRENT_4MA;
}
static void lcm_init(void)
{
open_ldo(1);
}
你外面飞一路,供电看看,
VGP估计其它的地方还有写。
这个你可以查查。
有些TP的函数里也写了这个。
主要是我把控制6329的代码都屏蔽了,只能设成3V,居然还能改的动电压